BALL
1.4.2
|
#include <BALL/ENERGY/composedEnergyProcessor.h>
Protected Attributes | |
EnergyProcessorList | components_ |
Protected Attributes inherited from BALL::EnergyProcessor | |
const AtomContainer * | fragment_ |
double | energy_ |
bool | valid_ |
Private Member Functions | |
void | checkValidity () |
Additional Inherited Members | |
Public Types inherited from BALL::UnaryFunctor< AtomContainer, Processor::Result > | |
typedef Processor::Result | result_type |
typedef AtomContainer | argument_type |
typedef AtomContainer & | argument_reference |
typedef const AtomContainer & | const_argument_reference |
typedef AtomContainer * | argument_pointer |
typedef const AtomContainer * | const_argument_pointer |
A class for composed energy calculations. Most energies are compositions of several energy contributions. To model this in a convenient way this class is intended to calculate and sum a given list of energy contributions.
Definition at line 34 of file composedEnergyProcessor.h.
BALL::ComposedEnergyProcessor::ComposedEnergyProcessor | ( | ) |
Default constructor
BALL::ComposedEnergyProcessor::ComposedEnergyProcessor | ( | const ComposedEnergyProcessor & | composed_energy_proc | ) |
Copy constructor
BALL::ComposedEnergyProcessor::ComposedEnergyProcessor | ( | EnergyProcessorList | proc_list | ) |
Detailed constructor
|
virtual |
Destructor
void BALL::ComposedEnergyProcessor::addComponent | ( | EnergyProcessor * | proc | ) |
Add a component to the list of EnergyProcessors
|
private |
|
virtual |
Clear method. Clears the calculated energy and the list of processors.
Reimplemented from BALL::EnergyProcessor.
|
virtual |
Do all calculations and sum up the different energy contributions
Reimplemented from BALL::UnaryProcessor< AtomContainer >.
Size BALL::ComposedEnergyProcessor::getNumberOfEnergyProcessors | ( | ) | const |
Get number of added EnergyProcessors.
const ComposedEnergyProcessor& BALL::ComposedEnergyProcessor::operator= | ( | const ComposedEnergyProcessor & | proc | ) |
Assignment operator
bool BALL::ComposedEnergyProcessor::operator== | ( | const ComposedEnergyProcessor & | proc | ) | const |
Equality operator
void BALL::ComposedEnergyProcessor::removeComponent | ( | EnergyProcessor * | proc | ) |
remove a component from the list
|
protected |
Definition at line 116 of file composedEnergyProcessor.h.