Gromacs
2024.4
|
Internal representation for a single stored frame.
It is implemented such that the frame header is always valid, i.e., header().isValid() returns always true.
Methods in this class do not throw unless otherwise indicated.
Public Types | |
enum | Status { eMissing, eStarted, eFinished, eNotified } |
Indicates what operations have been performed on a frame. More... | |
Public Member Functions | |
AnalysisDataStorageFrameData (AnalysisDataStorageImpl *storageImpl, int index) | |
Create a new storage frame. More... | |
bool | isStarted () const |
Whether the frame has been started with startFrame(). | |
bool | isFinished () const |
Whether the frame has been finished with finishFrame(). | |
bool | isNotified () const |
Whether all notifications have been sent. | |
bool | isAvailable () const |
Whether the frame is ready to be available outside the storage. | |
void | markNotified () |
Marks the frame as notified. | |
AnalysisDataStorageImpl & | storageImpl () const |
Returns the storage implementation object. | |
const AbstractAnalysisData & | baseData () const |
Returns the underlying data object (for data dimensionalities etc.). | |
const AnalysisDataFrameHeader & | header () const |
Returns header for the frame. | |
int | frameIndex () const |
Returns zero-based index of the frame. | |
int | pointSetCount () const |
Returns the number of point sets for the frame. | |
void | clearFrame (int newIndex) |
Clears the frame for reusing as a new frame. | |
void | startFrame (const AnalysisDataFrameHeader &header, AnalysisDataFrameBuilderPointer builder) |
Initializes the frame during AnalysisDataStorage::startFrame(). More... | |
AnalysisDataStorageFrame & | builder () const |
Returns the builder for this frame. | |
void | addPointSet (int dataSetIndex, int firstColumn, ArrayRef< const AnalysisDataValue > v) |
Adds a new point set to this frame. | |
AnalysisDataFrameBuilderPointer | finishFrame (bool bMultipoint) |
Finalizes the frame during AnalysisDataStorage::finishFrame(). More... | |
AnalysisDataFrameRef | frameReference () const |
Returns frame reference to this frame. | |
AnalysisDataPointSetRef | pointSet (int index) const |
Returns point set reference to a given point set. | |
Indicates what operations have been performed on a frame.
Enumerator | |
---|---|
eMissing |
Frame has not yet been started. |
eStarted |
startFrame() has been called. |
eFinished |
finishFrame() has been called. |
eNotified |
Appropriate notifications have been sent. |
gmx::internal::AnalysisDataStorageFrameData::AnalysisDataStorageFrameData | ( | AnalysisDataStorageImpl * | storageImpl, |
int | index | ||
) |
Create a new storage frame.
storageImpl | Storage object this frame belongs to. | |
[in] | index | Zero-based index for the frame. |
AnalysisDataFrameBuilderPointer gmx::internal::AnalysisDataStorageFrameData::finishFrame | ( | bool | bMultipoint | ) |
Finalizes the frame during AnalysisDataStorage::finishFrame().
void gmx::internal::AnalysisDataStorageFrameData::startFrame | ( | const AnalysisDataFrameHeader & | header, |
AnalysisDataFrameBuilderPointer | builder | ||
) |
Initializes the frame during AnalysisDataStorage::startFrame().
[in] | header | Header to use for the new frame. |
[in] | builder | Builder object to use. |