![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
Conditions selector functor. Wraps a user defined object by reference. More...
#include <Conditions.h>
Public Member Functions | |
| ConditionsSelectWrapper (OBJECT &o) | |
| Default constructor. More... | |
| ConditionsSelectWrapper (const ConditionsSelectWrapper ©)=default | |
| Copy constructor. More... | |
| virtual | ~ConditionsSelectWrapper ()=default |
| Default destructor. More... | |
| ConditionsSelectWrapper & | operator= (const ConditionsSelectWrapper ©)=default |
| Default assignment operator. More... | |
Public Member Functions inherited from dd4hep::ConditionsSelect | |
| 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... | |
Public Attributes | |
| OBJECT & | object |
| Reference to the infomation collector. More... | |
Private Member Functions | |
| ConditionsSelectWrapper ()=delete | |
| Default constructor. More... | |
| bool | operator== (const ConditionsSelectWrapper &compare)=delete |
| Default assignment operator. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from dd4hep::ConditionsSelect | |
| ConditionsSelect ()=default | |
| Default constructor. More... | |
| ConditionsSelect (const ConditionsSelect ©)=default | |
| Copy constructor. More... | |
| virtual | ~ConditionsSelect () |
| Default destructor. More... | |
| ConditionsSelect & | operator= (const ConditionsSelect ©)=default |
| Default assignment operator. More... | |
Conditions selector functor. Wraps a user defined object by reference.
Example usage for the slow ones:
class MyCounter : public ConditionsSelectWrapper<long> { MyCounter(long& cnt) : ConditionsSelectWrapper<long>(cnt) {} virtual bool operator()(Condition::Object* cond) const { if ( cond != 0 ) ++object; } // Optionally overload: virtual size_t size() const { return object; } };
long counter = 0; for_each(std::begin(conditions), std::end(conditions), MyCounter(counter));
Definition at line 468 of file Conditions.h.
|
privatedelete |
Default constructor.
|
inline |
Default constructor.
Definition at line 481 of file Conditions.h.
|
default |
Copy constructor.
|
virtualdefault |
Default destructor.
|
default |
Default assignment operator.
|
privatedelete |
Default assignment operator.
| OBJECT& dd4hep::ConditionsSelectWrapper< OBJECT >::object |
Reference to the infomation collector.
Definition at line 477 of file Conditions.h.
1.8.18