27 #include "../../common/STLUtils.h" 28 #include "../../core/translator/Translator.h" 29 #include "../Exception.h" 70 for(std::size_t i = 0; i < size; ++i)
std::size_t m_index
An internal visitor index.
static const std::string sm_LessThan
A class that models a Function expression.
const Function * m_function
The function that represents the attribute restriction.
A class that models the name of any property of an object.
virtual ~AttributeRestrictionVisitor()
Virtual destructor.
std::map< std::string, std::string > m_attrFunctions
A map of attribute restriction functions.
~AttributeRestriction()
Destructor.
virtual ReturnType accept(VisitorType &guest) const =0
It call the visit method from the guest object.
void addAttributeRestriction(const Function &f)
static const std::string sm_EqualTo
std::vector< te::da::AttributeRestriction * > m_attrRestrictions
The set of attribute restrictions.
This is an abstract class that models a query expression.
A struct that represents an attribute restriction.
bool isAttributeRestrictionFunction(const Function &f) const
virtual void initialize()
static const std::string sm_GreaterThanOrEqualTo
bool hasAttributeRestrictions() const
std::size_t m_index
Internal index of the attribute restriction.
AttributeRestriction()
Default constructor.
const std::vector< te::da::AttributeRestriction * > & getAttributeRestrictions() const
virtual void visit(const Expression &visited)
A class that can be used to model a filter expression that can be applied to a query.
This is an abstract class that models a query expression.
static const std::string sm_NotEqualTo
std::string m_op
The attribute restriction operator.
Expression * getExp() const
A class that models a Function expression.
A Select models a query to be used when retrieving data from a data source.
std::string getOperator(const Function &f) const
const std::string & getName() const
It returns the function name.
A Select models a query to be used when retrieving data from a DataSource.
A visitor that retrieves attribute restrictions from a Query hierarchy.
static const std::string sm_LessThanOrEqualTo
A class that can be used to model a filter expression that can be applied to a query.
Where * getWhere() const
It returns the filter condition.
A static class with global function name definitions.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
static const std::string sm_GreaterThan
std::size_t getNumArgs() const
It returns the number of arguments informed to the function.
AttributeRestrictionVisitor()
Default constructor.