HepMC3 event record library
|
specialisation of Feature for floating point type
Test of equality of floating point types is not safe. Here we provide a "reasonable" definition of equality based on the floating point precision.
#include <Feature.h>
Public Types | |
using | Evaluator_type = std::function< Feature_type(ConstGenParticlePtr)> |
evaluator type More... | |
using | EvaluatorPtr = std::shared_ptr< Evaluator_type > |
shared pointer for evaluator type More... | |
Public Member Functions | |
Feature (Evaluator_type functor) | |
Feature. More... | |
Feature (const Feature ©) | |
Copy. More... | |
Feature< Feature_type > | abs () const |
abs function More... | |
Filter | operator== (Feature_type value) const override |
equality operator More... | |
Filter | operator!= (Feature_type value) const override |
inequality operator More... | |
Feature_type | operator() (ConstGenParticlePtr input) const |
access the underlying feature value More... | |
Filter | operator> (Feature_type value) const |
greater than operator More... | |
Filter | operator< (Feature_type value) const |
less than operator More... | |
Filter | operator>= (Feature_type value) const |
greater than or equals operator More... | |
Filter | operator<= (Feature_type value) const |
less than or equals operator More... | |
Protected Attributes | |
EvaluatorPtr | m_internal |
internal copy of func for evaluation on the heap so will persist in resulting Filters even if parent Feature object was destroyed More... | |
|
inherited |
|
inherited |
|
inline |
|
inline |
abs function
Definition at line 294 of file Feature.h.
References HepMC3::abs(), and GenericFeature< Feature_type >::m_internal.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineoverridevirtual |
equality operator
Reimplemented from GenericFeature< Feature_type >.
Definition at line 300 of file Feature.h.
References GenericFeature< Feature_type >::m_internal.
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |