![]() |
The Gaudi Framework
v29r3 (fa547fc2)
|
template <class FROM, class TO, class MAPENTRY> class RefTable More...
#include <GaudiKernel/RefTable.h>


Public Types | |
| typedef FROM | KeyType |
| typedef MAPENTRY | EntryType |
| typedef RefTableBase< FROM, EntryType > | BaseType |
| typedef GaudiUtils::HashMap< const void *, EntryType > | TableType |
| Define Reference map. More... | |
| typedef TableType::iterator | iterator |
| Definition of map iterator. More... | |
| typedef TableType::const_iterator | const_iterator |
| Definition of map iterator (CONST) More... | |
Public Member Functions | |
| RefTableBase (const CLID &clid, int len) | |
| Constructors. More... | |
| virtual | ~RefTableBase ()=default |
| Destructor. More... | |
| virtual void | clear () |
| Clear Reference map. More... | |
| iterator | begin () |
| Start of direct access iterator. More... | |
| const_iterator | begin () const |
| Start of direct access iterator (CONST) More... | |
| iterator | end () |
| End of direct access iterator. More... | |
| const_iterator | end () const |
| End of direct access iterator (CONST) More... | |
| long | size () const |
| Size of References. More... | |
| void | reserve (int len) |
| Size of References. More... | |
| virtual StreamBuffer & | serialize (StreamBuffer &s) const |
| Serialize the object for writing. More... | |
| virtual StreamBuffer & | serialize (StreamBuffer &s) |
| Serialize the object for reading. More... | |
Public Member Functions inherited from DataObject | |
| DataObject () | |
| Standard Constructor. More... | |
| DataObject (const DataObject &rhs) | |
| Copy Constructor. More... | |
| DataObject & | operator= (const DataObject &rhs) |
| Assignment Operator. More... | |
| DataObject (DataObject &&rhs) | |
| Move Constructor. More... | |
| DataObject & | operator= (DataObject &&rhs) |
| Move Assignment Operator. More... | |
| virtual | ~DataObject () |
| Standard Destructor. More... | |
| virtual unsigned long | addRef () |
| Add reference to object. More... | |
| virtual unsigned long | release () |
| release reference to object More... | |
| virtual const CLID & | clID () const |
| Retrieve reference to class definition structure. More... | |
| const std::string & | name () const |
| Retreive DataObject name. It is the name when registered in the store. More... | |
| virtual StatusCode | update () |
| Provide empty placeholder for internal object reconfiguration callback. More... | |
| void | setRegistry (IRegistry *pRegistry) |
| Set pointer to Registry. More... | |
| IRegistry * | registry () const |
| Get pointer to Registry. More... | |
| LinkManager * | linkMgr () const |
| Retrieve Link manager. More... | |
| unsigned char | version () const |
| Retrieve version number of this object representation. More... | |
| void | setVersion (unsigned char vsn) |
| Set version number of this object representation. More... | |
| unsigned long | refCount () const |
| Return the refcount. More... | |
| virtual std::ostream & | fillStream (std::ostream &s) const |
| Fill the output stream (ASCII) More... | |
Public Attributes | |
| CLID | m_clid |
| Class id of the reference table. More... | |
Protected Member Functions | |
| bool | insertMapElement (const KeyType *from, EntryType &to) |
| Insert new Entry into Reference container. More... | |
| EntryType * | i_reference (const KeyType *from) |
| Find Reference from it's source entry. More... | |
| const EntryType * | i_reference (const KeyType *from) const |
| Find Reference from it's source entry (CONST) More... | |
Private Attributes | |
| TableType | m_table |
| Reference map. More... | |
| SmartRef< KeyType > | m_fromRef |
| This is a completely useless entry, but the compiler wants it to be instantiated before the serialize function is defined. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from DataObject | |
| static const CLID & | classID () |
| Retrieve reference to class definition structure (static access) More... | |
template <class FROM, class TO, class MAPENTRY> class RefTable
ClassName: RefTableBase
Description: Essential information of the RefTable References can be of several kinds: multiplicity: FROM TO 1 0 = 1 (no existing Reference) 1 1 <-> 1 relationship n 1 <-> n relationship Template parameters: FROM type of the source object TO type of the referenced object(s) MAPENTRY entry type used for the referenced objects within the map.
Author: Markus Frank
Definition at line 44 of file RefTable.h.
| typedef RefTableBase<FROM, EntryType> RefTableBase< FROM, MAPENTRY >::BaseType |
Definition at line 52 of file RefTable.h.
| typedef TableType::const_iterator RefTableBase< FROM, MAPENTRY >::const_iterator |
Definition of map iterator (CONST)
Definition at line 60 of file RefTable.h.
| typedef MAPENTRY RefTableBase< FROM, MAPENTRY >::EntryType |
Definition at line 50 of file RefTable.h.
| typedef TableType::iterator RefTableBase< FROM, MAPENTRY >::iterator |
Definition of map iterator.
Definition at line 58 of file RefTable.h.
| typedef FROM RefTableBase< FROM, MAPENTRY >::KeyType |
Definition at line 48 of file RefTable.h.
| typedef GaudiUtils::HashMap<const void*, EntryType> RefTableBase< FROM, MAPENTRY >::TableType |
Define Reference map.
Need to use index into vector, because location of vector entries is not fixed
Definition at line 56 of file RefTable.h.
|
inline |
|
virtualdefault |
Destructor.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
| CLID RefTableBase< FROM, MAPENTRY >::m_clid |
Class id of the reference table.
Definition at line 62 of file RefTable.h.
|
private |
This is a completely useless entry, but the compiler wants it to be instantiated before the serialize function is defined.
Definition at line 71 of file RefTable.h.
|
private |
Reference map.
Definition at line 66 of file RefTable.h.