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