#include <ConditionsMap.hh>
Inheritance diagram for lccd::ConditionsMap< KEY, LCCONDOBJECT >:
Public Types | |
typedef std::map< KEY, LCCONDOBJECT >::iterator | MapIter |
typedef KEY(LCCONDOBJECT::* | PMF )() |
Public Member Functions | |
ConditionsMap (PMF pmf) | |
Only constructor: provide the pointer to the member fuction that returns the key. | |
virtual | ~ConditionsMap () |
The d'tor. | |
const std::map< KEY, LCCONDOBJECT > & | map () |
The map. | |
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. Debug method - prints the key and the id of the stored objects. | |
Protected Member Functions | |
ConditionsMap () | |
No default c'tor. | |
Protected Attributes | |
std::map< KEY, LCCONDOBJECT > | _map |
PMF | _pmf |
The class LCCONDOBJECT has to have a constructor that takes an LCObject* as argument. Typically this is the case for all LCGenericObject subclasses.