Gromacs  2025-dev-20240913-b871546
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
gmx::test::FramePairManager< FrameReader > Class Template Reference

#include <programs/mdrun/tests/mdruncomparison.h>

Description

template<class FrameReader>
class gmx::test::FramePairManager< FrameReader >

Manages returning a pair of frames from two equivalent simulations that are meaningful to compare.

Todo:
This is largely duplicated by ContinuationFrameManager. These could be refactored into components that compare iterators to frames.
Template Parameters
FrameReaderHas readNextFrame() and frame() methods useful for returning successive Frame objects

Public Types

typedef std::unique_ptr
< FrameReader > 
FrameReaderPtr
 Convenience typedef.
 

Public Member Functions

 FramePairManager (FrameReaderPtr first, FrameReaderPtr second)
 Constructor.
 
template<class Frame >
void compareAllFramePairs (std::function< void(const Frame &, const Frame &)> compareTwoFrames)
 Compare all possible pairs of frames using compareTwoFrames. More...
 

Member Function Documentation

template<class FrameReader >
template<class Frame >
void gmx::test::FramePairManager< FrameReader >::compareAllFramePairs ( std::function< void(const Frame &, const Frame &)>  compareTwoFrames)
inline

Compare all possible pairs of frames using compareTwoFrames.

Template Parameters
FrameThe type of frame used in the comparison (returned by FrameReader and used by compareTwoFrames).

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