14 std::function<bool()> filter_function;
16 value = filter_function();
19 Filter(
const std::string&
name, std::function<
bool()> filter_function)
21 filter_function(filter_function){ }
24 auto new_name = this->get_name() +
"&&" + f->get_name();
29 auto new_name = this->get_name() +
"||" + f->get_name();
34 std::cout << std::string(
"!") << std::endl;
35 std::cout <<
this << this->get_name() << std::endl;
36 auto new_name = std::string(
"!(") + this->get_name() + std::string(
")");
37 std::cout << new_name << std::endl;
47 Filter(name, [test_value, range_low, range_high]{
49 return (val >= range_low) && (val < range_high);
std::string name
The name of the value.
Definition: value.hpp:71
virtual T & get_value()=0
Calculate, if necessary, and return the value held by this object.
A generic, derived, value.
Definition: value.hpp:174
Definition: filter.hpp:43
The namespace containing all filval classes and functions.
Definition: container.hpp:7
void update_value()
Updates the internal value.
Definition: filter.hpp:15
A generic value.
Definition: value.hpp:124
Definition: filter.hpp:12
bool & get_value()
Definition: value.hpp:197