![]() |
Rosetta
2020.11
|
User-created hidden index key abstract base class. More...
#include <UserKey.hh>
Public Types | |
typedef utility::keys::Key | Key |
typedef O | object_type |
typedef std::size_t | index_type |
typedef std::size_t | size_type |
typedef O | Object |
typedef std::size_t | Index |
typedef std::size_t | Size |
Public Member Functions | |
virtual UserKey * | clone () const =0 |
Clone this. More... | |
virtual | ~UserKey () |
Destructor. More... | |
UserKey & | operator= (UserKey const &key) |
Copy assignment. More... | |
UserKey & | operator= (Key const &key) |
Key assignment. More... | |
std::string const & | id () const |
ID. More... | |
std::string & | id () |
ID. More... | |
UserKey & | id (std::string const &id_a) |
ID assignment. More... | |
std::string const & | identifier () const |
Identifier. More... | |
std::string & | identifier () |
Identifier. More... | |
UserKey & | identifier (std::string const &identifier_a) |
Identifier assignment. More... | |
std::string const & | code () const |
Code. More... | |
std::string & | code () |
Code. More... | |
UserKey & | code (std::string const &code_a) |
Code assignment. More... | |
Index | private_index () const |
Index. More... | |
Protected Member Functions | |
UserKey (std::string const &id_a=std::string(), std::string const &identifier_a=std::string(), std::string const &code_a=std::string()) | |
Default constructor. More... | |
UserKey (UserKey const &key) | |
Copy constructor. More... | |
UserKey (UserKey const &key, std::string const &id_a, std::string const &identifier_a=std::string(), std::string const &code_a=std::string()) | |
Copy + identifier constructor. More... | |
UserKey (Key const &key) | |
Key constructor. More... | |
UserKey (Key const &key, std::string const &id_a, std::string const &identifier_a=std::string(), std::string const &code_a=std::string()) | |
Key + identifier constructor. More... | |
UserKey (Index const index_a, std::string const &id_a=std::string(), std::string const &identifier_a=std::string(), std::string const &code_a=std::string()) | |
Index constructor. More... | |
void | assign_Key (Key const &key) |
Key assignment. More... | |
operator Index () const | |
Index value conversion. More... | |
Index | index () const |
Index. More... | |
Index & | index () |
Index. More... | |
UserKey & | index (Index const index_a) |
Index assignment. More... | |
bool | equals (Key const &key) const |
Equal to a Key? More... | |
bool | less_than (Key const &key) const |
Less than a Key? More... | |
bool | comparable (Key const &key) const |
Comparable to a Key? More... | |
Private Types | |
typedef S | Super |
Private Attributes | |
Index | index_ |
Index. More... | |
std::string | id_ |
ID: Short identifier. More... | |
std::string | identifier_ |
Identifier: Long identifier. More... | |
std::string | code_ |
Code: Coded identifier. More... | |
Friends | |
bool | operator== (UserKey const &a, UserKey const &b) |
UserKey == UserKey. More... | |
bool | operator!= (UserKey const &a, UserKey const &b) |
UserKey != UserKey. More... | |
bool | operator< (UserKey const &a, UserKey const &b) |
UserKey < UserKey. More... | |
bool | operator<= (UserKey const &a, UserKey const &b) |
UserKey <= UserKey. More... | |
bool | operator>= (UserKey const &a, UserKey const &b) |
UserKey >= UserKey. More... | |
bool | operator> (UserKey const &a, UserKey const &b) |
UserKey > UserKey. More... | |
template<typename UO , typename US , typename UC > | |
bool | sequential (UserKey< UO, US, UC > const &a, UserKey< UO, US, UC > const &b) |
UserKeys are sequential? More... | |
User-created hidden index key abstract base class.
typedef std::size_t utility::keys::UserKey< O, S, C >::Index |
typedef std::size_t utility::keys::UserKey< O, S, C >::index_type |
typedef utility::keys::Key utility::keys::UserKey< O, S, C >::Key |
typedef O utility::keys::UserKey< O, S, C >::Object |
typedef O utility::keys::UserKey< O, S, C >::object_type |
typedef std::size_t utility::keys::UserKey< O, S, C >::Size |
typedef std::size_t utility::keys::UserKey< O, S, C >::size_type |
|
private |
|
inlineexplicitprotected |
Default constructor.
|
inlineprotected |
Copy constructor.
|
inlineprotected |
Copy + identifier constructor.
|
inlineexplicitprotected |
Key constructor.
References debug_assert.
|
inlineprotected |
Key + identifier constructor.
References debug_assert.
|
inlineexplicitprotected |
Index constructor.
|
inlinevirtual |
Destructor.
|
inlineprotected |
Key assignment.
References utility::keys::Key::code(), utility::keys::UserKey< O, S, C >::code_, utility::keys::UserKey< O, S, C >::comparable(), debug_assert, utility::keys::Key::id(), utility::keys::UserKey< O, S, C >::id_, utility::keys::Key::identifier(), utility::keys::UserKey< O, S, C >::identifier_, utility::keys::Key::index(), and utility::keys::UserKey< O, S, C >::index_.
Referenced by utility::keys::UserKey< O, S, C >::operator=().
|
pure virtual |
Clone this.
|
inline |
Code.
References utility::keys::UserKey< O, S, C >::code_.
|
inline |
Code.
References utility::keys::UserKey< O, S, C >::code_.
|
inline |
Code assignment.
References utility::keys::UserKey< O, S, C >::code_.
|
inlineprotected |
Comparable to a Key?
References basic::options::OptionKeys::cloud::key.
Referenced by utility::keys::UserKey< O, S, C >::assign_Key().
|
inlineprotected |
Equal to a Key?
References utility::keys::UserKey< O, S, C >::index_.
|
inline |
ID.
References utility::keys::UserKey< O, S, C >::id_.
|
inline |
ID.
References utility::keys::UserKey< O, S, C >::id_.
|
inline |
ID assignment.
References utility::keys::UserKey< O, S, C >::id_.
|
inline |
Identifier.
References utility::keys::UserKey< O, S, C >::identifier_.
|
inline |
Identifier.
References utility::keys::UserKey< O, S, C >::identifier_.
|
inline |
Identifier assignment.
References utility::keys::UserKey< O, S, C >::identifier_.
|
inlineprotected |
Index.
References utility::keys::UserKey< O, S, C >::index_.
|
inlineprotected |
Index.
References utility::keys::UserKey< O, S, C >::index_.
|
inlineprotected |
Index assignment.
References utility::keys::UserKey< O, S, C >::index_.
|
inlineprotected |
Less than a Key?
References utility::keys::UserKey< O, S, C >::index_.
|
inlineprotected |
Index value conversion.
References utility::keys::UserKey< O, S, C >::index_.
|
inline |
Copy assignment.
References utility::keys::UserKey< O, S, C >::assign_Key().
|
inline |
Key assignment.
References utility::keys::UserKey< O, S, C >::assign_Key().
|
inline |
Index.
References utility::keys::UserKey< O, S, C >::index_.
|
friend |
UserKeys are sequential?
|
private |
Code: Coded identifier.
Referenced by utility::keys::UserKey< O, S, C >::assign_Key(), and utility::keys::UserKey< O, S, C >::code().
|
private |
ID: Short identifier.
Referenced by utility::keys::UserKey< O, S, C >::assign_Key(), and utility::keys::UserKey< O, S, C >::id().
|
private |
Identifier: Long identifier.
Referenced by utility::keys::UserKey< O, S, C >::assign_Key(), and utility::keys::UserKey< O, S, C >::identifier().
|
private |
Index.
Referenced by utility::keys::UserKey< O, S, C >::assign_Key(), utility::keys::UserKey< O, S, C >::equals(), utility::keys::UserKey< O, S, C >::index(), utility::keys::UserKey< O, S, C >::less_than(), utility::keys::UserKey< O, S, C >::operator Index(), and utility::keys::UserKey< O, S, C >::private_index().