SourceMod SDK  1.7
BaseStringTable Class Reference

Public Member Functions

 BaseStringTable (unsigned int init_size)
 
int AddString (const char *string)
 
int AddString (const char *string, size_t length)
 
const char * GetString (int str)
 
void Reset ()
 
BaseMemTableGetMemTable ()
 

Member Function Documentation

int BaseStringTable::AddString ( const char *  string)
inline

Adds a string to the string table and returns its index.

int BaseStringTable::AddString ( const char *  string,
size_t  length 
)
inline

Adds a string to the string table and returns its index.

BaseMemTable* BaseStringTable::GetMemTable ( )
inline

Returns the parent BaseMemTable that this string table uses.

const char* BaseStringTable::GetString ( int  str)
inline

Given an index into the string table, returns the associated string.

void BaseStringTable::Reset ( )
inline

Scraps the string table. For caching purposes, the memory is not freed, however subsequent calls to AddString() will begin at the first index again.


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