This class is similar to CycleDataLockedReader, except it allows reading from a particular stage of the pipeline. More...
#include "cycleDataLockedStageReader.h"
Public Member Functions | |
CycleDataLockedStageReader (const PipelineCycler< CycleDataType > &cycler, int stage, Thread *current_thread=Thread::get_current_thread()) | |
CycleDataLockedStageReader (const CycleDataLockedStageReader< CycleDataType > ©) | |
CycleDataLockedStageReader (CycleDataLockedStageReader< CycleDataType > &&from) noexcept | |
Thread * | get_current_thread () const |
Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this object. More... | |
const CycleDataType * | operator -> () const |
This provides an indirect member access to the actual CycleData data. More... | |
operator const CycleDataType * () const | |
This allows the CycleDataLockedStageReader to be passed to any function that expects a const CycleDataType pointer. More... | |
void | operator= (const CycleDataLockedStageReader< CycleDataType > ©) |
void | operator= (CycleDataLockedStageReader< CycleDataType > &&from) noexcept |
const CycleDataType * | take_pointer () |
This is intended to be called only from CycleDataStageWriter when it elevates the pointer from read to write status. More... | |
This class is similar to CycleDataLockedReader, except it allows reading from a particular stage of the pipeline.
Definition at line 27 of file cycleDataLockedStageReader.h.
|
inline |
Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this object.
Definition at line 254 of file cycleDataLockedStageReader.I.
|
inline |
This provides an indirect member access to the actual CycleData data.
Definition at line 222 of file cycleDataLockedStageReader.I.
|
inline |
This allows the CycleDataLockedStageReader to be passed to any function that expects a const CycleDataType pointer.
Definition at line 232 of file cycleDataLockedStageReader.I.
|
inline |
This is intended to be called only from CycleDataStageWriter when it elevates the pointer from read to write status.
This function returns the reader's pointer and relinquishes ownership of the pointer, rendering the reader invalid for future reads.
Definition at line 244 of file cycleDataLockedStageReader.I.