Loading...
Searching...
No Matches
selector.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: selector.h,v 1.29 2005/10/23 12:02:20 oliver Exp $
//
#ifndef BALL_KERNEL_SELECTOR_H
#define BALL_KERNEL_SELECTOR_H
#ifndef BALL_KERNEL_EXPRESSION_H
# include <BALL/KERNEL/expression.h>
#endif
namespace BALL
{
class Atom;
class BALL_EXPORT Selector
: public UnaryProcessor<Composite>
{
public:
// BALL_CREATE(Selector)
Selector();
Selector(const Selector& selector);
Selector(const String& expression_string);
virtual ~Selector();
virtual void clear();
Selector& operator = (const Selector& selector);
bool operator == (const Selector& selector) const;
virtual Processor::Result operator () (Composite& composite);
virtual bool start();
Size getNumberOfSelectedAtoms() const;
std::list<Atom*>& getSelectedAtoms();
void setExpression(const Expression& expression);
const Expression& getExpression() const;
protected:
std::list<Atom*> selected_atoms_;
Expression expression_;
};
} // namespace BALL
#endif // BALL_KERNEL_SELECTOR_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::Atom
Definition atom.h:90
BALL::Composite
Definition composite.h:74
BALL::Expression
Definition expression.h:80
BALL::Processor::Result
int Result
Definition processor.h:36
BALL::Selector::clear
virtual void clear()
BALL::Selector::Selector
Selector(const Selector &selector)
BALL::Selector::getExpression
const Expression & getExpression() const
BALL::Selector::~Selector
virtual ~Selector()
BALL::Selector::selected_atoms_
std::list< Atom * > selected_atoms_
Definition selector.h:125
BALL::Selector::setExpression
void setExpression(const Expression &expression)
BALL::Selector::Selector
Selector(const String &expression_string)
BALL::Selector::expression_
Expression expression_
Definition selector.h:126
BALL::Selector::Selector
Selector()
BALL::Selector::getNumberOfSelectedAtoms
Size getNumberOfSelectedAtoms() const
BALL::Selector::getSelectedAtoms
std::list< Atom * > & getSelectedAtoms()
BALL::Selector::start
virtual bool start()
BALL::String
Definition string.h:57
BALL::UnaryProcessor< Composite >::UnaryProcessor
UnaryProcessor()
Definition processor.h:69
expression.h
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114