HepMC3 event record library
Public Member Functions
ATTRIBUTE Class Reference

Filter for the attributes. More...

#include <FilterAttribute.h>

+ Inheritance diagram for ATTRIBUTE:
+ Collaboration diagram for ATTRIBUTE:

Public Member Functions

 ATTRIBUTE (const std::string &name)
 Default constructor. More...
 
Filteroperator== (std::shared_ptr< Attribute > &at)
 Compare if this attribute is equal to other attribute. More...
 
Filteroperator!= (std::shared_ptr< Attribute > &at)
 Compare if this attribute is not equal to other attribute. More...
 
Filteroperator== (const std::string &value)
 Compare if string version of this attribute is equal value. More...
 
Filteroperator!= (const std::string &value)
 Compare if string version of this attribute is not equal value. More...
 
Filteroperator! ()
 Negate logic of the result (eg. check if attribute does not exist) More...
 

Detailed Description

Filter for the attributes.

Used to construct filters that can check if an attribute exists or to compare against other attribute. See searchengine for details and examples of its use.

Definition at line 28 of file FilterAttribute.h.

Constructor & Destructor Documentation

ATTRIBUTE ( const std::string &  name)
inline

Default constructor.

Provides the name of the attribute used in by the filter

Definition at line 36 of file FilterAttribute.h.

Member Function Documentation

Filter& operator! ( )
inline

Negate logic of the result (eg. check if attribute does not exist)

Definition at line 74 of file FilterAttribute.h.

Filter& operator!= ( std::shared_ptr< Attribute > &  at)
inline

Compare if this attribute is not equal to other attribute.

Definition at line 51 of file FilterAttribute.h.

Filter& operator!= ( const std::string &  value)
inline

Compare if string version of this attribute is not equal value.

Definition at line 66 of file FilterAttribute.h.

Filter& operator== ( std::shared_ptr< Attribute > &  at)
inline

Compare if this attribute is equal to other attribute.

Definition at line 44 of file FilterAttribute.h.

Filter& operator== ( const std::string &  value)
inline

Compare if string version of this attribute is equal value.

Definition at line 59 of file FilterAttribute.h.


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