libzypp
13.10.6
|
Base class for creating IdString based types. More...
#include <IdStringType.h>
Public Types | |
typedef IdString::IdType | IdType |
Public Member Functions | |
const 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() ) . More... | |
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) |
template<class Derived > | |
bool | operator== (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
template<class Derived > | |
bool | operator!= (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
template<class Derived > | |
bool | operator< (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
template<class Derived > | |
bool | operator<= (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
template<class Derived > | |
bool | operator> (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
template<class Derived > | |
bool | operator>= (const IdStringType< Derived > &lhs, const IdStringType< Derived > &rhs) |
Additional Inherited Members | |
![]() | |
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.
|
inlinestatic |
Definition at line 119 of file IdStringType.h.
|
inlinestatic |
Definition at line 120 of file IdStringType.h.
|
inlinestatic |
Definition at line 121 of file IdStringType.h.
|
inlinestatic |
Definition at line 122 of file IdStringType.h.
|
inlinestatic |
Definition at line 124 of file IdStringType.h.
|
inlinestatic |
Definition at line 125 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 130 of file IdStringType.h.
|
inlinestatic |
Definition at line 131 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 137 of file IdStringType.h.
|
inlinestatic |
Definition at line 138 of file IdStringType.h.
|
inline |
Definition at line 141 of file IdStringType.h.
|
inline |
Definition at line 142 of file IdStringType.h.
|
inline |
Definition at line 143 of file IdStringType.h.
|
inline |
Definition at line 144 of file IdStringType.h.
|
inline |
Definition at line 145 of file IdStringType.h.
|
inlinestaticprivate |
Definition at line 148 of file IdStringType.h.
|
related |
Stream output
Definition at line 158 of file IdStringType.h.
|
related |
Equal
Definition at line 163 of file IdStringType.h.
|
related |
NotEqual
Definition at line 192 of file IdStringType.h.
|
related |
Less
Definition at line 221 of file IdStringType.h.
|
related |
LessEqual
Definition at line 250 of file IdStringType.h.
|
related |
Greater
Definition at line 279 of file IdStringType.h.
|
related |
GreaterEqual
Definition at line 308 of file IdStringType.h.