#include <selector.h>
Inheritance diagram for Selector:
Public Member Functions | |
Constructors and Destructors | |
Selector () throw () | |
Default constructor. | |
Selector (const Selector &selector) throw () | |
Copy constructor. | |
Selector (const String &expression_string) throw () | |
Construct a Selector with a string. | |
virtual | ~Selector () throw () |
Destructor. | |
Assignment | |
virtual void | clear () throw () |
Clear method. | |
Selector & | operator= (const Selector &selector) throw () |
Assignment operator. | |
Predicates | |
bool | operator== (const Selector &selector) const throw () |
Equality. | |
Processor related methods | |
virtual Processor::Result | operator() (Composite &composite) throw () |
Access operator. | |
virtual bool | start () throw () |
Processor start method. | |
Accessors | |
Size | getNumberOfSelectedAtoms () const throw () |
Return the number of atoms selected during the last application. | |
List< Atom * > & | getSelectedAtoms () throw () |
Return a list containing pointers to all selected Atoms. | |
void | setExpression (const Expression &expression) throw () |
Define the expression. | |
const Expression & | getExpression () const throw () |
Return the expression. | |
Protected Attributes | |
List< Atom * > | selected_atoms_ |
Expression | expression_ |
|
Default constructor.
|
|
Copy constructor.
|
|
Construct a Selector with a string.
The selector's expression is set to |
|
Destructor.
|
|
Clear method.
|
|
Return the expression.
|
|
Return the number of atoms selected during the last application.
|
|
Access operator. If the given Composite is an Atom and the current expression_ is fulfilled for that atom, select it by calling Composite::select . Reimplemented from UnaryProcessor< Composite >. |
|
Assignment operator.
|
|
Equality.
|
|
Define the expression.
|
|
Processor start method. This method is needed to reset the internal counter for the number of selected atoms. Reimplemented from UnaryProcessor< Composite >. |