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

#include <View.h>

Collaboration diagram for ViewContainer:

Public Types

typedef T::const_iterator const_iterator
 
typedef T::iterator iterator
 
typedef T::reverse_iterator reverse_iterator
 
typedef T::const_reference const_reference
 
typedef T::reference reference
 
typedef T::value_type value_type
 

Public Member Functions

 ~ViewContainer ()
 
void push_back (SG::View *ptr)
 
size_t size () const
 
bool empty () const
 
void clear ()
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reference at (size_t pos) const
 
reference at (size_t pos)
 
const_reference back () const
 
reference back ()
 

Private Types

typedef std::vector< SG::View * > T
 

Private Attributes

T m_data
 

Detailed Description

Definition at line 158 of file View.h.

Member Typedef Documentation

◆ const_iterator

typedef T::const_iterator ViewContainer::const_iterator

Definition at line 163 of file View.h.

◆ const_reference

typedef T::const_reference ViewContainer::const_reference

Definition at line 166 of file View.h.

◆ iterator

typedef T::iterator ViewContainer::iterator

Definition at line 164 of file View.h.

◆ reference

typedef T::reference ViewContainer::reference

Definition at line 167 of file View.h.

◆ reverse_iterator

typedef T::reverse_iterator ViewContainer::reverse_iterator

Definition at line 165 of file View.h.

◆ T

typedef std::vector<SG::View*> ViewContainer::T
private

Definition at line 159 of file View.h.

◆ value_type

typedef T::value_type ViewContainer::value_type

Definition at line 168 of file View.h.

Constructor & Destructor Documentation

◆ ~ViewContainer()

ViewContainer::~ViewContainer ( )
inline

Definition at line 171 of file View.h.

171  {
172  std::for_each(m_data.begin(), m_data.end(), [](SG::View* v){ delete v; } );
173  }

Member Function Documentation

◆ at() [1/2]

reference ViewContainer::at ( size_t  pos)
inline

Definition at line 188 of file View.h.

188 { return m_data.at(pos); }

◆ at() [2/2]

const_reference ViewContainer::at ( size_t  pos) const
inline

Definition at line 187 of file View.h.

187 { return m_data.at(pos); }

◆ back() [1/2]

reference ViewContainer::back ( )
inline

Definition at line 190 of file View.h.

190 { return m_data.back(); }

◆ back() [2/2]

const_reference ViewContainer::back ( ) const
inline

Definition at line 189 of file View.h.

189 { return m_data.back(); }

◆ begin() [1/2]

iterator ViewContainer::begin ( )
inline

Definition at line 182 of file View.h.

182 { return m_data.begin(); }

◆ begin() [2/2]

const_iterator ViewContainer::begin ( ) const
inline

Definition at line 180 of file View.h.

180 { return m_data.begin(); }

◆ clear()

void ViewContainer::clear ( )
inline

Definition at line 177 of file View.h.

177  {
178  std::for_each(m_data.begin(), m_data.end(), [](SG::View* v){ delete v; } ); m_data.clear();
179  }

◆ empty()

bool ViewContainer::empty ( ) const
inline

Definition at line 176 of file View.h.

176 { return m_data.empty(); }

◆ end() [1/2]

iterator ViewContainer::end ( )
inline

Definition at line 183 of file View.h.

183 { return m_data.end(); }

◆ end() [2/2]

const_iterator ViewContainer::end ( ) const
inline

Definition at line 181 of file View.h.

181 { return m_data.end(); }

◆ push_back()

void ViewContainer::push_back ( SG::View ptr)
inline

Definition at line 174 of file View.h.

174 { m_data.push_back( ptr ); }

◆ rbegin()

reverse_iterator ViewContainer::rbegin ( )
inline

Definition at line 184 of file View.h.

184 { return m_data.rbegin(); }

◆ rend()

reverse_iterator ViewContainer::rend ( )
inline

Definition at line 185 of file View.h.

185 { return m_data.rend(); }

◆ size()

size_t ViewContainer::size ( ) const
inline

Definition at line 175 of file View.h.

175 { return m_data.size(); }

Member Data Documentation

◆ m_data

T ViewContainer::m_data
private

Definition at line 160 of file View.h.


The documentation for this class was generated from the following file:
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
ViewContainer::m_data
T m_data
Definition: View.h:160
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
python.PyAthena.v
v
Definition: PyAthena.py:154
SG::View
Definition: View.h:25