DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Protected Member Functions | List of all members
dd4hep::ConditionsSelect Class Referenceabstract

Conditions selector functor. Default implementation selects everything evaluated. More...

#include <Conditions.h>

Inheritance diagram for dd4hep::ConditionsSelect:
dd4hep::cond::Operators::MapConditionsSelect< T > dd4hep::ConditionsSelectWrapper< OBJECT >

Public Member Functions

bool operator() (Condition cond) const
 Selection callback: return true if the condition should be selected. More...
 
bool operator() (std::pair< Condition::key_type, Condition::Object * > cond) const
 Selection callback: return true if the condition should be selected. More...
 
bool operator() (std::pair< Condition::key_type, Condition > cond) const
 Selection callback: return true if the condition should be selected. More...
 
virtual size_t size () const
 Overloadable entry: Return number of conditions selected. Default does nothing.... More...
 
virtual bool operator() (Condition::Object *cond) const =0
 Overloadable entry: Selection callback: return true if the condition should be selected. More...
 

Protected Member Functions

 ConditionsSelect ()=default
 Default constructor. More...
 
 ConditionsSelect (const ConditionsSelect &copy)=default
 Copy constructor. More...
 
virtual ~ConditionsSelect ()
 Default destructor. More...
 
ConditionsSelectoperator= (const ConditionsSelect &copy)=default
 Default assignment operator. More...
 

Detailed Description

Conditions selector functor. Default implementation selects everything evaluated.

Please note: This class should never be directly instantiated by the user. A typical use-case is to do so in a wrapper class, which contains a refernce to a counter object, which in turn allows to deduce information from the processed objects.

See class ConditionsSelectWrapper below

Author
M.Frank
Version
1.0

Definition at line 422 of file Conditions.h.

Constructor & Destructor Documentation

◆ ConditionsSelect() [1/2]

dd4hep::ConditionsSelect::ConditionsSelect ( )
protecteddefault

Default constructor.

◆ ConditionsSelect() [2/2]

dd4hep::ConditionsSelect::ConditionsSelect ( const ConditionsSelect copy)
protecteddefault

Copy constructor.

◆ ~ConditionsSelect()

ConditionsSelect::~ConditionsSelect ( )
protectedvirtual

Default destructor.

Definition at line 218 of file Conditions.cpp.

Member Function Documentation

◆ operator()() [1/4]

bool dd4hep::ConditionsSelect::operator() ( Condition  cond) const
inline

Selection callback: return true if the condition should be selected.

Definition at line 435 of file Conditions.h.

◆ operator()() [2/4]

virtual bool dd4hep::ConditionsSelect::operator() ( Condition::Object cond) const
pure virtual

Overloadable entry: Selection callback: return true if the condition should be selected.

Implemented in dd4hep::cond::Operators::MapConditionsSelect< T >.

◆ operator()() [3/4]

bool dd4hep::ConditionsSelect::operator() ( std::pair< Condition::key_type, Condition cond) const
inline

Selection callback: return true if the condition should be selected.

Arg is 2 longwords. No need to pass by reference.

Definition at line 442 of file Conditions.h.

◆ operator()() [4/4]

bool dd4hep::ConditionsSelect::operator() ( std::pair< Condition::key_type, Condition::Object * >  cond) const
inline

Selection callback: return true if the condition should be selected.

Arg is 2 longwords. No need to pass by reference.

Definition at line 437 of file Conditions.h.

◆ operator=()

ConditionsSelect& dd4hep::ConditionsSelect::operator= ( const ConditionsSelect copy)
protecteddefault

Default assignment operator.

◆ size()

virtual size_t dd4hep::ConditionsSelect::size ( ) const
inlinevirtual

Overloadable entry: Return number of conditions selected. Default does nothing....

Reimplemented in dd4hep::cond::Operators::MapConditionsSelect< T >.

Definition at line 446 of file Conditions.h.


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