Gromacs
2024.4
|
#include <gromacs/analysisdata/tests/datatest.h>
Represents static input data for AbstractAnalysisData tests.
Used to construct structured test input data for analysis data unit tests. Typically used as input to methods in AnalysisDataTestFixture.
Public Member Functions | |
AnalysisDataTestInput (int dataSetCount, bool bMultipoint) | |
Constructs empty input data. More... | |
bool | isMultipoint () const |
Whether the input data is multipoint. | |
int | dataSetCount () const |
Returns the number of data sets in the input data. | |
int | columnCount (int dataSet) const |
Returns the number of columns in a given data set. | |
int | frameCount () const |
Returns the number of frames in the input data. | |
const AnalysisDataTestInputFrame & | frame (int index) const |
Returns a frame object for the given input frame. | |
void | setColumnCount (int dataSet, int columnCount) |
Sets the number of columns in a data set. | |
AnalysisDataTestInputFrame & | addFrame (real x) |
Appends an empty frame to this data. | |
void | addFrameWithValues (real x, real y1) |
Adds a frame with a single point set and the given values. | |
void | addFrameWithValues (real x, real y1, real y2) |
Adds a frame with a single point set and the given values. | |
void | addFrameWithValues (real x, real y1, real y2, real y3) |
Adds a frame with a single point set and the given values. | |
void | addFrameWithValueAndError (real x, real y1, real e1) |
Adds a frame with a single point set and the given values. | |
gmx::test::AnalysisDataTestInput::AnalysisDataTestInput | ( | int | dataSetCount, |
bool | bMultipoint | ||
) |
Constructs empty input data.
[in] | dataSetCount | Number of data sets in the data. |
[in] | bMultipoint | Whether the data will be multipoint. |
The column count for each data set must be set with setColumnCount().