Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

WorldStatePool::Request Class Reference

#include <WorldStatePool.h>

Inheritance diagram for WorldStatePool::Request:

List of all members.


Detailed Description

common base class for ReadRequest or WriteRequest

Definition at line 45 of file WorldStatePool.h.


Public Attributes

unsigned int bufUsed
 the entry index used
WorldState *& tgt
 reference to pointer, which is set to an element of the pool when the request goes through
WorldStateprev
 stores previous value at tgt so it can be restored upon release (needed to support recursive usage)
bool bl
 whether to block if a write is in progress, or use most recent "complete" entry
unsigned int depth
 supports recursive read requests
bool isRead
 true if instance is a read request

Protected Member Functions

 Request (WorldState *&target, bool block, bool wantRead)
 constructor, sets the WorldState point to be assigned, whether to block, and whether is an instance of ReadRequest
 Request (const Request &r)
 shallow copy constructor supported
Requestoperator= (const Request &r)
 shallow assignment supported

Constructor & Destructor Documentation

WorldStatePool::Request::Request ( WorldState *&  target,
bool  block,
bool  wantRead 
) [inline, protected]

constructor, sets the WorldState point to be assigned, whether to block, and whether is an instance of ReadRequest

wantRead is because we can't trust RTTI (i.e. dynamic_cast) to work correctly on Aperios :(

Definition at line 49 of file WorldStatePool.h.

WorldStatePool::Request::Request ( const Request r  )  [inline, protected]

shallow copy constructor supported

Definition at line 53 of file WorldStatePool.h.


Member Function Documentation

Request& WorldStatePool::Request::operator= ( const Request r  )  [inline, protected]

shallow assignment supported

Definition at line 55 of file WorldStatePool.h.

Referenced by WorldStatePool::WriteRequest::operator=(), and WorldStatePool::ReadRequest::operator=().


Member Data Documentation

the entry index used

Definition at line 58 of file WorldStatePool.h.

Referenced by WorldStatePool::doReleaseResource(), WorldStatePool::doUseResource(), and operator=().

reference to pointer, which is set to an element of the pool when the request goes through

Definition at line 59 of file WorldStatePool.h.

Referenced by WorldStatePool::doReleaseResource(), WorldStatePool::doUseResource(), and operator=().

stores previous value at tgt so it can be restored upon release (needed to support recursive usage)

Definition at line 60 of file WorldStatePool.h.

Referenced by WorldStatePool::doReleaseResource(), WorldStatePool::doUseResource(), and operator=().

whether to block if a write is in progress, or use most recent "complete" entry

Definition at line 61 of file WorldStatePool.h.

Referenced by WorldStatePool::doUseResource(), and operator=().

supports recursive read requests

Definition at line 62 of file WorldStatePool.h.

Referenced by WorldStatePool::doReleaseResource(), WorldStatePool::doUseResource(), and operator=().

true if instance is a read request

Definition at line 63 of file WorldStatePool.h.

Referenced by WorldStatePool::doReleaseResource(), and WorldStatePool::doUseResource().


The documentation for this class was generated from the following file:

Tekkotsu v4.0
Generated Thu Nov 22 00:58:49 2007 by Doxygen 1.5.4