DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Class describing an opaque data block. More...
#include <OpaqueData.h>
Public Member Functions | |
bool | fromString (const std::string &rep) |
No ROOT persistency. More... | |
std::string | str () const |
Create string representation of the data block. More... | |
const std::type_info & | typeInfo () const |
Access type id of the condition. More... | |
const std::string & | dataType () const |
Access type name of the condition data block. More... | |
const void * | ptr () const |
Access to the data buffer (read only!). Is only valid after call to bind<T>() More... | |
bool | is_bound () const |
Check if object is already bound.... More... | |
template<typename T > | |
T & | get () |
Generic getter. Specify the exact type, not a polymorph type. More... | |
template<typename T > | |
const T & | get () const |
Generic getter (const version). Specify the exact type, not a polymorph type. More... | |
template<typename T > | |
T & | as () |
Generic getter. Resolves polymorph types. It is mandatory that the datatype is polymorph! More... | |
template<typename T > | |
const T & | as () const |
Generic getter (const version). Resolves polymorph types. It is mandatory that the datatype is polymorph! More... | |
Public Attributes | |
const BasicGrammar * | grammar = 0 |
Data type. More... | |
Protected Member Functions | |
OpaqueData ()=default | |
Standard initializing constructor. More... | |
virtual | ~OpaqueData ()=default |
Standard Destructor. More... | |
OpaqueData (const OpaqueData ©)=default | |
Copy constructor. More... | |
OpaqueData & | operator= (const OpaqueData ©)=default |
Assignment operator. More... | |
Protected Attributes | |
void * | pointer = 0 |
No ROOT persistency. More... | |
Class describing an opaque data block.
Access methods are templated. Once the access is fixed on the first call, the data type may not be changed anymore.
Definition at line 39 of file OpaqueData.h.
|
protecteddefault |
Standard initializing constructor.
|
protectedvirtualdefault |
Standard Destructor.
|
protecteddefault |
Copy constructor.
|
inline |
Generic getter. Resolves polymorph types. It is mandatory that the datatype is polymorph!
Generic getter. Specify the exact type, not a polymorph type.
Definition at line 169 of file OpaqueData.h.
|
inline |
Generic getter (const version). Resolves polymorph types. It is mandatory that the datatype is polymorph!
Generic getter (const version). Specify the exact type, not a polymorph type.
Definition at line 178 of file OpaqueData.h.
const std::string & OpaqueData::dataType | ( | ) | const |
Access type name of the condition data block.
Definition at line 50 of file OpaqueData.cpp.
bool OpaqueData::fromString | ( | const std::string & | rep | ) |
No ROOT persistency.
Create data block from string representation.
Create data block from string representation
Definition at line 26 of file OpaqueData.cpp.
|
inline |
Generic getter. Specify the exact type, not a polymorph type.
Definition at line 157 of file OpaqueData.h.
|
inline |
Generic getter (const version). Specify the exact type, not a polymorph type.
Definition at line 163 of file OpaqueData.h.
|
inline |
Check if object is already bound....
Definition at line 71 of file OpaqueData.h.
|
protecteddefault |
Assignment operator.
|
inline |
Access to the data buffer (read only!). Is only valid after call to bind<T>()
Definition at line 69 of file OpaqueData.h.
std::string OpaqueData::str | ( | ) | const |
Create string representation of the data block.
Definition at line 34 of file OpaqueData.cpp.
const std::type_info & OpaqueData::typeInfo | ( | ) | const |
Access type id of the condition.
Definition at line 42 of file OpaqueData.cpp.
const BasicGrammar* dd4hep::OpaqueData::grammar = 0 |
Data type.
Definition at line 53 of file OpaqueData.h.
|
protected |