DD4hep  1.38.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Public Attributes | List of all members
dd4hep::cond::AbstractMap Class Reference

Conditions data block. Internaly maps other objects to abstract data blocks. More...

#include <ConditionsData.h>

Public Types

enum  { REGULAR = 0, ALIGNMENT = 6 }
 
typedef std::map< std::string, OpaqueDataBlock > Params
 

Public Member Functions

 AbstractMap ()
 Default constructor. More...
 
 AbstractMap (const AbstractMap &c)
 Copy constructor. More...
 
virtual ~AbstractMap ()
 Default destructor. More...
 
AbstractMap & operator= (const AbstractMap &c)
 Assignment operator. More...
 
template<typename T >
T * option () const
 Simplify access to client data. More...
 
size_t size () const
 Access the number of contained blocks. More...
 
const Params::value_type & firstParam () const
 Simplify access to first item of the parameter list (const access) More...
 
Params::value_type & firstParam ()
 Simplify access to first item of the parameter list. More...
 
template<typename T >
const T & first () const
 Simplify access to first item of the parameter list (const access) More...
 
template<typename T >
T & first ()
 Simplify access to first item of the parameter list. More...
 
template<typename T >
const T & operator[] (const std::string &item) const
 Simplify access to mapped item of the parameter list (const access) More...
 
template<typename T >
T & operator[] (const std::string &item)
 Simplify access to mapped item of the parameter list. More...
 
template<typename T >
const T & get (const std::string &item) const
 Simplify access to mapped item of the parameter list (const access) More...
 
template<typename T >
T & get (const std::string &item)
 Simplify access to mapped item of the parameter list. More...
 

Public Attributes

ClientData * clientData
 
Params params
 
int classID
 

Detailed Description

Conditions data block. Internaly maps other objects to abstract data blocks.

Author
M.Frank
Version
1.0
Date
31/03/2016

Definition at line 49 of file ConditionsData.h.

Member Typedef Documentation

◆ Params

typedef std::map<std::string, OpaqueDataBlock> dd4hep::cond::AbstractMap::Params

Definition at line 56 of file ConditionsData.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
REGULAR 
ALIGNMENT 

Definition at line 52 of file ConditionsData.h.

Constructor & Destructor Documentation

◆ AbstractMap() [1/2]

AbstractMap::AbstractMap ( )

Default constructor.

Definition at line 51 of file ConditionsData.cpp.

◆ AbstractMap() [2/2]

AbstractMap::AbstractMap ( const AbstractMap &  c)

Copy constructor.

Definition at line 56 of file ConditionsData.cpp.

◆ ~AbstractMap()

AbstractMap::~AbstractMap ( )
virtual

Default destructor.

Definition at line 63 of file ConditionsData.cpp.

Member Function Documentation

◆ first() [1/2]

template<typename T >
T& dd4hep::cond::AbstractMap::first ( )
inline

Simplify access to first item of the parameter list.

Definition at line 95 of file ConditionsData.h.

◆ first() [2/2]

template<typename T >
const T& dd4hep::cond::AbstractMap::first ( ) const
inline

Simplify access to first item of the parameter list (const access)

Definition at line 89 of file ConditionsData.h.

◆ firstParam() [1/2]

Params::value_type& dd4hep::cond::AbstractMap::firstParam ( )
inline

Simplify access to first item of the parameter list.

Definition at line 83 of file ConditionsData.h.

◆ firstParam() [2/2]

const Params::value_type& dd4hep::cond::AbstractMap::firstParam ( ) const
inline

Simplify access to first item of the parameter list (const access)

Definition at line 77 of file ConditionsData.h.

◆ get() [1/2]

template<typename T >
T& dd4hep::cond::AbstractMap::get ( const std::string &  item)
inline

Simplify access to mapped item of the parameter list.

Definition at line 119 of file ConditionsData.h.

◆ get() [2/2]

template<typename T >
const T& dd4hep::cond::AbstractMap::get ( const std::string &  item) const
inline

Simplify access to mapped item of the parameter list (const access)

Definition at line 113 of file ConditionsData.h.

◆ operator=()

AbstractMap & AbstractMap::operator= ( const AbstractMap &  c)

Assignment operator.

Definition at line 70 of file ConditionsData.cpp.

◆ operator[]() [1/2]

template<typename T >
T& dd4hep::cond::AbstractMap::operator[] ( const std::string &  item)
inline

Simplify access to mapped item of the parameter list.

Definition at line 107 of file ConditionsData.h.

◆ operator[]() [2/2]

template<typename T >
const T& dd4hep::cond::AbstractMap::operator[] ( const std::string &  item) const
inline

Simplify access to mapped item of the parameter list (const access)

Definition at line 101 of file ConditionsData.h.

◆ option()

template<typename T >
T* dd4hep::cond::AbstractMap::option ( ) const
inline

Simplify access to client data.

Definition at line 69 of file ConditionsData.h.

◆ size()

size_t dd4hep::cond::AbstractMap::size ( ) const
inline

Access the number of contained blocks.

Definition at line 73 of file ConditionsData.h.

Member Data Documentation

◆ classID

int dd4hep::cond::AbstractMap::classID

Definition at line 59 of file ConditionsData.h.

◆ clientData

ClientData* dd4hep::cond::AbstractMap::clientData

Definition at line 57 of file ConditionsData.h.

◆ params

Params dd4hep::cond::AbstractMap::params

Definition at line 58 of file ConditionsData.h.


The documentation for this class was generated from the following files: