libzypp 17.37.17
|
Base class for creating IdString based types. More...
#include <zypp/IdStringType.h>
Public Types | |
using | IdType = IdString::IdType |
Public Member Functions | |
IdString | idStr () const |
bool | empty () const |
unsigned | size () const |
const char * | c_str () const |
std::string | asString () const |
IdType | id () const |
operator bool () const | |
Evaluate in a boolean context ( !
| |
operator IdString () const | |
Explicit conversion to IdString. | |
operator std::string () const | |
Explicit conversion to std::string. | |
int | compare (const Derived &rhs) const |
int | compare (const IdStringType &rhs) const |
int | compare (const IdString &rhs) const |
int | compare (const std::string &rhs) const |
int | compare (const char *rhs) const |
Static Public Member Functions | |
static int | compare (const Derived &lhs, const Derived &rhs) |
static int | compare (const Derived &lhs, const IdString &rhs) |
static int | compare (const Derived &lhs, const std::string &rhs) |
static int | compare (const Derived &lhs, const char *rhs) |
static int | compare (const IdString &lhs, const Derived &rhs) |
static int | compare (const IdString &lhs, const IdString &rhs) |
static int | compare (const IdString &lhs, const std::string &rhs) |
static int | compare (const IdString &lhs, const char *rhs) |
static int | compare (const std::string &lhs, const Derived &rhs) |
static int | compare (const std::string &lhs, const IdString &rhs) |
static int | compare (const std::string &lhs, const std::string &rhs) |
static int | compare (const std::string &lhs, const char *rhs) |
static int | compare (const char *lhs, const Derived &rhs) |
static int | compare (const char *lhs, const IdString &rhs) |
static int | compare (const char *lhs, const std::string &rhs) |
static int | compare (const char *lhs, const char *rhs) |
Protected Member Functions | |
IdStringType ()=default | |
IdStringType (const IdStringType &)=default | |
IdStringType & | operator= (const IdStringType &)=default |
IdStringType (IdStringType &&) noexcept=default | |
IdStringType & | operator= (IdStringType &&) noexcept=default |
~IdStringType ()=default |
Private Member Functions | |
const Derived & | self () const |
Static Private Member Functions | |
static int | _doCompare (const char *lhs, const char *rhs) ZYPP_API |
Related Symbols | |
(Note that these are not member symbols.) | |
template<class Derived> | |
std::ostream & | operator<< (std::ostream &str, const IdStringType< Derived > &obj) |
Stream output. | |
template<class Derived> | |
bool | operator== (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
Equal. | |
template<class Derived> | |
bool | operator!= (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
NotEqual. | |
template<class Derived> | |
bool | operator< (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
Less. | |
template<class Derived> | |
bool | operator<= (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
LessEqual. | |
template<class Derived> | |
bool | operator> (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
Greater. | |
template<class Derived> | |
bool | operator>= (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
GreaterEqual. |
Additional Inherited Members | |
Static Protected Member Functions inherited from zypp::sat::detail::PoolMember | |
static PoolImpl & | myPool () |
Base class for creating IdString based types.
Just by deriving from IdStringType a class provides all the operations an IdString does. (incl. conversion to string types, comparison of string types and stream output).
To disable any comparison, declare (but do not define) _doCompare in your class.
If you need a different than the default lexicographical order, write your own _doCompare.
Definition at line 86 of file IdStringType.h.
using zypp::IdStringType< Derived >::IdType = IdString::IdType |
Definition at line 89 of file IdStringType.h.
|
protecteddefault |
|
protecteddefault |
|
protecteddefaultnoexcept |
|
protecteddefault |
|
protecteddefault |
|
protecteddefaultnoexcept |
|
inlineprivate |
Definition at line 100 of file IdStringType.h.
|
inline |
Definition at line 103 of file IdStringType.h.
|
inline |
Definition at line 105 of file IdStringType.h.
|
inline |
Definition at line 106 of file IdStringType.h.
|
inline |
Definition at line 107 of file IdStringType.h.
|
inline |
Definition at line 108 of file IdStringType.h.
|
inline |
Definition at line 115 of file IdStringType.h.
|
inlineexplicit |
|
inlineexplicit |
Explicit conversion to IdString.
Definition at line 123 of file IdStringType.h.
|
inlineexplicit |
Explicit conversion to std::string.
Definition at line 127 of file IdStringType.h.
|
inlinestatic |
Definition at line 134 of file IdStringType.h.
|
inlinestatic |
Definition at line 135 of file IdStringType.h.
|
inlinestatic |
Definition at line 136 of file IdStringType.h.
|
inlinestatic |
Definition at line 137 of file IdStringType.h.
|
inlinestatic |
Definition at line 139 of file IdStringType.h.
|
inlinestatic |
Definition at line 140 of file IdStringType.h.
|
inlinestatic |
Definition at line 142 of file IdStringType.h.
|
inlinestatic |
Definition at line 143 of file IdStringType.h.
|
inlinestatic |
Definition at line 145 of file IdStringType.h.
|
inlinestatic |
Definition at line 146 of file IdStringType.h.
|
inlinestatic |
Definition at line 147 of file IdStringType.h.
|
inlinestatic |
Definition at line 148 of file IdStringType.h.
|
inlinestatic |
Definition at line 150 of file IdStringType.h.
|
inlinestatic |
Definition at line 151 of file IdStringType.h.
|
inlinestatic |
Definition at line 152 of file IdStringType.h.
|
inlinestatic |
Definition at line 153 of file IdStringType.h.
|
inline |
Definition at line 156 of file IdStringType.h.
|
inline |
Definition at line 157 of file IdStringType.h.
|
inline |
Definition at line 158 of file IdStringType.h.
|
inline |
Definition at line 159 of file IdStringType.h.
|
inline |
Definition at line 160 of file IdStringType.h.
|
inlinestaticprivate |
Definition at line 163 of file IdStringType.h.
|
Stream output.
Definition at line 173 of file IdStringType.h.
|
Equal.
Definition at line 178 of file IdStringType.h.
|
NotEqual.
Definition at line 207 of file IdStringType.h.
|
Less.
Definition at line 236 of file IdStringType.h.
|
LessEqual.
Definition at line 265 of file IdStringType.h.
|
Greater.
Definition at line 294 of file IdStringType.h.
|
GreaterEqual.
Definition at line 323 of file IdStringType.h.