Gromacs
2022.2
|
#include <gromacs/analysisdata/dataframe.h>
Value type for storing frame-level information for analysis data.
Default copy constructor and assignment operator are used and work as intended. Typically new objects of this type are only constructed internally by the library and in classes that are derived from AbstractAnalysisData.
Methods in this class do not throw, but may contain asserts for incorrect usage.
Note that it is not possible to change the contents of an initialized object, except by assigning a new object to replace it completely.
Public Member Functions | |
AnalysisDataFrameHeader () | |
Constructs an invalid frame header. More... | |
AnalysisDataFrameHeader (int index, real x, real dx) | |
Constructs a frame header from given values. More... | |
bool | isValid () const |
Returns whether the frame header corresponds to a valid frame. More... | |
int | index () const |
Returns zero-based index of the frame. More... | |
real | x () const |
Returns the x coordinate for the frame. More... | |
real | dx () const |
Returns error in the x coordinate for the frame (if applicable). More... | |
gmx::AnalysisDataFrameHeader::AnalysisDataFrameHeader | ( | ) |
Constructs an invalid frame header.
Return values of other methods than isValid() are unspecified for the constructed object.
Constructs a frame header from given values.
[in] | index | Index of the frame. Must be >= 0. |
[in] | x | x coordinate for the frame. |
[in] | dx | Error estimate for x. |
|
inline |
Returns error in the x coordinate for the frame (if applicable).
All data do not provide error estimates. Typically returns zero in those cases.
Should not be called for invalid frames.
|
inline |
Returns zero-based index of the frame.
The return value is >= 0 for valid frames. Should not be called for invalid frames.
|
inline |
Returns whether the frame header corresponds to a valid frame.
If returns false, return values of other methods are not specified.
|
inline |
Returns the x coordinate for the frame.
Should not be called for invalid frames.