Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ProcessID.cc File Reference


Detailed Description

Declares the static ProcessID::ID, that's all.

Author:
ejt (Creator)
Author
ejt
Name
tekkotsu-4_0
Revision
1.7
State
Exp
Date
2007/03/15 04:14:21

Definition in file ProcessID.cc.

#include "ProcessID.h"
#include "Shared/WorldState.h"

Include dependency graph for ProcessID.cc:

Go to the source code of this file.

Namespaces

namespace  ProcessID

Functions

ProcessID_t ProcessID::getUnhookedID ()
 returns process's ID number from static global, the default behavior if setIDHooks was passed NULL
void ProcessID::setUnhookedID (ProcessID_t id)
 sets the ID into static global (be careful you know what you're doing if you call this), this is the default behavior if setIDHooks was passed NULL
ProcessID_t ProcessID::getID ()
 returns process's ID number, subject to overriding via setIDHooks()
void ProcessID::setID (ProcessID_t id)
 sets the ID during init (be careful you know what you're doing if you call this), subject to overriding via setIDHooks()
void ProcessID::setIDHooks (ProcessID_t(*customGetID)(), void(*customSetID)(ProcessID_t id))
 allows you to override the behavior of getID and setID -- pass NULL to use default behavior

Variables

ProcessID_t ProcessID::ID = NumProcesses
 holds ID number
ProcessID_t(* ProcessID::getIDHook )() = &getUnhookedID
 hook allows overriding the ID system, set with ProcessID::setIDHooks
void(* ProcessID::setIDHook )(ProcessID_t id) = &setUnhookedID
 hook allows overriding the ID system, set with ProcessID::setIDHooks


Tekkotsu v4.0
Generated Thu Nov 22 00:56:48 2007 by Doxygen 1.5.4