nMessageIDExpander Class Reference

List of all members.

Public Member Functions

 nMessageIDExpander ()
unsigned long ExpandMessageID (unsigned short id)

Private Attributes

unsigned long quarters [4]


Detailed Description

Definition at line 886 of file nNetwork.cpp.


Constructor & Destructor Documentation

nMessageIDExpander::nMessageIDExpander (  )  [inline]

Definition at line 890 of file nNetwork.cpp.

00891       :
00892     nMessageIDExpander()
00893     {
00894         for (int i=3; i>=0; --i)
            quarters[i]=i << 14;


Member Function Documentation

unsigned long nMessageIDExpander::ExpandMessageID ( unsigned short  id  )  [inline]

Definition at line 896 of file nNetwork.cpp.

00899     {
00900         // the current ID is in this quarter
00901         int thisQuarter = ( id >> 14 ) & 3;
00902 
00903         // the following quarter will be this
00904         int nextQuarter = ( thisQuarter + 1 ) & 3;
00905 
00906         // make sure the following quarter has a higher upper ID completion than this
00907         quarters[nextQuarter] = quarters[thisQuarter] + ( 1 << 14 );
00908 
00909         // replace high two bits of incoming ID with the counted up ID


Member Data Documentation

unsigned long nMessageIDExpander::quarters[4] [private]

Definition at line 888 of file nNetwork.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:48:11 2008 for Armagetron Advanced by  doxygen 1.5.4