Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CDigitizerDictionary Class Reference

#include <CDigitizerDictionary.h>

List of all members.

Public Types

typedef map< string, CReadableObject * > DigitizerMap
typedef DigitizerMap::iterator ModuleIterator
typedef map< string, CDigitizerModule * > DigitizerMap
typedef DigitizerMap::iterator ModuleIterator

Public Member Functions

 CDigitizerDictionary ()
 ~CDigitizerDictionary ()
DigitizerMap getMap () const
ModuleIterator DigitizerBegin ()
ModuleIterator DigitizerEnd ()
int DigitizerSize ()
void DigitizerAdd (CReadableObject *pDigitizer)
ModuleIterator DigitizerFind (const string &rName)
void Remove (ModuleIterator p)
 CDigitizerDictionary ()
 ~CDigitizerDictionary ()
DigitizerMap getMap () const
ModuleIterator DigitizerBegin ()
ModuleIterator DigitizerEnd ()
int DigitizerSize ()
void DigitizerAdd (CDigitizerModule *pDigitizer)
ModuleIterator DigitizerFind (const string &rName)
void Remove (ModuleIterator p)

Protected Member Functions

void setMap (DigitizerMap &rMap)
void DestroyMap ()
void setMap (DigitizerMap &rMap)
void DestroyMap ()

Private Member Functions

 CDigitizerDictionary (const CDigitizerDictionary &rhs)
CDigitizerDictionaryoperator= (const CDigitizerDictionary &rhs)
int operator== (const CDigitizerDictionary &rhs) const
int operator!= (const CDigitizerDictionary &rhs) const
 CDigitizerDictionary (const CDigitizerDictionary &rhs)
CDigitizerDictionaryoperator= (const CDigitizerDictionary &rhs)
int operator== (const CDigitizerDictionary &rhs) const
int operator!= (const CDigitizerDictionary &rhs) const

Private Attributes

DigitizerMap m_Modules


Detailed Description

Encapsulates a set of modules that are managed by a CModuleCommand and can be inserted into a CReadOrder objects. This is really a small wrapper for a map<string, CDigitizerModule*>

Definition at line 41 of file CDigitizerDictionary.h.


Member Typedef Documentation

typedef map<string, CDigitizerModule*> CDigitizerDictionary::DigitizerMap
 

Definition at line 38 of file include/CDigitizerDictionary.h.

typedef map<string, CReadableObject*> CDigitizerDictionary::DigitizerMap
 

Definition at line 44 of file CDigitizerDictionary.h.

Referenced by getMap(), and setMap().

typedef DigitizerMap::iterator CDigitizerDictionary::ModuleIterator
 

Definition at line 39 of file include/CDigitizerDictionary.h.

typedef DigitizerMap::iterator CDigitizerDictionary::ModuleIterator
 

Definition at line 45 of file CDigitizerDictionary.h.

Referenced by CReadOrder::AddCommand(), CModuleCommand::Delete(), DestroyMap(), CModuleCommand::DigitizerFind(), CTriggerCommand::operator()(), and Remove().


Constructor & Destructor Documentation

CDigitizerDictionary::CDigitizerDictionary  ) 
 

Constructor: since maps know how to do their thing, this is just a no-op.

Definition at line 10 of file CDigitizerDictionary.cpp.

CDigitizerDictionary::~CDigitizerDictionary  ) 
 

Since We assume that all of the pointers handed to us are dynamic so we delete them and let the map take care of itself:

Definition at line 19 of file CDigitizerDictionary.cpp.

References DestroyMap().

CDigitizerDictionary::CDigitizerDictionary const CDigitizerDictionary rhs  )  [private]
 

CDigitizerDictionary::CDigitizerDictionary  ) 
 

CDigitizerDictionary::~CDigitizerDictionary  ) 
 

CDigitizerDictionary::CDigitizerDictionary const CDigitizerDictionary rhs  )  [private]
 


Member Function Documentation

void CDigitizerDictionary::DestroyMap  )  [protected]
 

void CDigitizerDictionary::DestroyMap  )  [protected]
 

Destroy the modules that are now in the map: NOTE: It's the caller's resonsibility to ensure that the map itself is emptied. All we do is iterate the map doing deletes on each of the modules.

Definition at line 95 of file CDigitizerDictionary.cpp.

References DigitizerBegin(), DigitizerEnd(), and ModuleIterator.

Referenced by ~CDigitizerDictionary().

void CDigitizerDictionary::DigitizerAdd CDigitizerModule pDigitizer  ) 
 

