fesa-core  4.2.0
fesa::SortingExpression Class Reference

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>

Inheritance diagram for fesa::SortingExpression:
fesa::FieldExpression fesa::IntersectExpression fesa::UnionExpression

Public Member Functions

virtual bool match (const SortingContext &context)
 
virtual
HomogeneousDevColSharedPtrSet 
evaluate ()
 Sorts the devices according to the expression and returns a Set of homogeneous device sets.
 

Static Public Member Functions

static std::auto_ptr
< SortingExpression
tryMatch (const SortingContext &sortingContext)
 Factory method.Tries to match the context to all the expressions provided by the framework returning the one which matches it. More...
 

Detailed Description

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.

Member Function Documentation

bool fesa::SortingExpression::match ( const SortingContext context)
virtual
Returns
true if the expression matches the context

Reimplemented in fesa::FieldExpression, fesa::IntersectExpression, and fesa::UnionExpression.

std::auto_ptr< SortingExpression > fesa::SortingExpression::tryMatch ( const SortingContext sortingContext)
static

Factory method.Tries to match the context to all the expressions provided by the framework returning the one which matches it.

Returns
if successful, return the corresponding sorting expression auto_ptr

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