![]() |
Public API Reference |
#include <symtable.h>
Public Methods | |
csSymbolTable (int size=53) | |
Construct the table with a hash of the given initial size, which should be a prime number, for optimisation reasons. More... | |
csSymbolTable (const csSymbolTable &other, int size=53) | |
Construct the table with a hash of the given initial size, which should be a prime number, for optimisation reasons. More... | |
~csSymbolTable () | |
Destruct the table and delete all variables. More... | |
void | AddChild (csSymbolTable *) |
Add a child table which will inherit the symbols of this one. More... | |
void | AddChildren (csArray< csSymbolTable * > &) |
Add child tables which will inherit the symbols of this one. More... | |
csArray< csSymbolTable * > | GetChildren () |
Get the whole array of chlidren. More... | |
void | SetSymbol (csStringID name, csShaderVariable *value) |
Set the value of a symbol, or create a new one if it doesn't exist. More... | |
void | SetSymbols (const csArray< csStringID > &names, csArray< csShaderVariable * > &) |
SetSymbol for multiple symbols. More... | |
bool | DeleteSymbol (csStringID name) |
Delete a symbol. More... | |
bool | DeleteSymbols (const csArray< csStringID > &names) |
Delete multiple symbols. More... | |
csShaderVariable * | GetSymbol (csStringID name) |
Get the value of a symbol. More... | |
csArray< csShaderVariable * > | GetSymbols (const csArray< csStringID > &names) |
Get the values of multiple symbols. More... | |
csArray< csShaderVariable * > | GetSymbols () |
Get all the symbols. More... | |
bool | SymbolExists (csStringID name) const |
Check if a symbol exists. More... | |
bool | SymbolsExist (const csArray< csStringID > &names) const |
Check if all of a set of symbols exist. More... |
Used by the Graphics3D shader system.
@@ Only stores csShaderVariable's, maybe it should be template-ized?
Definition at line 37 of file symtable.h.
|
Construct the table with a hash of the given initial size, which should be a prime number, for optimisation reasons. See the csHashMap docs for more info. Definition at line 72 of file symtable.h. |
|
Construct the table with a hash of the given initial size, which should be a prime number, for optimisation reasons. See the csHashMap docs for more info. Also copies auth variables from another symbol table. |
|
Destruct the table and delete all variables.
|
|
Add a child table which will inherit the symbols of this one.
Referenced by csMaterial::AddChild. |
|
Add child tables which will inherit the symbols of this one.
|
|
Delete a symbol.
|
|
Delete multiple symbols.
|
|
Get the whole array of chlidren.
|
|
Get the value of a symbol.
Referenced by csMaterial::GetVariable. |
|
Get all the symbols.
|
|
Get the values of multiple symbols.
|
|
Set the value of a symbol, or create a new one if it doesn't exist.
Referenced by csMaterial::AddVariable. |
|
SetSymbol for multiple symbols.
|
|
Check if a symbol exists.
|
|
Check if all of a set of symbols exist.
|