doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
DeclManager.cpp File Reference
#include "../idlib/precompiled.h"

Go to the source code of this file.

Classes

class  idDeclType
 
class  idDeclFolder
 
class  idDeclLocal
 
class  idDeclFile
 
class  idDeclManagerLocal
 
struct  huffmanNode_s
 
struct  huffmanCode_s
 

Macros

#define USE_COMPRESSED_DECLS
 

Typedefs

typedef struct huffmanNode_s huffmanNode_t
 
typedef struct huffmanCode_s huffmanCode_t
 

Functions

void ClearHuffmanFrequencies (void)
 
huffmanNode_tInsertHuffmanNode (huffmanNode_t *firstNode, huffmanNode_t *node)
 
void BuildHuffmanCode_r (huffmanNode_t *node, huffmanCode_t code, huffmanCode_t codes[MAX_HUFFMAN_SYMBOLS])
 
void FreeHuffmanTree_r (huffmanNode_t *node)
 
int HuffmanHeight_r (huffmanNode_t *node)
 
void SetupHuffman (void)
 
void ShutdownHuffman (void)
 
int HuffmanCompressText (const char *text, int textLength, byte *compressed, int maxCompressedSize)
 
int HuffmanDecompressText (char *text, int textLength, const byte *compressed, int compressedSize)
 
void ListHuffmanFrequencies_f (const idCmdArgs &args)
 

Variables

idDeclManagerLocal declManagerLocal
 
idDeclManagerdeclManager = &declManagerLocal
 
const int MAX_HUFFMAN_SYMBOLS = 256
 
int c_savedMemory = 0
 
const char * listDeclStrings [] = { "current", "all", "ever", NULL }
 

Macro Definition Documentation

#define USE_COMPRESSED_DECLS

Definition at line 64 of file DeclManager.cpp.

Typedef Documentation

typedef struct huffmanCode_s huffmanCode_t
typedef struct huffmanNode_s huffmanNode_t

Function Documentation

void BuildHuffmanCode_r ( huffmanNode_t node,
huffmanCode_t  code,
huffmanCode_t  codes[MAX_HUFFMAN_SYMBOLS] 
)

Definition at line 360 of file DeclManager.cpp.

void ClearHuffmanFrequencies ( void  )

Definition at line 322 of file DeclManager.cpp.

void FreeHuffmanTree_r ( huffmanNode_t node)

Definition at line 382 of file DeclManager.cpp.

int HuffmanCompressText ( const char *  text,
int  textLength,
byte compressed,
int  maxCompressedSize 
)

Definition at line 464 of file DeclManager.cpp.

int HuffmanDecompressText ( char *  text,
int  textLength,
const byte compressed,
int  compressedSize 
)

Definition at line 492 of file DeclManager.cpp.

int HuffmanHeight_r ( huffmanNode_t node)

Definition at line 395 of file DeclManager.cpp.

huffmanNode_t* InsertHuffmanNode ( huffmanNode_t firstNode,
huffmanNode_t node 
)

Definition at line 335 of file DeclManager.cpp.

void ListHuffmanFrequencies_f ( const idCmdArgs args)

Definition at line 517 of file DeclManager.cpp.

void SetupHuffman ( void  )

Definition at line 412 of file DeclManager.cpp.

void ShutdownHuffman ( void  )

Definition at line 453 of file DeclManager.cpp.

Variable Documentation

int c_savedMemory = 0

Definition at line 600 of file DeclManager.cpp.

Definition at line 249 of file DeclManager.cpp.

idDeclManagerLocal declManagerLocal

Definition at line 248 of file DeclManager.cpp.

const char* listDeclStrings[] = { "current", "all", "ever", NULL }

Definition at line 784 of file DeclManager.cpp.

const int MAX_HUFFMAN_SYMBOLS = 256

Definition at line 259 of file DeclManager.cpp.