BALL
1.5.0
include
BALL
KERNEL
selector.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: selector.h,v 1.29 2005/10/23 12:02:20 oliver Exp $
5
//
6
7
#ifndef BALL_KERNEL_SELECTOR_H
8
#define BALL_KERNEL_SELECTOR_H
9
10
#ifndef BALL_KERNEL_EXPRESSION_H
11
# include <
BALL/KERNEL/expression.h
>
12
#endif
13
14
15
namespace
BALL
16
{
17
class
Atom
;
18
30
class
BALL_EXPORT
Selector
31
:
public
UnaryProcessor
<Composite>
32
{
33
34
public
:
35
39
40
// BALL_CREATE(Selector)
41
44
Selector
();
45
48
Selector
(
const
Selector
& selector);
49
53
Selector
(
const
String
& expression_string);
54
57
virtual
~Selector
();
58
60
63
66
virtual
void
clear
();
67
70
Selector
& operator = (
const
Selector
& selector);
71
73
76
79
bool
operator ==
(
const
Selector
& selector)
const
;
80
82
85
91
virtual
Processor::Result
operator () (
Composite
& composite);
92
97
virtual
bool
start
();
98
100
103
106
Size
getNumberOfSelectedAtoms
()
const
;
107
110
std::list<Atom*>&
getSelectedAtoms
();
111
114
void
setExpression
(
const
Expression
& expression);
115
118
const
Expression
&
getExpression
()
const
;
119
120
122
123
protected
:
124
125
std::list<Atom*>
selected_atoms_
;
126
Expression
expression_
;
127
};
128
129
}
// namespace BALL
130
131
#endif // BALL_KERNEL_SELECTOR_H
BALL::Selector::expression_
Expression expression_
Definition:
selector.h:126
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
BALL::Selector::getNumberOfSelectedAtoms
Size getNumberOfSelectedAtoms() const
BALL::Selector::Selector
Selector()
BALL::Selector::getExpression
const Expression & getExpression() const
BALL::String
Definition:
string.h:57
BALL::Expression
Definition:
expression.h:80
BALL
Definition:
constants.h:13
BALL::Selector::setExpression
void setExpression(const Expression &expression)
BALL::Selector
Definition:
selector.h:32
BALL::PDB::Atom
char Atom[5]
Definition:
PDBdefs.h:257
BALL::Composite
Definition:
composite.h:74
BALL_SIZE_TYPE
BALL::UnaryProcessor
Definition:
processor.h:60
BALL::Selector::Selector
Selector(const Selector &selector)
BALL::Selector::selected_atoms_
std::list< Atom * > selected_atoms_
Definition:
selector.h:125
BALL::Selector::start
virtual bool start()
BALL::Selector::Selector
Selector(const String &expression_string)
expression.h
BALL::Selector::getSelectedAtoms
std::list< Atom * > & getSelectedAtoms()
BALL::operator==
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL::Selector::~Selector
virtual ~Selector()
BALL::Processor::Result
int Result
Definition:
processor.h:36
BALL::Selector::clear
virtual void clear()
Generated by
1.8.20