![]() |
ATLAS Offline Software
|
This class provides a token that identifies in a unique way objects on the persistent storage. More...
#include <Token.h>
Classes | |
| struct | OID_t |
Public Member Functions | |
| Token () | |
| Standard Constructor. | |
| Token (const Token *source) | |
| Constructor with data assignment. | |
| Token (Token &&source) noexcept | |
| Allow move. | |
| virtual | ~Token () |
| Standard destructor: release all allocated resources. | |
| bool | operator< (const Token &refToken) const |
| Operator < to allow ordering. | |
| bool | operator> (const Token &refToken) const |
| Operator > to allow ordering. | |
| bool | operator== (const Token &refToken) const |
| Equality operator. | |
| bool | operator!= (const Token &refToken) const |
| Equality operator. | |
| virtual bool | less (const Token &pTok) const |
| Fast token comparison: operator less. | |
| virtual bool | equal (const Token &pTok) const |
| Fast token comparison: operator equals. | |
| int | release () |
| Release token: Decrease reference count and eventually delete. | |
| int | addRef () |
| Increase reference count. | |
| const Guid & | dbID () const |
| Access database identifier. | |
| Token & | setDb (const Guid &db) |
| Set database name. | |
| Token & | setDb (const std::string &db) |
| const std::string & | contID () const |
| Access container identifier. | |
| Token & | setCont (const std::string &cnt) |
| Set container name. | |
| const Guid & | classID () const |
| Access database identifier. | |
| Token & | setClassID (const Guid &cl_id) |
| Access database identifier. | |
| int | technology () const |
| Access technology type. | |
| Token & | setTechnology (int t) |
| Set technology type. | |
| const OID_t & | oid () const |
| Access object identifier. | |
| OID_t & | oid () |
| Access object identifier. | |
| Token & | setOid (const OID_t &oid) |
| Set object identifier. | |
| int | type () const |
| Access token type. | |
| Token & | setType (int t) |
| Set token type. | |
| const std::string & | auxString () const |
| Access auxiliary string. | |
| Token & | setAuxString (const std::string &auxString) |
| Set auxiliary string. | |
| virtual const std::string | toString () const |
| Retrieve the string representation of the token. | |
| virtual const std::string | key () const |
| Retrieve token key. | |
| Token & | fromString (const std::string_view from) |
| Build from the string representation of a token. | |
| const Token & | set (Token *pToken) const |
| Set token information. | |
| const Token & | setData (Token *pToken) const |
| Set all the data part of the token. | |
Static Public Member Functions | |
| static int | numInstances () |
| expose Token instance counter for debugging | |
Private Member Functions | |
| Token (const Token ©) | |
| No copy allowed: put prototype to disable bit-wise copy. | |
| Token & | operator= (const Token ©) |
| No assignment allowed: put prototype to disable bit-wise assignment. | |
Private Attributes | |
| int | m_refCount |
| Reference count. | |
| unsigned int | m_technology |
| Technology identifier. | |
| Guid | m_dbID |
| Database identifier. | |
| std::string | m_cntID |
| Container identifier. | |
| Guid | m_classID |
| Object global identifier. | |
| OID_t | m_oid |
| Persistent object identifier. | |
| int | m_type |
| Token type. | |
| std::string | m_auxString |
| Auxiliary string. | |
This class provides a token that identifies in a unique way objects on the persistent storage.
|
private |
No copy allowed: put prototype to disable bit-wise copy.
Copy constructor.
| Token::Token | ( | ) |
Standard Constructor.
Standard Constructor(1): Empty constructor.
Definition at line 27 of file Token.cxx.
|
explicit |
Constructor with data assignment.
Copy constructor.
Definition at line 48 of file Token.cxx.
|
explicitnoexcept |
Allow move.
Move constructor.
|
virtual |
Standard destructor: release all allocated resources.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Fast token comparison: operator equals.
Equality operator.
| Token & Token::fromString | ( | const std::string_view | from | ) |
Build from the string representation of a token.
Definition at line 147 of file Token.cxx.
|
virtual |
|
virtual |
|
static |
|
inline |
|
inline |
|
inline |
Equality operator.
Definition at line 54 of file Token.h.
|
inline |
Operator < to allow ordering.
Definition at line 45 of file Token.h.
|
inline |
|
inline |
| int Token::release | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Retrieve the string representation of the token.
Definition at line 134 of file Token.cxx.
|
inline |
|
private |