libzypp 17.38.6
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
18
19namespace zyppng::sat {
20
35 class StringPool {
36
37 public:
41 static StringPool &instance();
42
48
54 { return _pool; }
55
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;
72
73 private:
74 StringPool();
75
76 private:
80 };
81
82}
83#endif
84
StringPool(const StringPool &)=delete
detail::CPool * getPool() const
Explicit accessor for the raw sat-pool.
Definition stringpool.h:60
StringPool(const StringPool &)=delete
static StringPool & instance()
Access the global StringPool instance.
Definition stringpool.cc:18
StringPool & operator=(StringPool &&)=delete
detail::CPool * _pool
Internal pointer to the libsolv pool structure (CPool).
Definition stringpool.h:79
detail::IdType parserpmrichdep(const char *capstr_r)
libsolv capability parser
Definition stringpool.h:64
StringPool & operator=(const StringPool &)=delete
~StringPool()
Destructor.
Definition stringpool.cc:24
StringPool(StringPool &&)=delete
detail::CPool * operator->()
Pointer style access forwarded to the raw sat-pool.
Definition stringpool.h:53
zypp::sat::detail::CPool CPool
zypp::sat::detail::IdType IdType
This file contains private API, this might break at any time between releases.