ATLAS Offline Software
Classes | Public Types | Public Member Functions | Private Attributes | Friends | List of all members
DetStatusMap Class Reference

#include <DetStatusMap.h>

Inheritance diagram for DetStatusMap:
Collaboration diagram for DetStatusMap:

Classes

class  PairSort
 

Public Types

typedef std::pair< std::string, DetStatusDetStatusPair
 
typedef std::vector< DetStatusPairStatusMap
 
typedef StatusMap::const_iterator const_iterator
 
typedef const_iterator iterator
 

Public Member Functions

 DetStatusMap ()
 
virtual ~DetStatusMap ()
 
unsigned int size () const
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator find (const std::string &name) const
 
void clear ()
 
void add (const std::string &name, const DetStatus &status)
 
MsgStream & toOutputStream (MsgStream &os) const
 

Private Attributes

StatusMap m_statmap
 

Friends

class DetStatusMapCnv_p1
 

Detailed Description

Definition at line 19 of file DetStatusMap.h.

Member Typedef Documentation

◆ const_iterator

typedef StatusMap::const_iterator DetStatusMap::const_iterator

Definition at line 23 of file DetStatusMap.h.

◆ DetStatusPair

typedef std::pair<std::string,DetStatus> DetStatusMap::DetStatusPair

Definition at line 21 of file DetStatusMap.h.

◆ iterator

Definition at line 26 of file DetStatusMap.h.

◆ StatusMap

typedef std::vector<DetStatusPair> DetStatusMap::StatusMap

Definition at line 22 of file DetStatusMap.h.

Constructor & Destructor Documentation

◆ DetStatusMap()

DetStatusMap::DetStatusMap ( )

Definition at line 9 of file DetStatusMap.cxx.

9 : m_statmap() {}

◆ ~DetStatusMap()

DetStatusMap::~DetStatusMap ( )
inlinevirtual

Definition at line 60 of file DetStatusMap.h.

60 {}

Member Function Documentation

◆ add()

void DetStatusMap::add ( const std::string &  name,
const DetStatus status 
)
inline

Definition at line 81 of file DetStatusMap.h.

82 {
83  m_statmap.emplace_back( name, status ) ;
84  std::sort( m_statmap.begin() , m_statmap.end() , PairSort() );
85 }

◆ begin()

DetStatusMap::const_iterator DetStatusMap::begin ( ) const
inline

Definition at line 64 of file DetStatusMap.h.

65 { return m_statmap.begin(); }

◆ clear()

void DetStatusMap::clear ( )
inline

Definition at line 79 of file DetStatusMap.h.

79 { m_statmap.clear(); }

◆ end()

DetStatusMap::const_iterator DetStatusMap::end ( ) const
inline

Definition at line 67 of file DetStatusMap.h.

68 { return m_statmap.end(); }

◆ find()

DetStatusMap::const_iterator DetStatusMap::find ( const std::string &  name) const
inline

Definition at line 70 of file DetStatusMap.h.

71 {
72  const_iterator result = std::lower_bound(m_statmap.begin(),
73  m_statmap.end(),
74  name, PairSort()) ;
75  if ( result != m_statmap.end() && (*result).first == name ) return (result) ;
76  return m_statmap.end() ;
77 }

◆ size()

unsigned int DetStatusMap::size ( ) const
inline

Definition at line 62 of file DetStatusMap.h.

62 { return m_statmap.size(); }

◆ toOutputStream()

MsgStream & DetStatusMap::toOutputStream ( MsgStream &  os) const
inline

Definition at line 87 of file DetStatusMap.h.

87  {
88  os << "DetStatusMap of size: " << m_statmap.size() << endmsg;
89  for (StatusMap::const_iterator itr=m_statmap.begin();itr!=m_statmap.end();
90  ++itr) os << itr->first << " : " << itr->second.colour() << " (" <<
91  itr->second.deadFrac() << "," << itr->second.deadThrust() <<
92  ")" << endmsg;
93  return os;
94 }

Friends And Related Function Documentation

◆ DetStatusMapCnv_p1

friend class DetStatusMapCnv_p1
friend

Definition at line 45 of file DetStatusMap.h.

Member Data Documentation

◆ m_statmap

StatusMap DetStatusMap::m_statmap
private

Definition at line 55 of file DetStatusMap.h.


The documentation for this class was generated from the following files:
get_generator_info.result
result
Definition: get_generator_info.py:21
DetStatusMap::const_iterator
StatusMap::const_iterator const_iterator
Definition: DetStatusMap.h:23
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
DetStatusMap::m_statmap
StatusMap m_statmap
Definition: DetStatusMap.h:55
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
merge.status
status
Definition: merge.py:17