LCCD
1.5.0
|
Template class for maps of conditions data. More...
#include <ConditionsMap.hh>
Public Types | |
typedef std::map< KEY, LCCONDOBJECT >::iterator | MapIter |
typedef KEY(LCCONDOBJECT::* | PMF )() |
typedef KEY(LCCONDOBJECT::* | PMFC )() const |
Public Member Functions | |
ConditionsMap (PMF pmf) | |
Constructor: provide the pointer to the member fuction that returns the key. | |
ConditionsMap (PMFC pmfc) | |
Constructor: provide the pointer to the member fuction that returns the key if it is declared const. | |
virtual | ~ConditionsMap () |
The d'tor. More... | |
const std::map< KEY, LCCONDOBJECT > & | map () |
The map. More... | |
LCCONDOBJECT & | find (KEY key) |
Returns a reference to the conditions object for key. | |
void | conditionsChanged (lcio::LCCollection *col) |
Repopulate the map with new conditions data. | |
void | print (std::ostream &os) |
Print the conditions map to the specified output stream. More... | |
Protected Member Functions | |
ConditionsMap () | |
No default c'tor. | |
Protected Member Functions inherited from lccd::IConditionsChangeListener | |
virtual void | registeredWithHandler (IConditionsHandler *ch) |
Callback called by handler when registered, should not be called directly. | |
virtual void | deRegisteredWithHandler (IConditionsHandler *ch) |
Callback called by handler when deregistered, should not be called directly. | |
const std::list < IConditionsHandler * > & | handlerList () |
Get handler list. | |
Protected Attributes | |
std::map< KEY, LCCONDOBJECT > | _map {} |
PMF | _pmf {} |
PMFC | _pmfc {} |
bool | _isPMFconst {} |
Template class for maps of conditions data.
The class LCCONDOBJECT has to have a constructor that takes an LCObject* as argument. Typically this is the case for all LCGenericObject subclasses.
|
inlinevirtual |
The d'tor.
|
inline |
The map.
|
inline |
Print the conditions map to the specified output stream.
Debug method - prints the key and the id of the stored objects.