Panda3D
|
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only access to the CycleData. More...
#include "cycleDataReader.h"
Public Member Functions | |
CycleDataReader (const CycleDataReader< CycleDataType > ©) | |
CycleDataReader (const PipelineCycler< CycleDataType > &cycler, Thread *current_thread=Thread::get_current_thread()) | |
Thread * | get_current_thread () const |
Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this object. | |
operator const CycleDataType * () const | |
This allows the CycleDataReader to be passed to any function that expects a const CycleDataType pointer. | |
const CycleDataType * | operator-> () const |
This provides an indirect member access to the actual CycleData data. | |
void | operator= (const CycleDataReader< CycleDataType > ©) |
const CycleDataType * | p () const |
This allows the CycleDataReader to be passed to any function that expects a const CycleDataType pointer. | |
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only access to the CycleData.
It is used to access the data quickly, without holding a lock, for a thread that does not intend to modify the data and write it back out. For cases where the data might be subsequently modified, you should use CycleDataLockedReader.
It exists as a syntactic convenience to access the data in the CycleData. It also allows the whole system to compile down to nothing if DO_PIPELINING is not defined.
Definition at line 35 of file cycleDataReader.h.
|
inline |
Definition at line 111 of file cycleDataReader.I.
|
inline |
Definition at line 120 of file cycleDataReader.I.
|
inline |
Definition at line 139 of file cycleDataReader.I.
|
inline |
Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this object.
Definition at line 177 of file cycleDataReader.I.
References Thread::get_current_thread.
|
inline |
This allows the CycleDataReader to be passed to any function that expects a const CycleDataType pointer.
Definition at line 157 of file cycleDataReader.I.
|
inline |
This provides an indirect member access to the actual CycleData data.
Definition at line 147 of file cycleDataReader.I.
|
inline |
Definition at line 130 of file cycleDataReader.I.
|
inline |
This allows the CycleDataReader to be passed to any function that expects a const CycleDataType pointer.
Definition at line 167 of file cycleDataReader.I.
Referenced by Lens::get_up_vector(), and Lens::get_view_vector().