A filter is any valid predicate expression. More...
#include <Filter.h>
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Filter () | |
It initializes a new Filter. More... | |
~Filter () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setOp (AbstractOp *o) |
It sets the filter main operation (expression). More... | |
AbstractOp * | getOp () const |
It returns main filter operation. More... | |
void | add (ObjectId *id) |
It adds the object identifier to the list of identifiers. More... | |
ObjectId * | operator[] (size_t i) const |
It returns a specified object identifier. More... | |
ObjectId * | getOid (size_t i) const |
It returns a specified object identifier. More... | |
size_t | getNumberOfOids () const |
It returns the size of the list of object identifiers. More... | |
void | clear () |
It clears the object identifier list and drop it off. More... | |
Private Member Functions | |
Not Allowed Methods | |
No copy allowed. | |
Filter (const Filter &rhs) | |
No copy constructor allowed. More... | |
Filter & | operator= (const Filter &rhs) |
No assignment operator allowed. More... | |
Private Attributes | |
std::vector< ObjectId * > * | m_ids |
Object identifiers. (NULL if m_op is informed) More... | |
AbstractOp * | m_op |
May be: SpatialOp, ComparisonOp or LogicOp. (NULL if m_ids is informed) More... | |
A filter is any valid predicate expression.
A Filter contains a expression which is created by combining other expressions.
Filter::Filter | ( | ) |
It initializes a new Filter.
Definition at line 33 of file Filter.cpp.
Filter::~Filter | ( | ) |
|
private |
No copy constructor allowed.
rhs | The other instance. |
void Filter::add | ( | ObjectId * | id | ) |
It adds the object identifier to the list of identifiers.
id | The object identifier to be added to the list of identifiers. |
Definition at line 61 of file Filter.cpp.
void Filter::clear | ( | ) |
It clears the object identifier list and drop it off.
Definition at line 86 of file Filter.cpp.
References te::common::FreeContents().
size_t Filter::getNumberOfOids | ( | ) | const |
It returns the size of the list of object identifiers.
Definition at line 81 of file Filter.cpp.
Referenced by te::map::QueryEncoder::getExpression().
te::fe::ObjectId * Filter::getOid | ( | size_t | i | ) | const |
It returns a specified object identifier.
i | The index of desired object identifier. |
Definition at line 75 of file Filter.cpp.
Referenced by te::map::QueryEncoder::getExpression().
te::fe::AbstractOp * Filter::getOp | ( | ) | const |
It returns main filter operation.
Definition at line 56 of file Filter.cpp.
Referenced by te::map::QueryEncoder::getExpression(), and te::fe::serialize::Save().
No assignment operator allowed.
rhs | The other instance. |
te::fe::ObjectId * Filter::operator[] | ( | size_t | i | ) | const |
It returns a specified object identifier.
i | The index of desired object identifier. |
Definition at line 69 of file Filter.cpp.
void Filter::setOp | ( | AbstractOp * | o | ) |
It sets the filter main operation (expression).
o | The main operation (also called an expression). |
Definition at line 50 of file Filter.cpp.
|
private |
|
private |
May be: SpatialOp, ComparisonOp or LogicOp. (NULL if m_ids is informed)