Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

WorldStateLookup Class Reference

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*. More...

#include <WorldState.h>


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 so if a behavior in Main is blocking, it doesn't prevent Motion threads from getting updated sensors.

Definition at line 228 of file WorldState.h.

List of all members.

Public Member Functions

 WorldStateLookup ()
 constructor
WorldStateoperator-> ()
 smart pointer to the underlying class
WorldStateoperator* ()
 smart pointer to the underlying class
 operator WorldState * ()
 pretend we're a simple pointer

Protected Attributes

WorldState ws [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 (  ) 

constructor

Definition at line 230 of file WorldState.h.

WorldStateLookup::WorldStateLookup ( const WorldStateLookup  )  [private]

don't call this


Member Function Documentation

WorldStateLookup::operator WorldState * (  ) 

pretend we're a simple pointer

Definition at line 233 of file WorldState.h.

WorldState& WorldStateLookup::operator* (  ) 

smart pointer to the underlying class

Definition at line 232 of file WorldState.h.

WorldState* WorldStateLookup::operator-> (  ) 

smart pointer to the underlying class

Definition at line 231 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 240 of file WorldState.h.

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


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:18 2016 by Doxygen 1.6.3