46 using Ptr = std::shared_ptr<Condition>;
47 using Functor = std::function<bool(T)>;
49 Condition(std::string identifier, ConditionType type, Functor functor);
51 ConditionType get_type()
const {
return type_; }
52 std::string get_identifier()
const {
return identifier_; }
53 Functor& get_functor()
59 void set_identifier(std::string identifier) { identifier_ = identifier; }
60 void set_type(ConditionType type) { type_ = type; }
61 void set_functor(Functor functor) { functor_ = functor; }
63 bool VerifyCondition_(T t);
66 std::string identifier_;