Public Member Functions | Public Attributes | List of all members
SelectInRange Struct Reference

Public Member Functions

 SelectInRange (float min, float max)
 
bool operator() (const IMyClass *obj)
 

Public Attributes

float minval
 
float maxval
 

Detailed Description

Definition at line 77 of file test_iterators.cxx.

Constructor & Destructor Documentation

SelectInRange::SelectInRange ( float  min,
float  max 
)
inline

Definition at line 79 of file test_iterators.cxx.

79 : minval(min), maxval(max) {}
static int max(int a, int b)
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Definition: statistics.h:55

Member Function Documentation

bool SelectInRange::operator() ( const IMyClass obj)
inline

Definition at line 80 of file test_iterators.cxx.

80  {
81  return minval <= obj->get_f() && obj->get_f() < maxval;
82  }
virtual float get_f() const =0

Member Data Documentation

float SelectInRange::maxval

Definition at line 78 of file test_iterators.cxx.

float SelectInRange::minval

Definition at line 78 of file test_iterators.cxx.


The documentation for this struct was generated from the following file: