6 #ifndef HEPMC3_SEARCH_FILTEATTRIBUTE_H
7 #define HEPMC3_SEARCH_FILTEATTRIBUTE_H
45 m_attribute = ATTRIBUTE_IS_EQUAL;
46 at->to_string(m_attribute_str);
52 m_bool_value = !m_bool_value;
53 m_attribute = ATTRIBUTE_IS_EQUAL;
54 at->to_string(m_attribute_str);
60 m_attribute = ATTRIBUTE_IS_EQUAL;
61 m_attribute_str = value;
67 m_bool_value = !m_bool_value;
68 m_attribute = ATTRIBUTE_IS_EQUAL;
69 m_attribute_str = value;
75 m_bool_value = !m_bool_value;
Filter & operator!()
Negate logic of the result (eg. check if attribute does not exist)
Filter & operator!=(std::shared_ptr< Attribute > &at)
Compare if this attribute is not equal to other attribute.
ATTRIBUTE(const std::string &name)
Default constructor.
Filter & operator!=(const std::string &value)
Compare if string version of this attribute is not equal value.
Defines Filter operations for combingin Filters.
Filter for the attributes.
std::function< bool(ConstGenParticlePtr)> Filter
type of Filter
Filter & operator==(const std::string &value)
Compare if string version of this attribute is equal value.
Annotation for function names.
Definition of class Attribute, class IntAttribute and class StringAttribute.
Filter & operator==(std::shared_ptr< Attribute > &at)
Compare if this attribute is equal to other attribute.