libzypp 17.31.23
|
Base class for creating IdString based types. More...
#include <IdStringType.h>
Public Types | |
typedef IdString::IdType | 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 ( ! empty() ) . | |
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 () | |
IdStringType (const IdStringType &) | |
void | operator= (const IdStringType &) |
~IdStringType () | |
Private Member Functions | |
const Derived & | self () const |
Static Private Member Functions | |
static int | _doCompare (const char *lhs, const char *rhs) |
Related Functions | |
(Note that these are not member functions.) | |
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.
typedef IdString::IdType zypp::IdStringType< Derived >::IdType |
Definition at line 89 of file IdStringType.h.
|
inlineprotected |
Definition at line 92 of file IdStringType.h.
|
inlineprotected |
Definition at line 93 of file IdStringType.h.
|
inlineprotected |
Definition at line 95 of file IdStringType.h.
|
inlineprotected |
Definition at line 94 of file IdStringType.h.
|
inlineprivate |
Definition at line 98 of file IdStringType.h.
|
inline |
Definition at line 101 of file IdStringType.h.
|
inline |
Definition at line 103 of file IdStringType.h.
|
inline |
Definition at line 104 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 108 of file IdStringType.h.
|
inlineexplicit |
Evaluate in a boolean context ( ! empty() )
.
Definition at line 112 of file IdStringType.h.
|
inlineexplicit |
Explicit conversion to IdString.
Definition at line 116 of file IdStringType.h.
|
inlineexplicit |
Explicit conversion to std::string.
Definition at line 120 of file IdStringType.h.
|
inlinestatic |
Definition at line 127 of file IdStringType.h.
|
inlinestatic |
Definition at line 128 of file IdStringType.h.
|
inlinestatic |
Definition at line 129 of file IdStringType.h.
|
inlinestatic |
Definition at line 130 of file IdStringType.h.
|
inlinestatic |
Definition at line 132 of file IdStringType.h.
|
inlinestatic |
Definition at line 133 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 138 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 141 of file IdStringType.h.
|
inlinestatic |
Definition at line 143 of file IdStringType.h.
|
inlinestatic |
Definition at line 144 of file IdStringType.h.
|
inlinestatic |
Definition at line 145 of file IdStringType.h.
|
inlinestatic |
Definition at line 146 of file IdStringType.h.
|
inline |
Definition at line 149 of file IdStringType.h.
|
inline |
Definition at line 150 of file IdStringType.h.
|
inline |
Definition at line 151 of file IdStringType.h.
|
inline |
Definition at line 152 of file IdStringType.h.
|
inline |
Definition at line 153 of file IdStringType.h.
|
inlinestaticprivate |
Definition at line 156 of file IdStringType.h.
|
related |
Stream output.
Definition at line 166 of file IdStringType.h.
|
related |
Equal.
Definition at line 171 of file IdStringType.h.
|
related |
NotEqual.
Definition at line 200 of file IdStringType.h.
|
related |
Less.
Definition at line 229 of file IdStringType.h.
|
related |
LessEqual.
Definition at line 258 of file IdStringType.h.
|
related |
Greater.
Definition at line 287 of file IdStringType.h.
|
related |
GreaterEqual.
Definition at line 316 of file IdStringType.h.