1 #ifndef _ots_TableGroupKey_h_
2 #define _ots_TableGroupKey_h_
19 unsigned int key(
void)
const;
28 bool operator!=(
unsigned int key)
const;
33 bool operator>=(
const TableGroupKey& key)
const {
return !
operator<(key); }
35 const unsigned int a);
37 const TableGroupKey a);
39 const TableGroupKey a);
41 const TableGroupKey a);
43 const TableGroupKey a);
45 friend std::ostream& operator<<(std::ostream& out,
const TableGroupKey& key)
47 out << key.toString();
51 static TableGroupKey
getNextKey(
const TableGroupKey& key = TableGroupKey());
53 const TableGroupKey& key,
54 const std::string& preKey =
"_v",
55 const std::string& postKey =
"");
57 std::string& groupName,
59 static unsigned int getDefaultKey(
void);
60 static unsigned int getInvalidKey(
void);
62 static const unsigned int INVALID;
65 static const unsigned int DEFAULT;
std::string toString(void) const
toString
static TableGroupKey getNextKey(const TableGroupKey &key=TableGroupKey())
bool operator>(const TableGroupKey &key) const
operator>
bool operator==(unsigned int key) const
operator==
TableGroupKey & operator=(const unsigned int key)
Operators.
static void getGroupNameAndKey(const std::string &fullGroupString, std::string &groupName, TableGroupKey &key)
requires fullGroupString created as name + "_v" + key + ""
bool isInvalid(void) const
isInvalid
TableGroupKey & operator/=(const TableGroupKey a)
to support StringMacros on TableGroupKey types
TableGroupKey & operator-=(const TableGroupKey a)
to support StringMacros on TableGroupKey types
std::string str() const
alternative alias method
TableGroupKey & operator+=(const TableGroupKey a)
to support StringMacros on TableGroupKey types
TableGroupKey & operator*=(const unsigned int a)
to support StringMacros on TableGroupKey types
static std::string getFullGroupString(const std::string &groupName, const TableGroupKey &key, const std::string &preKey="_v", const std::string &postKey="")
bool operator<(const TableGroupKey &key) const
operator<