ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
GlobalSim::GenericTOBArray Class Reference

#include <GenericTOBArray.h>

Inheritance diagram for GlobalSim::GenericTOBArray:
Collaboration diagram for GlobalSim::GenericTOBArray:

Public Types

typedef std::vector< TCS::GenericTOB * > data_t
 
typedef data_t::iterator iterator
 
typedef data_t::const_iterator const_iterator
 

Public Member Functions

 GenericTOBArray (const std::string &name)
 
void push_back (const TCS::CompositeTOB &tob)
 
void sort (sort_fnc)
 
bool ambiguityFlag () const
 
void setAmbiguityFlag (bool ambiguityFlag)
 
virtual void print (std::ostream &os) const override
 
const std::string & name () const
 
size_t size () const
 
size_t capacity () const
 
void clear ()
 
virtual void push_back (const TCS::GenericTOB &tob)
 
void pop_back ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
TCS::GenericTOBoperator[] (const int i)
 
const TCS::GenericTOBoperator[] (const int i) const
 

Protected Attributes

data_t m_data
 
unsigned int m_reserve
 

Private Attributes

bool m_ambiguityFlag = false
 
std::string m_name
 

Friends

std::ostream & operator<< (std::ostream &, const GlobalSim::GenericTOBArray &)
 

Detailed Description

Definition at line 31 of file GenericTOBArray.h.

Member Typedef Documentation

◆ const_iterator

typedef data_t::const_iterator TCS::DataArrayImpl< TCS::GenericTOB >::const_iterator
inherited

Definition at line 18 of file DataArrayImpl.h.

◆ data_t

typedef std::vector<TCS::GenericTOB *> TCS::DataArrayImpl< TCS::GenericTOB >::data_t
inherited

Definition at line 16 of file DataArrayImpl.h.

◆ iterator

typedef data_t::iterator TCS::DataArrayImpl< TCS::GenericTOB >::iterator
inherited

Definition at line 17 of file DataArrayImpl.h.

Constructor & Destructor Documentation

◆ GenericTOBArray()

GlobalSim::GenericTOBArray::GenericTOBArray ( const std::string &  name)
inline

Definition at line 37 of file GenericTOBArray.h.

37  : DataArray{name}{
38  };

Member Function Documentation

◆ ambiguityFlag()

bool GlobalSim::GenericTOBArray::ambiguityFlag ( ) const
inline

Definition at line 45 of file GenericTOBArray.h.

45 {return m_ambiguityFlag;}

◆ begin() [1/2]

iterator TCS::DataArrayImpl< TCS::GenericTOB >::begin
inlineinherited

Definition at line 40 of file DataArrayImpl.h.

40 { return m_data.begin(); }

◆ begin() [2/2]

Definition at line 41 of file DataArrayImpl.h.

41 { return m_data.begin(); }

◆ capacity()

size_t TCS::DataArrayImpl< TCS::GenericTOB >::capacity
inlineinherited

Definition at line 32 of file DataArrayImpl.h.

32 { return m_data.capacity(); }

◆ clear()

void TCS::DataArrayImpl< TCS::GenericTOB >::clear
inlineinherited

Definition at line 34 of file DataArrayImpl.h.

34 { m_data.clear(); }

◆ end() [1/2]

iterator TCS::DataArrayImpl< TCS::GenericTOB >::end
inlineinherited

Definition at line 43 of file DataArrayImpl.h.

43 { return m_data.end(); }

◆ end() [2/2]

Definition at line 44 of file DataArrayImpl.h.

44 { return m_data.end(); }

◆ name()

const std::string& TCS::DataArray::name ( ) const
inlineinherited

Definition at line 20 of file DataArray.h.

20 { return m_name; }

◆ operator[]() [1/2]

TCS::GenericTOB & TCS::DataArrayImpl< TCS::GenericTOB >::operator[] ( const int  i)
inlineinherited

Definition at line 46 of file DataArrayImpl.h.

46 { return *m_data[i]; }

◆ operator[]() [2/2]

const TCS::GenericTOB & TCS::DataArrayImpl< TCS::GenericTOB >::operator[] ( const int  i) const
inlineinherited

Definition at line 47 of file DataArrayImpl.h.

