Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class 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 List of all members.

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

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.5 2005/02/25 17:29:40 gaede Exp


The documentation for this class was generated from the following file:
Generated on Fri Sep 9 12:30:32 2005 for LCCD by doxygen 1.3.5