Gromacs  2018.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
gmx::test::MockAnalysisDataModule::Impl Class Reference
+ Collaboration diagram for gmx::test::MockAnalysisDataModule::Impl:

Description

Private implementation class for gmx::test::MockAnalysisDataModule.

Public Member Functions

 Impl (int flags)
 Initializes a mock object with the given flags.
 
void startReferenceData (AbstractAnalysisData *data)
 Callback used to initialize reference data checks. More...
 
void startReferenceFrame (const AnalysisDataFrameHeader &header)
 Callback used to check frame start against reference data. More...
 
void checkReferencePoints (const AnalysisDataPointSetRef &points)
 Callback used to check frame points against reference data. More...
 
void finishReferenceFrame (const AnalysisDataFrameHeader &header)
 Callback used to check frame finish against reference data. More...
 
void finishReferenceFrameSerial (int frameIndex)
 Callback used to check serial frame finish with reference data. More...
 

Public Attributes

TestReferenceChecker rootChecker_
 Reference data checker to use for checking frames. More...
 
TestReferenceChecker frameChecker_
 Reference data checker to use to check the current frame. More...
 
const AbstractAnalysisDatasource_
 Source data.
 
int flags_
 Flags that will be returned by the mock module.
 
int frameIndex_
 Index of the current/next frame.
 

Member Function Documentation

void gmx::test::MockAnalysisDataModule::Impl::checkReferencePoints ( const AnalysisDataPointSetRef points)

Callback used to check frame points against reference data.

Called to check parameters and order of calls to pointsAdded().

void gmx::test::MockAnalysisDataModule::Impl::finishReferenceFrame ( const AnalysisDataFrameHeader header)

Callback used to check frame finish against reference data.

Called to check parameters and order of calls to frameFinished().

void gmx::test::MockAnalysisDataModule::Impl::finishReferenceFrameSerial ( int  frameIndex)

Callback used to check serial frame finish with reference data.

Called to check parameters and order of calls to frameFinishedSerial(). frameIndex_ is incremented here.

void gmx::test::MockAnalysisDataModule::Impl::startReferenceData ( AbstractAnalysisData data)

Callback used to initialize reference data checks.

Called in response to dataStarted(). Records the source data for later use (for access to data properties).

void gmx::test::MockAnalysisDataModule::Impl::startReferenceFrame ( const AnalysisDataFrameHeader header)

Callback used to check frame start against reference data.

Called to check parameters and order of calls to frameStarted(). In addition to reference data checks, this method checks statically that the new frame matches frameIndex_.

Member Data Documentation

TestReferenceChecker gmx::test::MockAnalysisDataModule::Impl::frameChecker_

Reference data checker to use to check the current frame.

Initialized between startReferenceFrame() and finishReferenceFrame() calls.

TestReferenceChecker gmx::test::MockAnalysisDataModule::Impl::rootChecker_

Reference data checker to use for checking frames.

Must be initialized if startReferenceFrame() is called.


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