DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dd4hep::detail::ConditionObject Class Reference

The data class behind a conditions handle. More...

#include <ConditionsInterna.h>

Inheritance diagram for dd4hep::detail::ConditionObject:
dd4hep::detail::AlignmentObject

Public Member Functions

 ConditionObject ()
 Default constructor. More...
 
 ConditionObject (const ConditionObject &)=delete
 No copy constructor. More...
 
 ConditionObject (ConditionObject &&)=delete
 
 ConditionObject (const std::string &nam, const std::string &tit="")
 Standard constructor. More...
 
virtual ~ConditionObject ()
 Standard Destructor. More...
 
ConditionObjectoperator= (const ConditionObject &)=delete
 No assignment operation. More...
 
ConditionObjectoperator= (ConditionObject &&)=delete
 No move assignment operator. More...
 
ConditionObjectaddRef ()
 Increase reference counter (Used by persistency mechanism) More...
 
void release ()
 Release object (Used by persistency mechanism) More...
 
ConditionObjectmove (ConditionObject &from)
 Move data content: 'from' will be reset to NULL. More...
 
const IOViovData () const
 Access safely the IOV. More...
 
const IOVTypeiovType () const
 Access safely the IOV-type. More...
 
void * payload () const
 Access the bound data payload. Exception id object is unbound. More...
 
bool is_bound () const
 Check if object is already bound.... More...
 
bool is_traced () const
 
void setFlag (Condition::mask_type option)
 Flag operations: Set a conditons flag. More...
 
void unFlag (Condition::mask_type option)
 Flag operations: UN-Set a conditons flag. More...
 
bool testFlag (Condition::mask_type option) const
 Flag operations: Test for a given a conditons flag. More...
 

Static Public Member Functions

static size_t offset ()
 Data offset from the opaque data block pointer to the condition. More...
 

Public Attributes

std::string value
 Condition value (in string form) More...
 
std::string validity
 Condition validity (in string form) More...
 
std::string address
 Condition address. More...
 
std::string comment
 Comment string. More...
 
OpaqueDataBlock data
 Data block. More...
 
const IOViov = 0
 Interval of validity. More...
 
Condition::key_type hash = 0
 Hash value of the name. More...
 
Condition::mask_type flags = 0
 Flags. More...
 
int refCount = 1
 Reference count. More...
 

Detailed Description

The data class behind a conditions handle.

See ConditionsInterna.cpp for the implementation.

Author
M.Frank
Version
1.0

The copy and move constructors have been removed from this class. It would be unsafe to copy or move an instance of it as:

Definition at line 64 of file ConditionsInterna.h.

Constructor & Destructor Documentation

◆ ConditionObject() [1/4]

detail::ConditionObject::ConditionObject ( )

Default constructor.

Definition at line 40 of file ConditionsInterna.cpp.

◆ ConditionObject() [2/4]

dd4hep::detail::ConditionObject::ConditionObject ( const ConditionObject )
delete

No copy constructor.

◆ ConditionObject() [3/4]

dd4hep::detail::ConditionObject::ConditionObject ( ConditionObject &&  )
delete

◆ ConditionObject() [4/4]

detail::ConditionObject::ConditionObject ( const std::string &  nam,
const std::string &  tit = "" 
)

Standard constructor.

Definition at line 50 of file ConditionsInterna.cpp.

◆ ~ConditionObject()

detail::ConditionObject::~ConditionObject ( )
virtual

Standard Destructor.

Definition at line 58 of file ConditionsInterna.cpp.

Member Function Documentation

◆ addRef()

ConditionObject* dd4hep::detail::ConditionObject::addRef ( )
inline

Increase reference counter (Used by persistency mechanism)

Definition at line 105 of file ConditionsInterna.h.

◆ iovData()

const dd4hep::IOV * detail::ConditionObject::iovData ( ) const

Access safely the IOV.

Definition at line 85 of file ConditionsInterna.cpp.

◆ iovType()

const dd4hep::IOVType * detail::ConditionObject::iovType ( ) const

Access safely the IOV-type.

Definition at line 92 of file ConditionsInterna.cpp.

◆ is_bound()

bool dd4hep::detail::ConditionObject::is_bound ( ) const
inline

Check if object is already bound....

Definition at line 119 of file ConditionsInterna.h.

◆ is_traced()

bool dd4hep::detail::ConditionObject::is_traced ( ) const
inline

Definition at line 120 of file ConditionsInterna.h.

◆ move()

detail::ConditionObject & detail::ConditionObject::move ( ConditionObject from)

Move data content: 'from' will be reset to NULL.

Definition at line 80 of file ConditionsInterna.cpp.

◆ offset()

size_t detail::ConditionObject::offset ( )
static

Data offset from the opaque data block pointer to the condition.

Definition at line 68 of file ConditionsInterna.cpp.

◆ operator=() [1/2]

ConditionObject& dd4hep::detail::ConditionObject::operator= ( ConditionObject &&  )
delete

No move assignment operator.

◆ operator=() [2/2]

ConditionObject& dd4hep::detail::ConditionObject::operator= ( const ConditionObject )
delete

No assignment operation.

◆ payload()

void * detail::ConditionObject::payload ( ) const

Access the bound data payload. Exception id object is unbound.

Definition at line 75 of file ConditionsInterna.cpp.

◆ release()

void detail::ConditionObject::release ( )

Release object (Used by persistency mechanism)

Definition at line 63 of file ConditionsInterna.cpp.

◆ setFlag()

void dd4hep::detail::ConditionObject::setFlag ( Condition::mask_type  option)
inline

Flag operations: Set a conditons flag.

Definition at line 122 of file ConditionsInterna.h.

◆ testFlag()

bool dd4hep::detail::ConditionObject::testFlag ( Condition::mask_type  option) const
inline

Flag operations: Test for a given a conditons flag.

Definition at line 126 of file ConditionsInterna.h.

◆ unFlag()

void dd4hep::detail::ConditionObject::unFlag ( Condition::mask_type  option)
inline

Flag operations: UN-Set a conditons flag.

Definition at line 124 of file ConditionsInterna.h.

Member Data Documentation

◆ address

std::string dd4hep::detail::ConditionObject::address

Condition address.

Definition at line 76 of file ConditionsInterna.h.

◆ comment

std::string dd4hep::detail::ConditionObject::comment

Comment string.

Definition at line 78 of file ConditionsInterna.h.

◆ data

OpaqueDataBlock dd4hep::detail::ConditionObject::data

Data block.

Definition at line 81 of file ConditionsInterna.h.

◆ flags

Condition::mask_type dd4hep::detail::ConditionObject::flags = 0

Flags.

Definition at line 87 of file ConditionsInterna.h.

◆ hash

Condition::key_type dd4hep::detail::ConditionObject::hash = 0

Hash value of the name.

No ROOT persistency

Definition at line 85 of file ConditionsInterna.h.

◆ iov

const IOV* dd4hep::detail::ConditionObject::iov = 0

Interval of validity.

Definition at line 83 of file ConditionsInterna.h.

◆ refCount

int dd4hep::detail::ConditionObject::refCount = 1

Reference count.

Definition at line 89 of file ConditionsInterna.h.

◆ validity

std::string dd4hep::detail::ConditionObject::validity

Condition validity (in string form)

Definition at line 74 of file ConditionsInterna.h.

◆ value

std::string dd4hep::detail::ConditionObject::value

Condition value (in string form)

Definition at line 71 of file ConditionsInterna.h.


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