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

#include <jJetTOBArray.h>

Inheritance diagram for TCS::jJetTOBArray:
Collaboration diagram for TCS::jJetTOBArray:

Public Types

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

Public Member Functions

 jJetTOBArray (const std::string &name, unsigned int reserve)
virtual unsigned int size () const
TOBArray asTOBArray () const
const std::string & name () const
size_t capacity () const
void clear ()
virtual void push_back (const jJetTOB &tob)
void pop_back ()
iterator begin ()
iterator end ()
jJetTOBoperator[] (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 19 of file jJetTOBArray.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 18 of file DataArrayImpl.h.

◆ data_t

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

Definition at line 16 of file DataArrayImpl.h.

◆ iterator

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

Definition at line 17 of file DataArrayImpl.h.

Constructor & Destructor Documentation

◆ jJetTOBArray()

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

Definition at line 10 of file jJetTOBArray.cxx.

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

Member Function Documentation

◆ asTOBArray()

TCS::TOBArray TCS::jJetTOBArray::asTOBArray ( ) const

Definition at line 17 of file jJetTOBArray.cxx.

17 {
18 TOBArray tobarray(name());
19 for(const jJetTOB * jet : m_data)
20 tobarray.push_back( GenericTOB(*jet));
21 return tobarray;
22}

◆ begin()

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

Definition at line 40 of file DataArrayImpl.h.

◆ capacity()

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

Definition at line 32 of file DataArrayImpl.h.

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

◆ clear()

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

Definition at line 34 of file DataArrayImpl.h.

34{ m_data.clear(); }

◆ end()

iterator TCS::DataArrayImpl< jJetTOB >::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[]()

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

Definition at line 46 of file DataArrayImpl.h.

46{ return *m_data[i]; }

◆ pop_back()

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

Definition at line 38 of file DataArrayImpl.h.

◆ print()

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

Implements TCS::DataArray.

Definition at line 25 of file jJetTOBArray.cxx.

25 {
26 o << name() << std::endl;
27 for(const_iterator tob = begin(); tob != end(); ++tob)
28 o << **tob << std::endl;
29}
data_t::const_iterator const_iterator

◆ push_back()

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

Definition at line 36 of file DataArrayImpl.h.

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

◆ size()

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

Implements TCS::InputTOBArray.

Definition at line 24 of file jJetTOBArray.h.

size_t size() const

Member Data Documentation

◆ m_data

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

Definition at line 51 of file DataArrayImpl.h.

51{0};

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