Class for managing cached values inside a DataPoint.
More...
#include <CachedValue.h>
Class for managing cached values inside a DataPoint.
- Author
- Johannes Rauch, Daniel Greenwald
Constructor (protected)
- Parameters
-
size | number of real elements in cached value |
da | DataAccessor it to belong to |
const int index |
( |
| ) |
const |
|
inline |
- Returns
- index within owner
void setValue |
( |
unsigned |
index, |
|
|
double |
val, |
|
|
DataPoint & |
d, |
|
|
unsigned |
sym_index |
|
) |
| const |
|
inline |
Set value into #DataPoint for particular symmetrization (No update to VariableStatus or CalculationStatus is made!)
- Parameters
-
index | index of value to get from within cached value (must be less than Size_) |
val | Value to set to |
d | #DataPoint to update |
sym_index | index of symmetrization to apply to |
virtual const unsigned size |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- Size of cached value (number of real elements)
const double value |
( |
unsigned |
index, |
|
|
const DataPoint & |
d, |
|
|
unsigned |
sym_index |
|
) |
| const |
|
inline |
Get value from #DataPoint for particular symmetrization
- Parameters
-
index | index of value to get from within cached value (must be less than Size_) |
d | #DataPoint to get value from |
sym_index | index of symmetrization to grab from |
- Returns
- Value of CachedValue inside the data point
The documentation for this class was generated from the following files:
- /home/dgreenw/work/belle/YAP/include/CachedValue.h
- /home/dgreenw/work/belle/YAP/src/CachedValue.cxx