ATLAS Offline Software
Loading...
Searching...
No Matches
TileDigitsContainer_p2.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// TileDigitsContainer_p2.h
8// Persistent represenation of a TileDigitsContainer
9// Author: Alexander Solodkov <Sanya.Solodkov@cern.ch>
10// Date: June 2009
12#ifndef TILEDIGITSCONTAINER_P2_H
13#define TILEDIGITSCONTAINER_P2_H
14
16#include <vector>
17
19{
20public:
22 typedef std::vector<TileDigits_p2> ElemVector;
23 typedef ElemVector::const_iterator const_iterator;
24 typedef ElemVector::iterator 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 TileDigits_p2 * newElem () { m_cont.push_back(TileDigits_p2()); return &m_cont.back(); }
40
41private:
42 std::vector<unsigned int> m_param;
43 std::vector<TileDigits_p2> m_cont;
44};
45
46#endif
std::vector< unsigned int > m_param
const std::vector< unsigned int > & getParam() const
void push_back_param(unsigned int param)
std::vector< TileDigits_p2 > ElemVector
typedefs
const ElemVector & getVector() const
std::vector< TileDigits_p2 > m_cont
ElemVector::const_iterator const_iterator
TileDigitsContainer_p2()
Default constructor.
void reserve(unsigned int size1, unsigned int size2)
ElemVector::iterator iterator