This is the base class which defines sorting expressions in the sorting package. It defines the match method in order to find out if the expression matches the context. More...
#include <SortingExpression.h>
Public Member Functions | |
virtual | ~SortingExpression () |
virtual bool | match (SortingContext)=0 |
virtual std::set < HomogeneousDevCol * > | evaluate ()=0 |
This method evaluates data using the expression and returns the result. | |
Static Public Member Functions | |
static void | removeBlanks (std::string *) |
static void | setDeviceCollection (std::vector< AbstractDevice * > *) |
static SortingExpression * | tryMatch (SortingContext) |
Static Protected Attributes | |
static std::vector < AbstractDevice * > * | pDevCol_ = NULL |
This is the base class which defines sorting expressions in the sorting package. It defines the match method in order to find out if the expression matches the context.
Definition at line 56 of file SortingExpression.h.
virtual fesa::SortingExpression::~SortingExpression | ( | ) | [inline, virtual] |
Definition at line 60 of file SortingExpression.h.
fesa::SortingExpression::evaluate | ( | ) | [pure virtual] |
This method evaluates data using the expression and returns the result.
Implemented in fesa::ComplementExpression, fesa::FieldExpression, fesa::IntersectExpression, and fesa::UnionExpression.
Referenced by fesa::UnionExpression::evaluate(), fesa::IntersectExpression::evaluate(), fesa::ComplementExpression::evaluate(), and fesa::SortingInterpreter::interpret().
virtual bool fesa::SortingExpression::match | ( | SortingContext | ) | [pure virtual] |
Implemented in fesa::ComplementExpression, fesa::FieldExpression, fesa::IntersectExpression, and fesa::UnionExpression.
Referenced by tryMatch().
void fesa::SortingExpression::removeBlanks | ( | std::string * | pS | ) | [static] |
Definition at line 28 of file SortingExpression.cpp.
Referenced by fesa::SortingInterpreter::interpret().
void fesa::SortingExpression::setDeviceCollection | ( | std::vector< AbstractDevice * > * | pDevCol | ) | [static] |
Definition at line 54 of file SortingExpression.cpp.
References pDevCol_.
Referenced by fesa::SortingInterpreter::interpret().
SortingExpression * fesa::SortingExpression::tryMatch | ( | SortingContext | sc | ) | [static] |
Definition at line 61 of file SortingExpression.cpp.
References fesa::SortingContext::formula_, and match().
Referenced by fesa::SortingInterpreter::interpret(), fesa::UnionExpression::match(), fesa::IntersectExpression::match(), and fesa::ComplementExpression::match().
std::vector< AbstractDevice * > * fesa::SortingExpression::pDevCol_ = NULL [static, protected] |
Definition at line 99 of file SortingExpression.h.
Referenced by fesa::FieldExpression::match(), and setDeviceCollection().