47 { return *m_data[i]; }

◆ pop_back()

void TCS::DataArrayImpl< TCS::GenericTOB >::pop_back
inlineinherited

Definition at line 38 of file DataArrayImpl.h.

38 { m_data.pop_back(); }

◆ print()

void GlobalSim::GenericTOBArray::print ( std::ostream &  os) const
overridevirtual

Implements TCS::DataArray.

Definition at line 28 of file GenericTOBArray.cxx.

28  {
29  for(const_iterator tob = m_data.begin(); tob != m_data.end(); ++tob) {
30  if( tob!=begin() ) os << std::endl;
31  os << **tob;
32  }
33  }

◆ push_back() [1/2]

void GlobalSim::GenericTOBArray::push_back ( const TCS::CompositeTOB tob)

Definition at line 19 of file GenericTOBArray.cxx.

19  {
21  }

◆ push_back() [2/2]

void TCS::DataArrayImpl< TCS::GenericTOB >::push_back ( const TCS::GenericTOB tob)
virtualinherited

Definition at line 36 of file DataArrayImpl.h.

57  {
58  m_data.push_back(DATA::createOnHeap(tob));
59 }

◆ setAmbiguityFlag()

void GlobalSim::GenericTOBArray::setAmbiguityFlag ( bool  ambiguityFlag)
inline

Definition at line 47 of file GenericTOBArray.h.

47  {
49  }

◆ size()

size_t TCS::DataArrayImpl< TCS::GenericTOB >::size
inlineinherited

Definition at line 30 of file DataArrayImpl.h.

30 { return m_data.size(); }

◆ sort()

void GlobalSim::GenericTOBArray::sort ( sort_fnc  fnc)

Definition at line 24 of file GenericTOBArray.cxx.

24  {
25  std::sort(m_data.begin(), m_data.end(), fnc);
26  }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const GlobalSim::GenericTOBArray gta 
)
friend

Definition at line 36 of file GenericTOBArray.cxx.

37  {
38  os << "GenericTOB. name: " << gta.name() << ":\n";
39  gta.print(os);
40  os << '\n';
41  return os;
42 }

Member Data Documentation

◆ m_ambiguityFlag

bool GlobalSim::GenericTOBArray::m_ambiguityFlag = false
private

Definition at line 59 of file GenericTOBArray.h.

◆ m_data

data_t TCS::DataArrayImpl< TCS::GenericTOB >::m_data
protectedinherited

Definition at line 50 of file DataArrayImpl.h.

◆ m_name

std::string TCS::DataArray::m_name
privateinherited

Definition at line 25 of file DataArray.h.

◆ m_reserve

unsigned int TCS::DataArrayImpl< TCS::GenericTOB >::m_reserve
protectedinherited

Definition at line 51 of file DataArrayImpl.h.


The documentation for this class was generated from the following files:
GlobalSim::GenericTOBArray::m_ambiguityFlag
bool m_ambiguityFlag
Definition: GenericTOBArray.h:59
GlobalSim::GenericTOBArray::ambiguityFlag
bool ambiguityFlag() const
Definition: GenericTOBArray.h:45
TCS::DataArrayImpl< TCS::GenericTOB >::const_iterator
data_t::const_iterator const_iterator
Definition: DataArrayImpl.h:18
TCS::DataArray::DataArray
DataArray(const std::string &name)
Definition: DataArray.h:15
TCS::DataArray::name
const std::string & name() const
Definition: DataArray.h:20
TCS::CompositeTOB::createOnHeap
static CompositeTOB * createOnHeap(const CompositeTOB &tob)
Definition: CompositeTOB.cxx:35
lumiFormat.i
int i
Definition: lumiFormat.py:85
GlobalSim::GenericTOBArray::print
virtual void print(std::ostream &os) const override
Definition: GenericTOBArray.cxx:28
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
TCS::DataArray::m_name
std::string m_name
Definition: DataArray.h:25
TCS::DataArrayImpl< TCS::GenericTOB >::m_data
data_t m_data
Definition: DataArrayImpl.h:50
TCS::DataArrayImpl< TCS::GenericTOB >::begin
iterator begin()
Definition: DataArrayImpl.h:40
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