Gromacs
2024.3
|
Functor for checking data frame points and storage against static test input data.
This functor is designed to be invoked as a handled for IAnalysisDataModule::pointsAdded().
Public Member Functions | |
StaticDataPointsStorageChecker (AbstractAnalysisData *source, const AnalysisDataTestInput *data, int frameIndex, int pointSetIndex, int storageCount) | |
Constructs a checker for a given frame. More... | |
void | operator() (const AnalysisDataPointSetRef &points) const |
Function call operator for the functor. | |
|
inline |
Constructs a checker for a given frame.
[in] | source | Data object that is being checked. |
[in] | data | Test input data to check against. |
[in] | frameIndex | Frame index for which this functor expects to be called. |
[in] | pointSetIndex | Point set for which this functor expects to be called. |
[in] | storageCount | How many past frames should be checked for storage (-1 = check all frames). |
This checker works as StaticDataPointsChecker, but additionally checks that previous frames can be accessed using access methods in AbstractAnalysisData and that correct data is returned.
source
and data
must exist for the lifetime of this object.