MarlinMT
0.1.0
|
wrapper class for an Entry filter function. More...
#include <Condition.h>
Public Types | |
using | FilterFn_t = std::function< bool(const EntryKey &) > |
Public Member Functions | |
Condition () | |
default constructor. More... | |
~Condition ()=default | |
Condition (FilterFn_t filterFn) | |
construct Condition from filter function. More... | |
Condition & | operator= (const FilterFn_t &filterFn) |
Condition (Condition &&)=default | |
move constructor. More... | |
Condition & | operator= (Condition &&)=default |
Condition (const Condition &)=default | |
copy constructor. More... | |
Condition & | operator= (const Condition &)=default |
bool | operator() (const EntryKey &key) const |
test Condition on key. More... | |
Condition | operator & (const Condition &rhs) const |
creates a composed condition. More... | |
Condition | operator| (const Condition &rhs) const |
creates a composed condition. More... | |
Condition | operator! () const |
creates a condition More... | |
Private Attributes | |
FilterFn_t | _fiterFn |
actually filter function. More... | |
wrapper class for an Entry filter function.
Definition at line 21 of file Condition.h.
using marlinmt::book::Condition::FilterFn_t = std::function< bool( const EntryKey & ) > |
Definition at line 24 of file Condition.h.
marlinmt::book::Condition::Condition | ( | ) |
default constructor.
Definition at line 27 of file Condition.cc.
Referenced by marlinmt::book::ConditionBuilder::condition(), operator &(), operator!(), and operator|().
|
default |
|
explicit |
construct Condition from filter function.
Definition at line 32 of file Condition.cc.
|
default |
move constructor.
|
default |
copy constructor.
creates a composed condition.
rhs | condition to compose with. |
Definition at line 55 of file Condition.h.
References _fiterFn, and Condition().
|
inline |
creates a condition
Definition at line 78 of file Condition.h.
References _fiterFn, and Condition().
|
inline |
test Condition on key.
Definition at line 47 of file Condition.h.
References _fiterFn.
Condition & marlinmt::book::Condition::operator= | ( | const FilterFn_t & | filterFn | ) |
Definition at line 36 of file Condition.cc.
References _fiterFn.
creates a composed condition.
rhs | condition to compose with. |
Definition at line 67 of file Condition.h.
References _fiterFn, and Condition().
|
private |
actually filter function.
Definition at line 86 of file Condition.h.
Referenced by operator &(), operator!(), operator()(), operator=(), and operator|().