Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::test::AnalysisDataTestInput Class Reference

#include <gromacs/analysisdata/tests/datatest.h>

Description

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.

See Also
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 AnalysisDataTestInputFrameframe (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.
 
AnalysisDataTestInputFrameaddFrame (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.
 

Constructor & Destructor Documentation

gmx::test::AnalysisDataTestInput::AnalysisDataTestInput ( int  dataSetCount,
bool  bMultipoint 
)

Constructs empty input data.

Parameters
[in]dataSetCountNumber of data sets in the data.
[in]bMultipointWhether the data will be multipoint.

The column count for each data set must be set with setColumnCount().


The documentation for this class was generated from the following files: