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

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 >
static void TRTCond::NestedContainerDaughterAccessor< Daughter, T, Trait >::clear ( Daughter &  d)
inlinestatic

clear container

Definition at line 94 of file NestedContainer.h.

94 { d.clear() ; } ;

◆ clear() [2/2]

template<class Daughter , class T , class Trait >
static 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 >
static 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 >
static 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() ; }

◆ empty()

template<class Daughter , class T , class Trait >
static 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() ; }

◆ footprint()

template<class Daughter , class T , class Trait >
static 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() ; }

◆ get() [1/3]

template<class Daughter , class T , class Trait >
static 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() ; }

◆ get() [2/3]

template<class Daughter , class T , class Trait >
static 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 >
static 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 >
static 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) ; }

◆ initialvalue()

template<class Daughter , class T , class Trait >
static 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 >
static 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 >
static 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() ; }

◆ print()

template<class Daughter , class T , class Trait >
static 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() ; }

◆ set()

template<class Daughter , class T , class Trait >
static 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) ; }

The documentation for this struct was generated from the following file:
hist_file_dump.d
d
Definition: hist_file_dump.py:137
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
entries
double entries
Definition: listroot.cxx:49