ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
AGDDSectionStore Class Reference

#include <AGDDSectionStore.h>

Collaboration diagram for AGDDSectionStore:

Public Member Functions

 AGDDSectionStore ()
 
AGDDSectionGetSection (const std::string &)
 
AGDDSectionGetCurrentSection ()
 
void RegisterSection (AGDDSection *)
 
void PrintAllSections () const
 
void Clean ()
 

Private Attributes

AGDDSectionm_currentSection
 
sectionList m_theSections
 

Detailed Description

Definition at line 15 of file AGDDSectionStore.h.

Constructor & Destructor Documentation

◆ AGDDSectionStore()

AGDDSectionStore::AGDDSectionStore ( )

Definition at line 10 of file AGDDSectionStore.cxx.

11 {
12 }

Member Function Documentation

◆ Clean()

void AGDDSectionStore::Clean ( )

Definition at line 41 of file AGDDSectionStore.cxx.

42 {
43  sectionList::const_iterator it;
44  for (it=m_theSections.begin();it!=m_theSections.end();++it)
45  {
46  delete (*it).second;
47  }
48  m_theSections.clear();
49 }

◆ GetCurrentSection()

AGDDSection* AGDDSectionStore::GetCurrentSection ( )
inline

Definition at line 19 of file AGDDSectionStore.h.

19 {return m_currentSection;}

◆ GetSection()

AGDDSection * AGDDSectionStore::GetSection ( const std::string &  n)

Definition at line 13 of file AGDDSectionStore.cxx.

14 {
15  if (m_theSections.find(n) != m_theSections.end())
16  return m_theSections[n];
17  else
18  {
19  std::cout<<" Section "<<n<<" not found in store!"<<std::endl;
20  return 0;
21  }
22 }

◆ PrintAllSections()

void AGDDSectionStore::PrintAllSections ( ) const

Definition at line 32 of file AGDDSectionStore.cxx.

33 {
34  sectionList::const_iterator it;
35  for (it=m_theSections.begin();it!=m_theSections.end();++it)
36  {
37  (*it).second->Print();
38  }
39 }

◆ RegisterSection()

void AGDDSectionStore::RegisterSection ( AGDDSection s)

Definition at line 23 of file AGDDSectionStore.cxx.

24 {
25  std::string n=s->Name();
26  if (m_theSections.find(n) != m_theSections.end())
27  std::cout<<" Section "<<n<<" already in store "<<std::endl;
28  else
29  m_theSections[n]=s;
31 }

Member Data Documentation

◆ m_currentSection

AGDDSection* AGDDSectionStore::m_currentSection
private

Definition at line 24 of file AGDDSectionStore.h.

◆ m_theSections

sectionList AGDDSectionStore::m_theSections
private

Definition at line 25 of file AGDDSectionStore.h.


The documentation for this class was generated from the following files:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
skel.it
it
Definition: skel.GENtoEVGEN.py:423
AGDDSectionStore::m_theSections
sectionList m_theSections
Definition: AGDDSectionStore.h:25
beamspotman.n
n
Definition: beamspotman.py:731
AGDDSectionStore::m_currentSection
AGDDSection * m_currentSection
Definition: AGDDSectionStore.h:24