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