LCCD  1.5.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lccd::ConditionsMap< KEY, LCCONDOBJECT > Class Template Reference

Template class for maps of conditions data. More...

#include <ConditionsMap.hh>

Inheritance diagram for lccd::ConditionsMap< KEY, LCCONDOBJECT >:
lccd::IConditionsChangeListener

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 {}
 

Detailed Description

template<class KEY, class LCCONDOBJECT>
class lccd::ConditionsMap< KEY, LCCONDOBJECT >

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.

Author
F.Gaede, DESY
Version
Id:
ConditionsMap.hh,v 1.9 2008-11-04 10:32:20 meyern Exp

Constructor & Destructor Documentation

template<class KEY , class LCCONDOBJECT >
virtual lccd::ConditionsMap< KEY, LCCONDOBJECT >::~ConditionsMap ( )
inlinevirtual

The d'tor.

Member Function Documentation

template<class KEY , class LCCONDOBJECT >
const std::map< KEY, LCCONDOBJECT>& lccd::ConditionsMap< KEY, LCCONDOBJECT >::map ( )
inline

The map.

template<class KEY , class LCCONDOBJECT >
void lccd::ConditionsMap< KEY, LCCONDOBJECT >::print ( std::ostream &  os)
inline

Print the conditions map to the specified output stream.


Debug method - prints the key and the id of the stored objects.


The documentation for this class was generated from the following file: