Go to the documentation of this file.
39 inline bool check(
double* point);
64 virtual bool test(
double* point) = 0;
76 static Checker*
create(
const std::string& value) {
try {
return new T(value); }
catch(...) {
return 0; } }
82 virtual bool test(
double* point);
90 virtual bool test(
double* point);
98 virtual bool test(
double* point);
106 virtual bool test(
double* point);
111 #include "pointfilter.icc"
113 #endif //POINT_FILTER_H
PointFilter & setRange(double maxDist, double minDist)
virtual bool test(double *point)
Testing function.
void createCheckers()
Allocation of the checkers.
virtual bool test(double *point)
Testing function.
CheckerHeightTop(const std::string &value)
bool m_changed
If either not created yet or parameters get changed, this flag will cause check to create a new Check...
CheckerHeightBottom(const std::string &value)
Factory integrating the create-function and adding it to the lookup map in an easy template.
Checker * m_next
Next test in chain.
OutMapT< typename InMapT::HandleType, std::result_of_t< MapF(typename InMapT::ValueType)> > map(const InMapT &mapIn, MapF func)
Calls func for each value of the given map and save the result in the output map.
virtual bool test(double *point)=0
Testing function.
virtual bool test(double *point)
Testing function.
std::string getParams()
Serialization function to convert it into a string, usable in the constructor.
virtual bool test(double *point)
Testing function.
bool check(double *point)
Check a point, returning success if all contained Checker functions accept that point (implemented in...
CheckerRangeMin(const std::string &value)
static std::map< std::string, Checker *(*)(const std::string &)> * factory
Checker * m_checker
created in the first check call with the changed flag set
CheckerFactory(const std::string &key)
Instanciate in the source code with the to be created class as template argument and associated key s...
static Checker * create(const std::string &value)
Automated create function, safely returning a nullpointer if the constructor throws for unwanted valu...
PointFilter & setHeight(double top, double bottom)
CheckerRangeMax(const std::string &value)
std::map< std::string, std::string > m_params
Storage for parameter keys and values.
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24