Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

WorldStateLookup Class Reference

#include <WorldState.h>

List of all members.


Detailed Description

This class masquerades as a simple WorldState pointer, but actually checks the process ID of the referencing thread to allow each thread group to have a separate WorldState*.

This is to support WorldStatePool functionality, so if a behavior in Main is blocking, it doesn't prevent Motion threads from getting updated sensors

Definition at line 105 of file WorldState.h.


Public Member Functions

 WorldStateLookup ()
 constructor
WorldState *& operator-> ()
 smart pointer to the underlying class
WorldStateoperator * ()
 smart pointer to the underlying class
 operator WorldState *& ()
 pretend we're a simple pointer
WorldStateLookupoperator= (WorldState *p)
 assign from a pointer as well

Protected Attributes

WorldStatews [ProcessID::NumProcesses]
 This holds a separate WorldState pointer for each process.

Private Member Functions

 WorldStateLookup (const WorldStateLookup &)
 don't call this
WorldStateLookupoperator= (const WorldStateLookup &)
 don't call this

Constructor & Destructor Documentation

WorldStateLookup::WorldStateLookup (  )  [inline]

constructor

Definition at line 107 of file WorldState.h.

WorldStateLookup::WorldStateLookup ( const WorldStateLookup  )  [private]

don't call this


Member Function Documentation

WorldState*& WorldStateLookup::operator-> (  )  [inline]

smart pointer to the underlying class

Definition at line 108 of file WorldState.h.

WorldState& WorldStateLookup::operator * (  )  [inline]

smart pointer to the underlying class

Definition at line 109 of file WorldState.h.

WorldStateLookup::operator WorldState *& (  )  [inline]

pretend we're a simple pointer

Definition at line 110 of file WorldState.h.

WorldStateLookup& WorldStateLookup::operator= ( WorldState p  )  [inline]

assign from a pointer as well

Definition at line 111 of file WorldState.h.

WorldStateLookup& WorldStateLookup::operator= ( const WorldStateLookup  )  [private]

don't call this


Member Data Documentation

WorldState* WorldStateLookup::ws[ProcessID::NumProcesses] [protected]

This holds a separate WorldState pointer for each process.

Note that under a multi-process model, each process is only ever going to reference one of these, (so we could get away with a single global pointer), but under a uni-process model, we wind up using the various entries to differentiate the thread groups

Definition at line 118 of file WorldState.h.

Referenced by operator *(), operator WorldState *&(), operator->(), operator=(), and WorldStateLookup().


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