22 #ifndef __M2ETIS_PUBSUB_FILTER_FILTEREXPRESSIONS_TRUEPREDICATE_H__
23 #define __M2ETIS_PUBSUB_FILTER_FILTEREXPRESSIONS_TRUEPREDICATE_H__
32 template<
typename EventType>
38 filter_visitor.
Visit(
this);
41 virtual bool match(
const EventType &)
const {
return true; }
46 M2ETIS_THROW_API(
"TruePredicate",
"getAttributeType not allowed in strategies with attribute types.");
51 template<
typename Archive>
52 void serialize(Archive & ar,
const unsigned int) {
53 ar & boost::serialization::base_object<Predicate<EventType>>(*this);
virtual void Accept(FilterVisitor< EventType > &filter_visitor) const override
virtual bool overlaps(const Predicate< EventType > *) const
virtual bool match(const EventType &) const
virtual void Visit(const FilterExp< EventType > *)=0
virtual void getAttributeType(FilterVisitor< EventType > &) const override
#define M2ETIS_THROW_API(module, message)
throws on wrong API usage
friend class boost::serialization::access