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

Description

Private implementation class for TestReferenceData.

Public Member Functions

 TestReferenceDataImpl (ReferenceDataMode mode, bool bSelfTestMode)
 Initializes a checker in the given mode.
 
void onTestEnd (bool testPassed)
 Performs final reference data processing when test ends.
 

Public Attributes

std::string fullFilename_
 Full path of the reference data file.
 
ReferenceDataEntry::EntryPointer compareRootEntry_
 Root entry for comparing the reference data. More...
 
ReferenceDataEntry::EntryPointer outputRootEntry_
 Root entry for writing new reference data. More...
 
bool updateMismatchingEntries_
 Whether updating existing reference data.
 
bool bSelfTestMode_
 true if self-testing (enables extra failure messages).
 
bool bInUse_
 Whether any reference checkers have been created for this data.
 

Member Data Documentation

ReferenceDataEntry::EntryPointer gmx::test::internal::TestReferenceDataImpl::compareRootEntry_

Root entry for comparing the reference data.

Null after construction iff in compare mode and reference data was not loaded successfully. In all write modes, copies are present for nodes added to outputRootEntry_, and ReferenceDataEntry::correspondingOutputEntry() points to the copy in the output tree.

ReferenceDataEntry::EntryPointer gmx::test::internal::TestReferenceDataImpl::outputRootEntry_

Root entry for writing new reference data.

Null if only comparing against existing data. Otherwise, starts always as empty. When creating new reference data, this is maintained as a copy of compareRootEntry_. When updating existing data, entries are added either by copying from compareRootEntry_ (if they exist and comparison passes), or by creating new ones.


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