ATLAS Offline Software
Loading...
Searching...
No Matches
TCS::gTETOBArray Class Reference

#include <gTETOBArray.h>

Inheritance diagram for TCS::gTETOBArray:
Collaboration diagram for TCS::gTETOBArray:

Public Types

typedef std::vector< gTETOB * > data_t
typedef data_t::iterator iterator
typedef data_t::const_iterator const_iterator

Public Member Functions

 gTETOBArray (const std::string &name, unsigned int reserve)
virtual unsigned int size () const
const std::string & name () const
size_t capacity () const
void clear ()
virtual void push_back (const gTETOB &tob)
void pop_back ()
iterator begin ()
iterator end ()
gTETOBoperator[] (const int i)

Protected Attributes

data_t m_data
unsigned int m_reserve

Private Member Functions

virtual void print (std::ostream &) const

Private Attributes

std::string m_name

Detailed Description

Definition at line 14 of file gTETOBArray.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 18 of file DataArrayImpl.h.

◆ data_t

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

Definition at line 16 of file DataArrayImpl.h.

◆ iterator

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

Definition at line 17 of file DataArrayImpl.h.

Constructor & Destructor Documentation

◆ gTETOBArray()

TCS::gTETOBArray::gTETOBArray ( const std::string & name,
unsigned int reserve )

Definition at line 5 of file gTETOBArray.cxx.

5 :
8{}
DataArrayImpl(unsigned int reserve=0)
const std::string & name() const
Definition DataArray.h:20
InputTOBArray(const std::string &name)

Member Function Documentation

◆ begin()

iterator TCS::DataArrayImpl< gTETOB >::begin ( )
inlineinherited

Definition at line 40 of file DataArrayImpl.h.

◆ capacity()

size_t TCS::DataArrayImpl< gTETOB >::capacity ( ) const
inlineinherited

Definition at line 32 of file DataArrayImpl.h.

32{ return m_data.capacity(); }
size_t capacity() const

◆ clear()

void TCS::DataArrayImpl< gTETOB >::clear ( )
inlineinherited

Definition at line 34 of file DataArrayImpl.h.

34{ m_data.clear(); }

◆ end()

iterator TCS::DataArrayImpl< gTETOB >::end ( )
inlineinherited

Definition at line 43 of file DataArrayImpl.h.

43{ 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; }
std::string m_name
Definition DataArray.h:25

◆ operator[]()

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

Definition at line 46 of file DataArrayImpl.h.

46{ return *m_data[i]; }

◆ pop_back()

void TCS::DataArrayImpl< gTETOB >::pop_back ( )
inlineinherited

Definition at line 38 of file DataArrayImpl.h.

◆ print()

void TCS::gTETOBArray::print ( std::ostream & o) const
privatevirtual

Implements TCS::DataArray.

Definition at line 11 of file gTETOBArray.cxx.

11 {
12 o << name() << std::endl;
13 for(const_iterator tob = begin(); tob != end(); ++tob)
14 o << **tob << std::endl;
15}
data_t::const_iterator const_iterator

◆ push_back()

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

Definition at line 36 of file DataArrayImpl.h.

57 {
59}
virtual void push_back(const DATA &tob)

◆ size()

virtual unsigned int TCS::gTETOBArray::size ( ) const
inlinevirtual

Implements TCS::InputTOBArray.

Definition at line 20 of file gTETOBArray.h.

size_t size() const

Member Data Documentation

◆ m_data

data_t TCS::DataArrayImpl< gTETOB >::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< gTETOB >::m_reserve
protectedinherited

Definition at line 51 of file DataArrayImpl.h.

51{0};

The documentation for this class was generated from the following files: