BALL
1.5.0
Loading...
Searching...
No Matches
include
BALL
ENERGY
energyProcessor.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: energyProcessor.h,v 1.17 2005/12/23 17:01:43 amoll Exp $
5
//
6
7
#ifndef BALL_ENERGY_ENERGYPROCESSOR_H
8
#define BALL_ENERGY_ENERGYPROCESSOR_H
9
10
#ifndef BALL_COMMON_H
11
# include <
BALL/common.h
>
12
#endif
13
14
#ifndef BALL_KERNEL_ATOMCONTAINER_H
15
# include <
BALL/KERNEL/atomContainer.h
>
16
#endif
17
18
#ifndef BALL_CONCEPT_PROCESSOR_H
19
# include <
BALL/CONCEPT/processor.h
>
20
#endif
21
22
namespace
BALL
23
{
30
class
BALL_EXPORT
EnergyProcessor
31
:
public
UnaryProcessor
<AtomContainer>
32
{
33
34
public
:
35
36
BALL_CREATE
(
EnergyProcessor
)
37
38
41
44
EnergyProcessor
();
45
48
EnergyProcessor
(const
EnergyProcessor
& proc);
49
52
virtual ~
EnergyProcessor
();
53
55
58
61
const
EnergyProcessor
& operator = (const
EnergyProcessor
& proc);
62
65
virtual
void
clear
();
66
68
71
74
virtual
bool
start
();
75
78
virtual
Processor
::
Result
operator () (
AtomContainer
& fragment);
79
81
84
87
double
getEnergy
() const;
88
90
93
96
bool
isValid
() const;
97
100
bool
operator == (const
EnergyProcessor
& proc) const;
101
103
104
protected:
105
106
/*_ this is the Fragment for which the computation is to be done */
107
const
AtomContainer
*
fragment_
;
108
109
/*_ the calculated energy */
110
double
energy_
;
111
112
/*_ the valid flag */
113
bool
valid_
;
114
115
};
116
}
117
118
#endif
// BALL_ENERGY_ENERGYPROCESSOR_H
BALL_EXPORT
#define BALL_EXPORT
Definition
COMMON/global.h:50
atomContainer.h
BALL::AtomContainer
Definition
atomContainer.h:32
BALL::EnergyProcessor::fragment_
const AtomContainer * fragment_
Definition
energyProcessor.h:107
BALL::EnergyProcessor::EnergyProcessor
EnergyProcessor()
BALL::EnergyProcessor::valid_
bool valid_
Definition
energyProcessor.h:113
BALL::EnergyProcessor::energy_
double energy_
Definition
energyProcessor.h:110
BALL::EnergyProcessor::clear
virtual void clear()
BALL::EnergyProcessor::getEnergy
double getEnergy() const
BALL::EnergyProcessor::isValid
bool isValid() const
BALL::EnergyProcessor::start
virtual bool start()
BALL::Processor
Definition
processor.h:32
BALL::Result
Definition
result.h:22
BALL::UnaryProcessor< AtomContainer >::UnaryProcessor
UnaryProcessor()
Definition
processor.h:69
common.h
BALL_CREATE
#define BALL_CREATE(name)
Definition
create.h:62
BALL
Definition
constants.h:13
processor.h
Generated by
1.15.0