Panda3D
Public Member Functions

CycleDataLockedStageReader< CycleDataType > Class Template Reference

This class is similar to CycleDataLockedReader, except it allows reading from a particular stage of the pipeline. More...

#include "cycleDataLockedStageReader.h"

List of all members.

Public Member Functions

 CycleDataLockedStageReader (const PipelineCycler< CycleDataType > &cycler, int stage, Thread *current_thread=Thread::get_current_thread())
 CycleDataLockedStageReader (const CycleDataLockedStageReader< CycleDataType > &copy)
Threadget_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 CycleDataLockedStageReader 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 CycleDataLockedStageReader< CycleDataType > &copy)
const CycleDataType * take_pointer ()
 This is intended to be called only from CycleDataStageWriter when it elevates the pointer from read to write status.

Detailed Description

template<class CycleDataType>
class CycleDataLockedStageReader< CycleDataType >

This class is similar to CycleDataLockedReader, except it allows reading from a particular stage of the pipeline.

Definition at line 30 of file cycleDataLockedStageReader.h.


Member Function Documentation

template<class CycleDataType >
Thread * CycleDataLockedStageReader< CycleDataType >::get_current_thread ( ) const [inline]

Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this object.

Definition at line 240 of file cycleDataLockedStageReader.I.

References Thread::get_current_thread().

template<class CycleDataType >
CycleDataLockedStageReader< CycleDataType >::operator const CycleDataType * ( ) const [inline]

This allows the CycleDataLockedStageReader to be passed to any function that expects a const CycleDataType pointer.

Definition at line 212 of file cycleDataLockedStageReader.I.

template<class CycleDataType >
const CycleDataType * CycleDataLockedStageReader< CycleDataType >::operator-> ( ) const [inline]

This provides an indirect member access to the actual CycleData data.

Definition at line 200 of file cycleDataLockedStageReader.I.

template<class CycleDataType >
const CycleDataType * CycleDataLockedStageReader< CycleDataType >::take_pointer ( ) [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 228 of file cycleDataLockedStageReader.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations