BALL
1.5.0
include
BALL
ENERGY
composedEnergyProcessor.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: composedEnergyProcessor.h,v 1.13 2005/12/23 17:01:43 amoll Exp $
5
//
6
7
#ifndef BALL_ENERGY_COMPOSEDENERGYPROCESSOR
8
#define BALL_ENERGY_COMPOSEDENERGYPROCESSOR
9
10
#ifndef BALL_COMMON_H
11
# include <
BALL/common.h
>
12
#endif
13
14
#ifndef BALL_ENERGY_ENERGYPROCESSOR_H
15
# include <
BALL/ENERGY/energyProcessor.h
>
16
#endif
17
18
namespace
BALL
19
{
20
24
typedef
std::list<EnergyProcessor*>
EnergyProcessorList
;
25
34
class
BALL_EXPORT
ComposedEnergyProcessor
35
:
public
EnergyProcessor
36
{
37
38
public
:
39
40
BALL_CREATE
(
ComposedEnergyProcessor
)
41
42
45
48
ComposedEnergyProcessor
();
49
52
ComposedEnergyProcessor
(const
ComposedEnergyProcessor
& composed_energy_proc);
53
56
ComposedEnergyProcessor
(
EnergyProcessorList
proc_list);
57
60
virtual ~
ComposedEnergyProcessor
();
61
63
66
69
const
ComposedEnergyProcessor
& operator =
70
(const
ComposedEnergyProcessor
& proc);
71
75
virtual
void
clear();
76
78
81
84
virtual
bool
finish();
85
87
90
93
void
addComponent(
EnergyProcessor
* proc);
94
97
void
removeComponent(
EnergyProcessor
* proc);
98
101
Size
getNumberOfEnergyProcessors() const;
102
104
107
110
bool
operator == (const
ComposedEnergyProcessor
& proc) const;
111
113
114
protected:
115
116
EnergyProcessorList
components_;
117
118
119
private:
120
121
/*_ check the validity of this instance. If one of the processors in
122
* the list is invalid, then this instance of ComposedEnergyProcessor
123
* is invalid
124
*/
125
void
checkValidity();
126
127
};
128
}
// namespace BALL
129
#endif // BALL_ENERGY_COMPOSEDENERGYPROCESSOR
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
BALL::EnergyProcessorList
std::list< EnergyProcessor * > EnergyProcessorList
Definition:
composedEnergyProcessor.h:24
energyProcessor.h
BALL::ComposedEnergyProcessor
Definition:
composedEnergyProcessor.h:36
BALL
Definition:
constants.h:13
BALL_SIZE_TYPE
BALL::EnergyProcessor
Definition:
energyProcessor.h:32
common.h
BALL_CREATE
#define BALL_CREATE(name)
Definition:
create.h:62
Generated by
1.8.20