#include <TBDetDescrManager.h>
Definition at line 20 of file TBDetDescrManager.h.
◆ TBDetDescrManager()
| TBDetDescrManager::TBDetDescrManager |
( |
| ) |
|
Definition at line 16 of file TBDetDescrManager.cxx.
18{
20
21
22
23
24
72}
std::vector< TBElement > m_TBElementVec
◆ ~TBDetDescrManager()
| virtual TBDetDescrManager::~TBDetDescrManager |
( |
| ) |
|
|
inlinevirtual |
◆ getAll()
Definition at line 108 of file TBDetDescrManager.cxx.
109{
110 std::vector<TBElement>::const_iterator itr=
m_TBElementVec.begin();
112
113 for ( ; itr!=
end; ++itr) {
115 TBElement* pTBElement = new TBElement(*itr);
116 pTBElementContainer->
push_back(pTBElement);
117 }
118 }
119}
value_type push_back(value_type pElem)
Add an element to the end of the collection.
◆ getElement()
◆ initialize() [1/2]
| void TBDetDescrManager::initialize |
( |
const std::vector< TBElement > & | vec | ) |
|
Definition at line 74 of file TBDetDescrManager.cxx.
75{
78
81
82 std::vector<TBElement>::const_iterator itr=
vec.begin();
83 std::vector<TBElement>::const_iterator
end=
vec.end();
84
85 for ( ; itr!=
end; ++itr) {
86 unsigned int iid = itr->id();
92 }
93}
std::vector< size_t > vec
◆ initialize() [2/2]
Definition at line 95 of file TBDetDescrManager.cxx.
96{
99
100 std::vector<TBElement>
vec;
101
102 for (; itr!=
end; ++itr)
103 vec.push_back(*(*itr));
104
106}
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
◆ is_initialized()
| bool TBDetDescrManager::is_initialized |
( |
void | | ) |
const |
|
inline |
◆ max_size()
| int TBDetDescrManager::max_size |
( |
void | | ) |
const |
|
inline |
◆ n_elements()
| int TBDetDescrManager::n_elements |
( |
void | | ) |
const |
|
inline |
◆ print()
| void TBDetDescrManager::print |
( |
MsgStream & | log | ) |
const |
Definition at line 146 of file TBDetDescrManager.cxx.
147{
148 std::vector<TBElement>::const_iterator itr=
m_TBElementVec.begin();
150
152 << "Total number of TBElements in TBDetDescrManager = "
155
156 for ( ; itr!=
end; ++itr) {
159 << (std::string) (*itr)
161 }
162 }
163}
◆ setElement()
| void TBDetDescrManager::setElement |
( |
const TBElement & | element | ) |
|
Definition at line 128 of file TBDetDescrManager.cxx.
129{
130 unsigned int iid = element.
id();
131
134
135
138
140
141
144}
TBElementID::TBElementID id() const
◆ m_elements
| unsigned int TBDetDescrManager::m_elements |
|
private |
◆ m_TBElementVec
| std::vector<TBElement> TBDetDescrManager::m_TBElementVec |
|
private |
The documentation for this class was generated from the following files: