![]() |
ATLAS Offline Software
|
#include <NestedContainer.h>
Public Types | |
| typedef T | value_type |
| Type of atomic element. More... | |
| typedef const T | const_value_type |
| const Type of atomic element. More... | |
| typedef Trait | trait_type |
| Type of trait. More... | |
| typedef std::vector< std::pair< ExpandedIdentifier, const T * > > | FlatContainer |
| fill vector with all entries in the container. needed to dump to Peter's flat file format More... | |
Public Member Functions | |
| NestedContainerBase () | |
| constructor More... | |
| ~NestedContainerBase ()=default | |
| destructor More... | |
| void | set (const ExpandedIdentifier &id, const T &t) |
| set a value. More... | |
| const T & | get (const ExpandedIdentifier &id) const |
| get a value. More... | |
| const T & | get (const ExpandedIdentifier &id, size_t &resolvelevel) const |
| const T & | get () const |
| get the default value More... | |
| void | set (const T &t) |
| set the default value More... | |
| void | clear () |
| clear entire container More... | |
| void | clear (const ExpandedIdentifier &id) |
| clear only entries specified More... | |
| const DaughterContainer & | daughters () const |
| return the vector of daughters More... | |
| size_t | numObjects () const |
| return the total number of valid calibration objects More... | |
| bool | operator== (const NestedContainerBase &rhs) const |
| equality operator, used for compressing More... | |
| bool | operator== (const T &rhs) const |
| another equality operator, used for compressing More... | |
| size_t | footprint () const |
| return the memory allocated by the container and its daughters More... | |
| void | crunch () |
| reduce the footprint as much as possible by removing the extra space allocated by the vectors More... | |
| void | printindent () const |
| some IO for debugging More... | |
| void | print () const |
| void | getall (FlatContainer &entries) const |
Private Types | |
| typedef std::vector< Daughter > | DaughterContainer |
| typedef of container More... | |
Private Attributes | |
| DaughterContainer | m_daughters |
| Container of Daughters. More... | |
| T | m_default |
| Type of atomic element. More... | |
Base class for nested containers
Definition at line 150 of file NestedContainer.h.
| typedef const T TRTCond::NestedContainerBase< NestingLevel, Daughter, T, Trait >::const_value_type |
const Type of atomic element.
Definition at line 161 of file NestedContainer.h.
|
private |
typedef of container
Definition at line 154 of file NestedContainer.h.
| typedef std::vector< std::pair<ExpandedIdentifier, const T*> > TRTCond::NestedContainerBase< NestingLevel, Daughter, T, Trait >::FlatContainer |
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.
| typedef Trait TRTCond::NestedContainerBase< NestingLevel, Daughter, T, Trait >::trait_type |
Type of trait.
Definition at line 162 of file NestedContainer.h.
| typedef T TRTCond::NestedContainerBase< NestingLevel, Daughter, T, Trait >::value_type |
Type of atomic element.
Definition at line 160 of file NestedContainer.h.
|
inline |
|
default |
destructor
|
inline |
clear entire container
Definition at line 238 of file NestedContainer.h.
|
inline |
|
inline |
reduce the footprint as much as possible by removing the extra space allocated by the vectors
Definition at line 292 of file NestedContainer.h.
|
inline |
|
inline |
return the memory allocated by the container and its daughters
Definition at line 282 of file NestedContainer.h.
|
inline |
|
inline |
get a value.
return the default value if no valid entry for id exists.
Definition at line 205 of file NestedContainer.h.
|
inline |
Definition at line 217 of file NestedContainer.h.
|
inline |
Definition at line 347 of file NestedContainer.h.
|
inline |
return the total number of valid calibration objects
Definition at line 260 of file NestedContainer.h.
|
inline |
equality operator, used for compressing
Definition at line 272 of file NestedContainer.h.
|
inline |
another equality operator, used for compressing
Definition at line 277 of file NestedContainer.h.
|
inline |
Definition at line 334 of file NestedContainer.h.
|
inline |
some IO for debugging
Definition at line 330 of file NestedContainer.h.
|
inline |
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.
|
inline |
|
private |
Container of Daughters.
Definition at line 156 of file NestedContainer.h.
|
private |
Type of atomic element.
Definition at line 157 of file NestedContainer.h.
1.8.18