#include <BALL/KERNEL/selector.h>
Public Member Functions | |
Constructors and Destructors | |
| Selector () | |
| Selector (const Selector &selector) | |
| Selector (const String &expression_string) | |
| virtual | ~Selector () |
Assignment | |
| virtual void | clear () |
| Selector & | operator= (const Selector &selector) |
Predicates | |
| bool | operator== (const Selector &selector) const |
Processor related methods | |
| virtual Processor::Result | operator() (Composite &composite) |
| virtual bool | start () |
Accessors | |
| Size | getNumberOfSelectedAtoms () const |
| List< Atom * > & | getSelectedAtoms () |
| void | setExpression (const Expression &expression) |
| const Expression & | getExpression () const |
Protected Attributes | |
| List< Atom * > | selected_atoms_ |
| Expression | expression_ |
Atom Selection from BALL Expression.
| BALL::Selector::Selector | ( | ) |
Default constructor.
| BALL::Selector::Selector | ( | const Selector & | selector | ) |
Copy constructor.
| BALL::Selector::Selector | ( | const String & | expression_string | ) |
Construct a Selector with a string. The selector's expression is set to expression_string.
| virtual BALL::Selector::~Selector | ( | ) | [virtual] |
Destructor.
| virtual void BALL::Selector::clear | ( | ) | [virtual] |
Clear method.
| const Expression& BALL::Selector::getExpression | ( | ) | const |
Return the expression.
| Size BALL::Selector::getNumberOfSelectedAtoms | ( | ) | const |
Return the number of atoms selected during the last application.
Return a list containing pointers to all selected Atoms
| virtual Processor::Result BALL::Selector::operator() | ( | Composite & | composite | ) | [virtual] |
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 BALL::UnaryProcessor< Composite >.
| void BALL::Selector::setExpression | ( | const Expression & | expression | ) |
Define the expression.
| virtual bool BALL::Selector::start | ( | ) | [virtual] |
Processor start method. This method is needed to reset the internal counter for the number of selected atoms.
Reimplemented from BALL::UnaryProcessor< Composite >.
Expression BALL::Selector::expression_ [protected] |
List<Atom*> BALL::Selector::selected_atoms_ [protected] |