#include <StrawStatusContainer.h>
Definition at line 61 of file StrawStatusContainer.h.
◆ const_value_type [1/2]
◆ const_value_type [2/2]
◆ DaughterContainer [1/2]
◆ DaughterContainer [2/2]
◆ FlatContainer [1/2]
fill vector with all entries in the container. needed to dump to Peter's flat file format
Definition at line 346 of file NestedContainer.h.
◆ FlatContainer [2/2]
fill vector with all entries in the container. needed to dump to Peter's flat file format
Definition at line 346 of file NestedContainer.h.
◆ trait_type [1/2]
◆ trait_type [2/2]
◆ value_type [1/2]
◆ value_type [2/2]
◆ clear() [1/2]
clear entire container
Definition at line 238 of file NestedContainer.h.
238 {
243 }
void clear()
clear entire container
Nested container class, ie a base class at level l with daugthers at level l+1.
static void clear(Daughter &d, const ExpandedIdentifier &id)
clear container for given id
◆ clear() [2/2]
clear entire container
Definition at line 238 of file NestedContainer.h.
238 {
243 }
Base class for nested containers.
◆ crunch() [1/2]
reduce the footprint as much as possible by removing the extra space allocated by the vectors
Definition at line 292 of file NestedContainer.h.
292 {
293
296
298
307 } else {
309 }
310 }
311 }
313
325 }
326 }
327 }
std::vector< NestedContainer< NestingLevel+1, StrawStatus, DeadStrawTrait > > DaughterContainer
static bool empty(Daughter &d)
empty daughter container
static bool isequal(const Daughter &lhs, const Daughter &rhs)
equality operator
static void crunch(Daughter &d)
compress daugther size
◆ crunch() [2/2]
reduce the footprint as much as possible by removing the extra space allocated by the vectors
Definition at line 292 of file NestedContainer.h.
292 {
293
296
298
307 } else {
309 }
310 }
311 }
313
325 }
326 }
327 }
◆ daughters() [1/2]
◆ daughters() [2/2]
◆ footprint() [1/2]
return the memory allocated by the container and its daughters
Definition at line 282 of file NestedContainer.h.
282 {
287 }
static size_t footprint(const Daughter &d)
return allocated memory
◆ footprint() [2/2]
return the memory allocated by the container and its daughters
Definition at line 282 of file NestedContainer.h.
◆ get() [1/2]
get a value.
return the default value if no valid entry for id exists.
Definition at line 205 of file NestedContainer.h.
205 {
210
212 }
213 }
215 }
static const T & get(const Daughter &d, const ExpandedIdentifier &id)
get value for given id
◆ get() [2/2]
get a value.
return the default value if no valid entry for id exists.
Definition at line 205 of file NestedContainer.h.
205 {
210
212 }
213 }
215 }
◆ getall() [1/2]
Definition at line 347 of file NestedContainer.h.
347 {
348
351
353
356
358 }
359
363 }
364 }
static void getall(const Daughter &d, std::vector< std::pair< ExpandedIdentifier, const T * > > &entries)
copy all object pointers into a vector of (id,pointer) pairs
◆ getall() [2/2]
◆ numObjects() [1/2]
return the total number of valid calibration objects
Definition at line 260 of file NestedContainer.h.
260 {
268 }
static size_t numObjects(const Daughter &d)
total number of atomic objects in daugther
◆ numObjects() [2/2]
return the total number of valid calibration objects
Definition at line 260 of file NestedContainer.h.
◆ operator==() [1/2]
equality operator, used for compressing
Definition at line 272 of file NestedContainer.h.
272 {
274 }
T m_default
Type of atomic element.
DaughterContainer m_daughters
Container of Daughters.
◆ operator==() [2/2]
| bool TRTCond::NestedContainerBase< NestingLevel, NestedContainer< NestingLevel+1, StrawStatus, DeadStrawTrait >, StrawStatus, DeadStrawTrait >::operator== |
( |
const NestedContainerBase< NestingLevel, NestedContainer< NestingLevel+1, StrawStatus, DeadStrawTrait >, StrawStatus, DeadStrawTrait > & | rhs | ) |
const |
|
inlineinherited |
◆ print() [1/2]
Definition at line 334 of file NestedContainer.h.
334 {
342 }
343 }
static void print(const Daughter &d)
print daugther info
◆ print() [2/2]
◆ printindent() [1/2]
◆ printindent() [2/2]
◆ set() [1/2]
set a value.
using 'level' in id we can specify if we want to set the default value.
Definition at line 191 of file NestedContainer.h.
191 {
193
195 } else {
197
201 }
202 }
static void set(Daughter &d, const ExpandedIdentifier &id, const T &t)
set value for given id
◆ set() [2/2]
set a value.
using 'level' in id we can specify if we want to set the default value.
Definition at line 191 of file NestedContainer.h.
191 {
193
195 } else {
197
201 }
202 }
◆ setStatus()
set status
Definition at line 55 of file StrawStatusContainer.h.
55 {
57
58 }
void set(const ExpandedIdentifier &id, const T &t)
◆ m_daughters [1/2]
◆ m_daughters [2/2]
◆ m_default [1/2]
◆ m_default [2/2]
The documentation for this class was generated from the following file: