ATLAS Offline Software
TileBeamElemContainer_p1.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // TileBeamElemContainer_p1.h
8 // Persistent represenation of a TileBeamElemContainer
9 // Author: Alexander Solodkov <Sanya.Solodkov@cern.ch>
10 // Date: June 2009
12 #ifndef TILEBEAMELEMCONTAINER_P1_H
13 #define TILEBEAMELEMCONTAINER_P1_H
14 
16 #include <vector>
17 
19 {
20 public:
22  typedef std::vector<TileBeamElem_p1> ElemVector;
23  typedef ElemVector::const_iterator const_iterator;
25 
28 
29  // Accessors
30  const std::vector<unsigned int>& getParam() const {return m_param;}
31  const ElemVector& getVector() const {return m_cont;}
32 
33  // Clear methods
34  void clear() {m_param.clear(); m_cont.clear(); }
35  void reserve(unsigned int size1, unsigned int size2) { m_param.reserve(size1); m_cont.reserve(size2); }
36 
37  // Fill methods
38  void push_back_param (unsigned int param) { m_param.push_back(param); }
39  TileBeamElem_p1 * newElem () { m_cont.push_back(TileBeamElem_p1()); return &m_cont.back(); }
40 
41 private:
42  std::vector<unsigned int> m_param;
43  std::vector<TileBeamElem_p1> m_cont;
44 };
45 
46 #endif
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
TileBeamElemContainer_p1::ElemVector
std::vector< TileBeamElem_p1 > ElemVector
typedefs
Definition: TileBeamElemContainer_p1.h:22
TileBeamElemContainer_p1::getParam
const std::vector< unsigned int > & getParam() const
Definition: TileBeamElemContainer_p1.h:30
TileBeamElemContainer_p1::const_iterator
ElemVector::const_iterator const_iterator
Definition: TileBeamElemContainer_p1.h:23
TileBeamElemContainer_p1::m_param
std::vector< unsigned int > m_param
Definition: TileBeamElemContainer_p1.h:42
TileBeamElemContainer_p1::m_cont
std::vector< TileBeamElem_p1 > m_cont
Definition: TileBeamElemContainer_p1.h:43
TileBeamElemContainer_p1::getVector
const ElemVector & getVector() const
Definition: TileBeamElemContainer_p1.h:31
TileBeamElemContainer_p1::newElem
TileBeamElem_p1 * newElem()
Definition: TileBeamElemContainer_p1.h:39
TileBeamElemContainer_p1::reserve
void reserve(unsigned int size1, unsigned int size2)
Definition: TileBeamElemContainer_p1.h:35
TileBeamElemContainer_p1
Definition: TileBeamElemContainer_p1.h:19
TileBeamElemContainer_p1::clear
void clear()
Definition: TileBeamElemContainer_p1.h:34
TileBeamElemContainer_p1::push_back_param
void push_back_param(unsigned int param)
Definition: TileBeamElemContainer_p1.h:38
TileBeamElem_p1.h
TileBeamElemContainer_p1::TileBeamElemContainer_p1
TileBeamElemContainer_p1()
Default constructor.
Definition: TileBeamElemContainer_p1.h:27
TileBeamElem_p1
Definition: TileBeamElem_p1.h:21
TileBeamElemContainer_p1::iterator
ElemVector::iterator iterator
Definition: TileBeamElemContainer_p1.h:24