Adds a new digitizer to the list. If this digitizer has the same name as an existing one the existing one is replaced.

Definition at line 70 of file src/CDigitizerDictionary.cpp.

References CDigitizerModule::getName(), and m_Modules.

void CDigitizerDictionary::DigitizerAdd CReadableObject pDigitizer  ) 
 

Adds a new digitizer to the list. If this digitizer has the same name as an existing one the existing one is replaced.

Definition at line 70 of file CDigitizerDictionary.cpp.

References CConfigurableObject::getName(), and m_Modules.

Referenced by CModuleCommand::Create().

ModuleIterator CDigitizerDictionary::DigitizerBegin  ) 
 

CDigitizerDictionary::ModuleIterator CDigitizerDictionary::DigitizerBegin  ) 
 

Returns the begin iterator to the modules in the dictionary.

Definition at line 33 of file CDigitizerDictionary.cpp.

References m_Modules.

Referenced by DestroyMap(), and CModuleCommand::DigitizerBegin().

ModuleIterator CDigitizerDictionary::DigitizerEnd  ) 
 

CDigitizerDictionary::ModuleIterator CDigitizerDictionary::DigitizerEnd  ) 
 

Returns the end() iterator to the modules in the dictionary.

Definition at line 46 of file CDigitizerDictionary.cpp.

References m_Modules.

Referenced by CReadOrder::AddCommand(), DestroyMap(), CModuleCommand::DigitizerEnd(), and CTriggerCommand::operator()().

ModuleIterator CDigitizerDictionary::DigitizerFind const string &  rName  ) 
 

CDigitizerDictionary::ModuleIterator CDigitizerDictionary::DigitizerFind const string &  rName  ) 
 

Locates a module by name. If not found, returns the end iterator.

Definition at line 84 of file CDigitizerDictionary.cpp.

References m_Modules.

Referenced by CReadOrder::AddCommand(), CModuleCommand::DigitizerFind(), and CTriggerCommand::operator()().

int CDigitizerDictionary::DigitizerSize  ) 
 

int CDigitizerDictionary::DigitizerSize  ) 
 

Returns the number of modules in the dictionary.

Definition at line 57 of file CDigitizerDictionary.cpp.

References m_Modules.

Referenced by CModuleCommand::DigitizerSize().

DigitizerMap CDigitizerDictionary::getMap  )  const [inline]
 

Definition at line 57 of file include/CDigitizerDictionary.h.

References DigitizerMap, and m_Modules.

DigitizerMap CDigitizerDictionary::getMap  )  const [inline]
 

Definition at line 63 of file CDigitizerDictionary.h.

References DigitizerMap, and m_Modules.

int CDigitizerDictionary::operator!= const CDigitizerDictionary rhs  )  const [private]
 

int CDigitizerDictionary::operator!= const CDigitizerDictionary rhs  )  const [private]
 

CDigitizerDictionary& CDigitizerDictionary::operator= const CDigitizerDictionary rhs  )  [private]
 

CDigitizerDictionary& CDigitizerDictionary::operator= const CDigitizerDictionary rhs  )  [private]
 

int CDigitizerDictionary::operator== const CDigitizerDictionary rhs  )  const [private]
 

int CDigitizerDictionary::operator== const CDigitizerDictionary rhs  )  const [private]
 

void CDigitizerDictionary::Remove ModuleIterator  p  )  [inline]
 

Definition at line 73 of file include/CDigitizerDictionary.h.

References m_Modules, and ModuleIterator.

void CDigitizerDictionary::Remove ModuleIterator  p  )  [inline]
 

Definition at line 79 of file CDigitizerDictionary.h.

References m_Modules, and ModuleIterator.

Referenced by CModuleCommand::Delete().

void CDigitizerDictionary::setMap DigitizerMap rMap  )  [inline, protected]
 

Definition at line 63 of file include/CDigitizerDictionary.h.

References DigitizerMap, and m_Modules.

void CDigitizerDictionary::setMap DigitizerMap rMap  )  [inline, protected]
 

Definition at line 69 of file CDigitizerDictionary.h.

References DigitizerMap, and m_Modules.


Member Data Documentation

DigitizerMap CDigitizerDictionary::m_Modules [private]
 

Definition at line 41 of file include/CDigitizerDictionary.h.

Referenced by DigitizerAdd(), DigitizerBegin(), DigitizerEnd(), DigitizerFind(), DigitizerSize(), getMap(), Remove(), and setMap().


The documentation for this class was generated from the following files:
Generated on Fri Mar 12 13:04:34 2004 for Scripted Readout by doxygen 1.3.4