ATLAS Offline Software
|
Db objects: DbToken, DbToken.h, POOLCore/DbToken.h. More...
#include <DbToken.h>
Public Types | |
enum | { TOKEN_FULL_KEY = 1<<0, TOKEN_CONT_KEY = 1<<1, TOKEN_ITERATOR = 1<<2 } |
Default token key enumeration. More... | |
Public Member Functions | |
DbToken () | |
Standard constructor. More... | |
virtual bool | equal (const Token &pTok) const |
Fast token comparison: operator equal. More... | |
virtual bool | less (const Token &pTok) const |
Fast token comparison: operator less. More... | |
void | setKey (int which) |
Produce the keys only on demand. More... | |
void | setKeyEx (int which, const Guid &guid) |
Copy the key. More... | |
void | setUserKey (int i, const Guid &guid) |
Set a user key. More... | |
void | setTypeInfo (const DbTypeInfo *t) |
Update type information. More... | |
const DbTypeInfo * | typeInfo () const |
Access type information. More... | |
void | setLocal (bool val) |
Set local flag. More... | |
bool | isLocal () const |
Access local flag. More... | |
void | addTypeSetting (int val) |
Add type setting. More... | |
void | removeTypeSetting (int val) |
Add type setting. More... | |
const Guid & | fullKey () const |
Access to user key identifying full token. More... | |
const Guid & | contKey () const |
Access to user key #1. More... | |
const Guid & | userkey (int i) const |
Access to optional user keys #2. 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... | |
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 void | makeKey (const Token *tok, int which, Guid &guid) |
Produce the token keys only on demand for export. More... | |
static int | numInstances () |
expose Token instance counter for debugging More... | |
Private Attributes | |
Guid | m_keyFull |
Buffer to hold user key identifying full token. More... | |
Guid | m_contKey |
Buffer to hold user key #1. More... | |
std::vector< Guid > | m_ukeys |
Optional other user keys. More... | |
const DbTypeInfo * | m_info |
Database type information cache. More... | |
bool | m_local |
Flag to indicate if toekn is local or foreign. More... | |
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... | |
Db objects: DbToken, DbToken.h, POOLCore/DbToken.h.
Description:
Definition of an optimized token used internally in the Database. This token implementation generates an MD5 checksum over the token information. This should be advantageous for long tokens compared to the horrible full lookup of the string exceeding typically 300 chars.
anonymous enum |
Default token key enumeration.
Enumerator | |
---|---|
TOKEN_FULL_KEY | |
TOKEN_CONT_KEY | |
TOKEN_ITERATOR |
|
inline |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inlineinherited |
Fast token comparison: operator equal.
Reimplemented from Token.
|
inline |
|
virtualinherited |
Retrieve token key.
Retrieve the string representation of the token.
Fast token comparison: operator less.
Reimplemented from Token.
Produce the token keys only on demand for export.
|
staticinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inline |
void pool::DbToken::setKey | ( | int | which | ) |
Produce the keys only on demand.
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
virtualinherited |
|
inlineinherited |
|
inline |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
private |
|
private |
|
private |
|
private |
|
privateinherited |
|
privateinherited |
|
private |