#include <gromacs/trajectoryanalysis/analysismodule.h>
Base class for thread-local data storage during trajectory analysis.
Thread-local storage of data handles and selections is implemented in this class; TrajectoryAnalysisModule instances can access the thread-local values in their TrajectoryAnalysisModule::analyzeFrame() method using dataHandle() and parallelSelection().
- See Also
- TrajectoryAnalysisModule::startFrames()
-
TrajectoryAnalysisModule::analyzeFrame()
-
TrajectoryAnalysisModule::finishFrames()
- Examples:
- template.cpp.
Returns a data handle for a given dataset.
- Parameters
-
[in] | data | Analysis data object. |
- Returns
- Data handle for
data
stored in this thread-local data.
data
should have previously been registered with TrajectoryAnalysisModule::registerAnalysisDataset(). If data
has zero columns in all data sets, the returned data handle is invalid.
Does not throw.
- Examples:
- template.cpp.
virtual void gmx::TrajectoryAnalysisModuleData::finish |
( |
| ) |
|
|
pure virtual |
void gmx::TrajectoryAnalysisModuleData::finishDataHandles |
( |
| ) |
|
|
protected |
Calls finishData() on all data handles.
- Exceptions
-
This function should be called from the implementation of finish() in all subclasses.
Selection gmx::TrajectoryAnalysisModuleData::parallelSelection |
( |
const Selection & |
selection | ) |
|
|
static |
Returns a selection that corresponds to the given selection.
- Parameters
-
[in] | selection | Global selection object. |
- Returns
- Selection object corresponding to this thread-local data.
selection
is the selection object that was obtained from SelectionOption. The return value is the corresponding selection in the selection collection with which this data object was constructed with.
Does not throw.
- Examples:
- template.cpp.
Returns a set of selection that corresponds to the given selections.
- Exceptions
-
std::bad_alloc | if out of memory. |
Works as parallelSelection(), but for a list of selections at once.
- See Also
- parallelSelection()
The documentation for this class was generated from the following files: