doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
idMsgQueue Class Reference

#include <MsgChannel.h>

Public Member Functions

 idMsgQueue ()
 
void Init (int sequence)
 
bool Add (const byte *data, const int size)
 
bool Get (byte *data, int &size)
 
int GetTotalSize (void) const
 
int GetSpaceLeft (void) const
 
int GetFirst (void) const
 
int GetLast (void) const
 
void CopyToBuffer (byte *buf) const
 

Private Member Functions

void WriteByte (byte b)
 
byte ReadByte (void)
 
void WriteShort (int s)
 
int ReadShort (void)
 
void WriteLong (int l)
 
int ReadLong (void)
 
void WriteData (const byte *data, const int size)
 
void ReadData (byte *data, const int size)
 

Private Attributes

byte buffer [MAX_MSG_QUEUE_SIZE]
 
int first
 
int last
 
int startIndex
 
int endIndex
 

Detailed Description

Definition at line 56 of file MsgChannel.h.

Constructor & Destructor Documentation

idMsgQueue::idMsgQueue ( void  )

Definition at line 63 of file MsgChannel.cpp.

Member Function Documentation

bool idMsgQueue::Add ( const byte data,
const int  size 
)

Definition at line 82 of file MsgChannel.cpp.

void idMsgQueue::CopyToBuffer ( byte buf) const

Definition at line 144 of file MsgChannel.cpp.

bool idMsgQueue::Get ( byte data,
int size 
)

Definition at line 99 of file MsgChannel.cpp.

int idMsgQueue::GetFirst ( void  ) const
inline

Definition at line 66 of file MsgChannel.h.

int idMsgQueue::GetLast ( void  ) const
inline

Definition at line 67 of file MsgChannel.h.

int idMsgQueue::GetSpaceLeft ( void  ) const

Definition at line 131 of file MsgChannel.cpp.

int idMsgQueue::GetTotalSize ( void  ) const

Definition at line 118 of file MsgChannel.cpp.

void idMsgQueue::Init ( int  sequence)

Definition at line 72 of file MsgChannel.cpp.

byte idMsgQueue::ReadByte ( void  )
private

Definition at line 168 of file MsgChannel.cpp.

void idMsgQueue::ReadData ( byte data,
const int  size 
)
private

Definition at line 230 of file MsgChannel.cpp.

int idMsgQueue::ReadLong ( void  )
private

Definition at line 210 of file MsgChannel.cpp.

int idMsgQueue::ReadShort ( void  )
private

Definition at line 189 of file MsgChannel.cpp.

void idMsgQueue::WriteByte ( byte  b)
private

Definition at line 158 of file MsgChannel.cpp.

void idMsgQueue::WriteData ( const byte data,
const int  size 
)
private

Definition at line 219 of file MsgChannel.cpp.

void idMsgQueue::WriteLong ( int  l)
private

Definition at line 198 of file MsgChannel.cpp.

void idMsgQueue::WriteShort ( int  s)
private

Definition at line 179 of file MsgChannel.cpp.

Member Data Documentation

byte idMsgQueue::buffer[MAX_MSG_QUEUE_SIZE]
private

Definition at line 71 of file MsgChannel.h.

int idMsgQueue::endIndex
private

Definition at line 75 of file MsgChannel.h.

int idMsgQueue::first
private

Definition at line 72 of file MsgChannel.h.

int idMsgQueue::last
private

Definition at line 73 of file MsgChannel.h.

int idMsgQueue::startIndex
private

Definition at line 74 of file MsgChannel.h.


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