22 #ifndef __M2ETIS_PUBSUB_FILTER_FILTEREXPRESSIONS_GREATERTHANATTRIBUTEFILTER_H__
23 #define __M2ETIS_PUBSUB_FILTER_FILTEREXPRESSIONS_GREATERTHANATTRIBUTEFILTER_H__
31 template<
typename EventType,
typename AttributeType>
class EqualsAttributeFilter;
32 template<
typename EventType,
typename AttributeType>
class NotEqualsAttributeFilter;
33 template<
typename EventType,
typename AttributeType>
class LessThanAttributeFilter;
35 template<
typename EventType,
typename AttributeType>
36 class GreaterThanAttributeFilter :
public AttributeFilter<EventType, AttributeType> {
48 virtual bool matchAttribute(
const AttributeType & attribute)
const override {
77 template<
typename Archive>
78 void serialize(Archive & ar,
const unsigned int) {
79 ar & boost::serialization::base_object<AttributeFilter<EventType, AttributeType>>(*this);
GreaterThanAttributeFilter()
virtual bool overlaps(const Predicate< EventType > *other_predicate) const override
virtual void getAttributeType(const GreaterThanAttributeFilter< EventType, std::string > *)
virtual void getAttributeType(FilterVisitor< EventType > &visitor) const override
const std::vector< AttributeType > get_constants() const
virtual bool overlaps(const AttributeFilter< EventType, AttributeType > *other_filter) const override
friend class boost::serialization::access
GreaterThanAttributeFilter(const AttributeName attribute_id, const AttributeType &constants)
virtual ~GreaterThanAttributeFilter()
AttributeName get_attribute_id() const
virtual bool matchAttribute(const AttributeType &attribute) const override