MineLink
 All Data Structures Functions Variables Pages
delphos::RangeFilter Class Reference

Abstracts range filter function. More...

#include <filters.h>

Inheritance diagram for delphos::RangeFilter:
Inheritance graph
Collaboration diagram for delphos::RangeFilter:
Collaboration graph

Public Member Functions

 RangeFilter (const string &attr_name, const float &min_value, const float &max_value, const bool &strictlb=true)
 defines a range filter for a given attribute name, a range defined by a given min value and a given max value. More...
 
void AddRange (const string &attr_name, const float &min_value, const float &max_value, const bool &strictlb=true)
 adds a range filter for a given attribute name, a range defined by a given min value and a given max value. More...
 
virtual bool Eval (const delphos::Block &block) const
 Method that determine how the blocks are filtered. More...
 
- Public Member Functions inherited from delphos::AxisRangeFilter
 AxisRangeFilter (const char &axis, const float &min_value, const float &max_value, const bool &strictlb=true)
 defines an axis range filter for a given axis, a range defined by a given min value and given max value. More...
 
void AddAxisRange (const char &axis, const float &min_value, const float &max_value, const bool &strictlb=true)
 add an axis range filter for a given axis, a range defined by a given min value and a given max value. More...
 
- Public Member Functions inherited from delphos::BlockFilter
virtual ~BlockFilter ()
 Destroys a block filter.
 

Detailed Description

Abstracts range filter function.

Constructor & Destructor Documentation

delphos::RangeFilter::RangeFilter ( const string &  attr_name,
const float &  min_value,
const float &  max_value,
const bool &  strictlb = true 
)

defines a range filter for a given attribute name, a range defined by a given min value and a given max value.

Parameters
attr_nameAn attribute name.
min_valueA minimum value for the axis.
max_valueA maximum value for the axis.
strictlbA boolean that is equal to true when the minimum value for the axis is rejected.

Member Function Documentation

void delphos::RangeFilter::AddRange ( const string &  attr_name,
const float &  min_value,
const float &  max_value,
const bool &  strictlb = true 
)

adds a range filter for a given attribute name, a range defined by a given min value and a given max value.

Parameters
attr_nameAn attribute name.
min_valueA minimum value for the axis.
max_valueA maximum value for the axis.
strictlbA boolean that is equal to true when the minimum value for the axis is rejected.
bool delphos::RangeFilter::Eval ( const delphos::Block block) const
virtual

Method that determine how the blocks are filtered.

The method return true if the block is kept, false if it is not.

Reimplemented from delphos::AxisRangeFilter.

Reimplemented in delphos::AccessibilityAndRangeFilter.


The documentation for this class was generated from the following files: