ATLAS Offline Software
Loading...
Searching...
No Matches
TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait > Struct Template Reference

#include <NestedContainer.h>

Collaboration diagram for TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >:

Static Public Member Functions

static const T & get (const Daughter &d, const ExpandedIdentifier &id)
 get value for given id
static const T & get (const Daughter &d, const ExpandedIdentifier &id, size_t &resolvelevel)
 resolve the nesting level for a given id
static const T & get (const Daughter &d)
 get default for daughter container
static void set (Daughter &d, const ExpandedIdentifier &id, const T &t)
 set value for given id
static bool empty (Daughter &d)
 empty daughter container
static void clear (Daughter &d, const ExpandedIdentifier &id)
 clear container for given id
static void clear (Daughter &d)
 clear container
static void print (const Daughter &d)
 print daugther info
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
static Daughter initialvalue ()
 make a default daugther
static void copy (Daughter &out, const Daughter &in)
 copy daugthers
static size_t footprint (const Daughter &d)
 return allocated memory
static void crunch (Daughter &d)
 compress daugther size
static bool isequal (const Daughter &lhs, const Daughter &rhs)
 equality operator
static size_t numObjects (const Daughter &d)
 total number of atomic objects in daugther

Detailed Description

template<class Daughter, class T, class Trait>
struct TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >

Definition at line 79 of file NestedContainer.h.

Member Function Documentation

◆ clear() [1/2]

template<class Daughter, class T, class Trait>
void TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::clear ( Daughter & d)
inlinestatic

clear container

Definition at line 94 of file NestedContainer.h.

94{ d.clear() ; } ;
static void clear(Daughter &d, const ExpandedIdentifier &id)
clear container for given id

◆ clear() [2/2]

template<class Daughter, class T, class Trait>
void TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::clear ( Daughter & d,
const ExpandedIdentifier & id )
inlinestatic

clear container for given id

Definition at line 92 of file NestedContainer.h.

92{ d.clear(id) ; } ;

◆ copy()

template<class Daughter, class T, class Trait>
void TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::copy ( Daughter & out,
const Daughter & in )
inlinestatic

copy daugthers

Definition at line 103 of file NestedContainer.h.

103{ out = in ; }

◆ crunch()

template<class Daughter, class T, class Trait>
void TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::crunch ( Daughter & d)
inlinestatic

compress daugther size

Definition at line 107 of file NestedContainer.h.

107{ return d.crunch() ; }
static void crunch(Daughter &d)
compress daugther size

◆ empty()

template<class Daughter, class T, class Trait>
bool TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::empty ( Daughter & d)
inlinestatic

empty daughter container

Definition at line 90 of file NestedContainer.h.

90{ return d.daughters().empty() ; }
static bool empty(Daughter &d)
empty daughter container

◆ footprint()

template<class Daughter, class T, class Trait>
size_t TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::footprint ( const Daughter & d)
inlinestatic

return allocated memory

Definition at line 105 of file NestedContainer.h.

105{ return d.footprint() ; }
static size_t footprint(const Daughter &d)
return allocated memory

◆ get() [1/3]

template<class Daughter, class T, class Trait>
const T & TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::get ( const Daughter & d)
inlinestatic

get default for daughter container

Definition at line 86 of file NestedContainer.h.

86{ return d.get() ; }
static const T & get(const Daughter &d, const ExpandedIdentifier &id)
get value for given id

◆ get() [2/3]

template<class Daughter, class T, class Trait>
const T & TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::get ( const Daughter & d,
const ExpandedIdentifier & id )
inlinestatic

get value for given id

Definition at line 82 of file NestedContainer.h.

82{ return d.get(id) ; }

◆ get() [3/3]

template<class Daughter, class T, class Trait>
const T & TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::get ( const Daughter & d,
const ExpandedIdentifier & id,
size_t & resolvelevel )
inlinestatic

resolve the nesting level for a given id

Definition at line 84 of file NestedContainer.h.

84{ return d.get(id,resolvelevel) ; }

◆ getall()

template<class Daughter, class T, class Trait>
void TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::getall ( const Daughter & d,
std::vector< std::pair< ExpandedIdentifier, const T * > > & entries )
inlinestatic

copy all object pointers into a vector of (id,pointer) pairs

Definition at line 98 of file NestedContainer.h.

98 {
99 d.getall(entries) ; }
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

◆ initialvalue()

template<class Daughter, class T, class Trait>
Daughter TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::initialvalue ( )
inlinestatic

make a default daugther

Definition at line 101 of file NestedContainer.h.

101{ return Daughter() ; }

◆ isequal()

template<class Daughter, class T, class Trait>
bool TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::isequal ( const Daughter & lhs,
const Daughter & rhs )
inlinestatic

equality operator

Definition at line 109 of file NestedContainer.h.

109{ return lhs==rhs ; }

◆ numObjects()

template<class Daughter, class T, class Trait>
size_t TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::numObjects ( const Daughter & d)
inlinestatic

total number of atomic objects in daugther

Definition at line 111 of file NestedContainer.h.

111{ return d.numObjects() ; }
static size_t numObjects(const Daughter &d)
total number of atomic objects in daugther

◆ print()

template<class Daughter, class T, class Trait>
void TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::print ( const Daughter & d)
inlinestatic

print daugther info

Definition at line 96 of file NestedContainer.h.

96{ d.print() ; }
static void print(const Daughter &d)
print daugther info

◆ set()

template<class Daughter, class T, class Trait>
void TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::set ( Daughter & d,
const ExpandedIdentifier & id,
const T & t )
inlinestatic

set value for given id

Definition at line 88 of file NestedContainer.h.

88{ d.set(id,t) ; }
static void set(Daughter &d, const ExpandedIdentifier &id, const T &t)
set value for given id

The documentation for this struct was generated from the following file: