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
idBitMsgDelta Class Reference

#include <BitMsg.h>

Public Member Functions

 idBitMsgDelta ()
 
 ~idBitMsgDelta ()
 
void Init (const idBitMsg *base, idBitMsg *newBase, idBitMsg *delta)
 
void Init (const idBitMsg *base, idBitMsg *newBase, const idBitMsg *delta)
 
bool HasChanged (void) const
 
void WriteBits (int value, int numBits)
 
void WriteChar (int c)
 
void WriteByte (int c)
 
void WriteShort (int c)
 
void WriteUShort (int c)
 
void WriteLong (int c)
 
void WriteFloat (float f)
 
void WriteFloat (float f, int exponentBits, int mantissaBits)
 
void WriteAngle8 (float f)
 
void WriteAngle16 (float f)
 
void WriteDir (const idVec3 &dir, int numBits)
 
void WriteString (const char *s, int maxLength=-1)
 
void WriteData (const void *data, int length)
 
void WriteDict (const idDict &dict)
 
void WriteDeltaChar (int oldValue, int newValue)
 
void WriteDeltaByte (int oldValue, int newValue)
 
void WriteDeltaShort (int oldValue, int newValue)
 
void WriteDeltaLong (int oldValue, int newValue)
 
void WriteDeltaFloat (float oldValue, float newValue)
 
void WriteDeltaFloat (float oldValue, float newValue, int exponentBits, int mantissaBits)
 
void WriteDeltaByteCounter (int oldValue, int newValue)
 
void WriteDeltaShortCounter (int oldValue, int newValue)
 
void WriteDeltaLongCounter (int oldValue, int newValue)
 
int ReadBits (int numBits) const
 
int ReadChar (void) const
 
int ReadByte (void) const
 
int ReadShort (void) const
 
int ReadUShort (void) const
 
int ReadLong (void) const
 
float ReadFloat (void) const
 
float ReadFloat (int exponentBits, int mantissaBits) const
 
float ReadAngle8 (void) const
 
float ReadAngle16 (void) const
 
idVec3 ReadDir (int numBits) const
 
void ReadString (char *buffer, int bufferSize) const
 
void ReadData (void *data, int length) const
 
void ReadDict (idDict &dict)
 
int ReadDeltaChar (int oldValue) const
 
int ReadDeltaByte (int oldValue) const
 
int ReadDeltaShort (int oldValue) const
 
int ReadDeltaLong (int oldValue) const
 
float ReadDeltaFloat (float oldValue) const
 
float ReadDeltaFloat (float oldValue, int exponentBits, int mantissaBits) const
 
int ReadDeltaByteCounter (int oldValue) const
 
int ReadDeltaShortCounter (int oldValue) const
 
int ReadDeltaLongCounter (int oldValue) const
 

Private Member Functions

void WriteDelta (int oldValue, int newValue, int numBits)
 
int ReadDelta (int oldValue, int numBits) const
 

Private Attributes

const idBitMsgbase
 
idBitMsgnewBase
 
idBitMsgwriteDelta
 
const idBitMsgreadDelta
 
bool changed
 

Detailed Description

Definition at line 439 of file BitMsg.h.

Constructor & Destructor Documentation

ID_INLINE idBitMsgDelta::idBitMsgDelta ( )

Definition at line 510 of file BitMsg.h.

idBitMsgDelta::~idBitMsgDelta ( )
inline

Definition at line 442 of file BitMsg.h.

Member Function Documentation

ID_INLINE bool idBitMsgDelta::HasChanged ( void  ) const

Definition at line 534 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::Init ( const idBitMsg base,
idBitMsg newBase,
idBitMsg delta 
)

Definition at line 518 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::Init ( const idBitMsg base,
idBitMsg newBase,
const idBitMsg delta 
)

Definition at line 526 of file BitMsg.h.

ID_INLINE float idBitMsgDelta::ReadAngle16 ( void  ) const

Definition at line 640 of file BitMsg.h.

ID_INLINE float idBitMsgDelta::ReadAngle8 ( void  ) const

Definition at line 636 of file BitMsg.h.

int idBitMsgDelta::ReadBits ( int  numBits) const

Definition at line 709 of file BitMsg.cpp.

ID_INLINE int idBitMsgDelta::ReadByte ( void  ) const

Definition at line 609 of file BitMsg.h.

ID_INLINE int idBitMsgDelta::ReadChar ( void  ) const

Definition at line 605 of file BitMsg.h.

void idBitMsgDelta::ReadData ( void data,
int  length 
) const

Definition at line 943 of file BitMsg.cpp.

int idBitMsgDelta::ReadDelta ( int  oldValue,
int  numBits 
) const
private

Definition at line 736 of file BitMsg.cpp.

ID_INLINE int idBitMsgDelta::ReadDeltaByte ( int  oldValue) const

Definition at line 652 of file BitMsg.h.

int idBitMsgDelta::ReadDeltaByteCounter ( int  oldValue) const

Definition at line 993 of file BitMsg.cpp.

ID_INLINE int idBitMsgDelta::ReadDeltaChar ( int  oldValue) const

Definition at line 648 of file BitMsg.h.

ID_INLINE float idBitMsgDelta::ReadDeltaFloat ( float  oldValue) const

Definition at line 664 of file BitMsg.h.

