ATLAS Offline Software
Static Public Member Functions | List of all members
TRTCond::NestedContainerDaughterAccessor< T, T, Trait > Struct Template Reference

NestedContainerDaugtherAccessor
specialization if the daughter is not a container, but an atomic object ('STRAW' level) More...

#include <NestedContainer.h>

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

Static Public Member Functions

static const T & get (const T &d, const ExpandedIdentifier &)
 
static const T & get (const T &d, const ExpandedIdentifier &, size_t &)
 
static const T & get (const T &d)
 
static void set (T &d, const ExpandedIdentifier &, const T &t)
 
static bool empty (T &)
 
static void clear (T &d, const ExpandedIdentifier &)
 
static void clear (T &d)
 
static void print (const T &d)
 
static void getall (const T &d, std::vector< std::pair< ExpandedIdentifier, const T * > > &entries)
 
static T initialvalue ()
 
static void copy (T &out, const T &in)
 
static size_t footprint (const T &d)
 
static void crunch (T &)
 
static bool isequal (const T &lhs, const T &rhs)
 
static size_t numObjects (const T &d)
 

Detailed Description

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

NestedContainerDaugtherAccessor
specialization if the daughter is not a container, but an atomic object ('STRAW' level)

Definition at line 119 of file NestedContainer.h.

Member Function Documentation

◆ clear() [1/2]

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

Definition at line 127 of file NestedContainer.h.

127 { Trait::erase(d) ; }

◆ clear() [2/2]

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

Definition at line 126 of file NestedContainer.h.

126 { Trait::erase(d) ; }

◆ copy()

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

Definition at line 136 of file NestedContainer.h.

136 { Trait::copy(out,in) ; }

◆ crunch()

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

Definition at line 138 of file NestedContainer.h.

138 {}

◆ empty()

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

Definition at line 125 of file NestedContainer.h.

125 { return true ; }

◆ footprint()

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

Definition at line 137 of file NestedContainer.h.

137 { return Trait::footprint(d) ; }

◆ get() [1/3]

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

Definition at line 123 of file NestedContainer.h.

123 { return d ; }

◆ get() [2/3]

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

Definition at line 121 of file NestedContainer.h.

121 { return d ; }

◆ get() [3/3]

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

Definition at line 122 of file NestedContainer.h.

122 { return d ; }

◆ getall()

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

Definition at line 129 of file NestedContainer.h.

129  {
130  if(Trait::isvalid(d) ) {
132  entries.push_back(std::pair<ExpandedIdentifier, const T*>(id,&d)) ;
133  }
134  }

◆ initialvalue()

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

Definition at line 135 of file NestedContainer.h.

135 { return Trait::initialvalue() ; }

◆ isequal()

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

Definition at line 139 of file NestedContainer.h.

139 { return Trait::isequal(lhs,rhs) ; }

◆ numObjects()

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

Definition at line 140 of file NestedContainer.h.

140 { return Trait::isvalid(d) ? 1 : 0 ; }

◆ print()

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

Definition at line 128 of file NestedContainer.h.

128 { Trait::print(d) ; }

◆ set()

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

Definition at line 124 of file NestedContainer.h.

124 { Trait::copy(d,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
ExpandedIdentifier
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:108
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
TRTCond::ExpandedIdentifier::STRAW
@ STRAW
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
entries
double entries
Definition: listroot.cxx:49
calibdata.copy
bool copy
Definition: calibdata.py:27