libzypp: zypp/ng/sat/stringpool.h Source File

libzypp 17.38.10

stringpool.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------/
9*
10* This file contains private API, this might break at any time between releases.
11* You have been warned!
12*
13*/
14#ifndef ZYPPNG_SAT_STRINGPOOL_H_INCLUDED
15#define ZYPPNG_SAT_STRINGPOOL_H_INCLUDED
16
17#include <zypp/ng/sat/poolconstants.h>
18
19namespace zyppng::sat {
20
35 class StringPool {
36
37 public:
41 static StringPool &instance();
42
47 ~StringPool();
48
53 detail::CPool * operator->()
54 { return _pool; }
55
60 detail::CPool * getPool() const
61 { return _pool; }
62
64 detail::IdType parserpmrichdep( const char * capstr_r )
65 { return ::pool_parserpmrichdep( _pool, capstr_r ); }
66
67 /* Delete copy and move semantics to maintain singleton integrity */
68 StringPool(const StringPool &) = delete;
69 StringPool(StringPool &&) = delete;
70 StringPool &operator=(const StringPool &) = delete;
71 StringPool &operator=(StringPool &&) = delete;
72
73 private:
74 StringPool();
75
76 private:
79 detail::CPool * _pool;
80 };
81
82}
83#endif
84
zypp::StringPool::StringPool
StringPool(const StringPool &)=delete
zyppng::sat::StringPool::StringPool
StringPool()
Definition stringpool.cc:29
zyppng::sat::StringPool::getPool
detail::CPool * getPool() const
Explicit accessor for the raw sat-pool.
Definition stringpool.h:60
zyppng::sat::StringPool::StringPool
StringPool(const StringPool &)=delete
zyppng::sat::StringPool::instance
static StringPool & instance()
Access the global StringPool instance.
Definition stringpool.cc:18
zyppng::sat::StringPool::operator=
StringPool & operator=(StringPool &&)=delete
zyppng::sat::StringPool::_pool
detail::CPool * _pool
Internal pointer to the libsolv pool structure (CPool).
Definition stringpool.h:79
zyppng::sat::StringPool::parserpmrichdep
detail::IdType parserpmrichdep(const char *capstr_r)
libsolv capability parser
Definition stringpool.h:64
zyppng::sat::StringPool::operator=
StringPool & operator=(const StringPool &)=delete
zyppng::sat::StringPool::~StringPool
~StringPool()
Destructor.
Definition stringpool.cc:24
zyppng::sat::StringPool::StringPool
StringPool(StringPool &&)=delete
zyppng::sat::StringPool::operator->
detail::CPool * operator->()
Pointer style access forwarded to the raw sat-pool.
Definition stringpool.h:53
zyppng::sat::detail::CPool
zypp::sat::detail::CPool CPool
Definition poolconstants.h:36
zyppng::sat::detail::IdType
zypp::sat::detail::IdType IdType
Definition poolconstants.h:43
zyppng::sat
This file contains private API, this might break at any time between releases.
Definition capabilities.h:22
poolconstants.h