ID_INLINE float idBitMsgDelta::ReadDeltaFloat ( float  oldValue,
int  exponentBits,
int  mantissaBits 
) const

Definition at line 670 of file BitMsg.h.

ID_INLINE int idBitMsgDelta::ReadDeltaLong ( int  oldValue) const

Definition at line 660 of file BitMsg.h.

int idBitMsgDelta::ReadDeltaLongCounter ( int  oldValue) const

Definition at line 1047 of file BitMsg.cpp.

ID_INLINE int idBitMsgDelta::ReadDeltaShort ( int  oldValue) const

Definition at line 656 of file BitMsg.h.

int idBitMsgDelta::ReadDeltaShortCounter ( int  oldValue) const

Definition at line 1020 of file BitMsg.cpp.

void idBitMsgDelta::ReadDict ( idDict dict)

Definition at line 969 of file BitMsg.cpp.

ID_INLINE idVec3 idBitMsgDelta::ReadDir ( int  numBits) const

Definition at line 644 of file BitMsg.h.

ID_INLINE float idBitMsgDelta::ReadFloat ( void  ) const

Definition at line 625 of file BitMsg.h.

ID_INLINE float idBitMsgDelta::ReadFloat ( int  exponentBits,
int  mantissaBits 
) const

Definition at line 631 of file BitMsg.h.

ID_INLINE int idBitMsgDelta::ReadLong ( void  ) const

Definition at line 621 of file BitMsg.h.

ID_INLINE int idBitMsgDelta::ReadShort ( void  ) const

Definition at line 613 of file BitMsg.h.

void idBitMsgDelta::ReadString ( char *  buffer,
int  bufferSize 
) const

Definition at line 918 of file BitMsg.cpp.

ID_INLINE int idBitMsgDelta::ReadUShort ( void  ) const

Definition at line 617 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteAngle16 ( float  f)

Definition at line 571 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteAngle8 ( float  f)

Definition at line 567 of file BitMsg.h.

void idBitMsgDelta::WriteBits ( int  value,
int  numBits 
)

Definition at line 648 of file BitMsg.cpp.

ID_INLINE void idBitMsgDelta::WriteByte ( int  c)

Definition at line 542 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteChar ( int  c)

Definition at line 538 of file BitMsg.h.

void idBitMsgDelta::WriteData ( const void data,
int  length 
)

Definition at line 796 of file BitMsg.cpp.

void idBitMsgDelta::WriteDelta ( int  oldValue,
int  newValue,
int  numBits 
)
private

Definition at line 673 of file BitMsg.cpp.

ID_INLINE void idBitMsgDelta::WriteDeltaByte ( int  oldValue,
int  newValue 
)

Definition at line 583 of file BitMsg.h.

void idBitMsgDelta::WriteDeltaByteCounter ( int  oldValue,
int  newValue 
)

Definition at line 843 of file BitMsg.cpp.

ID_INLINE void idBitMsgDelta::WriteDeltaChar ( int  oldValue,
int  newValue 
)

Definition at line 579 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteDeltaFloat ( float  oldValue,
float  newValue 
)

Definition at line 595 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteDeltaFloat ( float  oldValue,
float  newValue,
int  exponentBits,
int  mantissaBits 
)

Definition at line 599 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteDeltaLong ( int  oldValue,
int  newValue 
)

Definition at line 591 of file BitMsg.h.

void idBitMsgDelta::WriteDeltaLongCounter ( int  oldValue,
int  newValue 
)

Definition at line 893 of file BitMsg.cpp.

ID_INLINE void idBitMsgDelta::WriteDeltaShort ( int  oldValue,
int  newValue 
)

Definition at line 587 of file BitMsg.h.

void idBitMsgDelta::WriteDeltaShortCounter ( int  oldValue,
int  newValue 
)

Definition at line 868 of file BitMsg.cpp.

void idBitMsgDelta::WriteDict ( const idDict dict)

Definition at line 823 of file BitMsg.cpp.

ID_INLINE void idBitMsgDelta::WriteDir ( const idVec3 dir,
int  numBits 
)

Definition at line 575 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteFloat ( float  f)

Definition at line 558 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteFloat ( float  f,
int  exponentBits,
int  mantissaBits 
)

Definition at line 562 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteLong ( int  c)

Definition at line 554 of file BitMsg.h.

ID_INLINE void idBitMsgDelta::WriteShort ( int  c)

Definition at line 546 of file BitMsg.h.

void idBitMsgDelta::WriteString ( const char *  s,
int  maxLength = -1 
)

Definition at line 770 of file BitMsg.cpp.

ID_INLINE void idBitMsgDelta::WriteUShort ( int  c)

Definition at line 550 of file BitMsg.h.

Member Data Documentation

const idBitMsg* idBitMsgDelta::base
private

Definition at line 499 of file BitMsg.h.

bool idBitMsgDelta::changed
mutableprivate

Definition at line 503 of file BitMsg.h.

idBitMsg* idBitMsgDelta::newBase
private

Definition at line 500 of file BitMsg.h.

const idBitMsg* idBitMsgDelta::readDelta
private

Definition at line 502 of file BitMsg.h.

idBitMsg* idBitMsgDelta::writeDelta
private

Definition at line 501 of file BitMsg.h.


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