#include <daeStringTable.h>
Public Member Functions | |
| DLLSPEC daeString | allocString (daeString string) |
| DLLSPEC void | clear () |
| DAE_ALLOC DLLSPEC | daeStringTable (int stringBufferSize=1024 *1024) |
| ~daeStringTable () | |
Private Member Functions | |
| daeString | allocateBuffer () |
Private Attributes | |
| daeString | _empty |
| size_t | _stringBufferIndex |
| size_t | _stringBufferSize |
| daeStringArray | _stringBuffersList |
The daeStringTable is a simple string table class to hold a float list of strings without a lot of allocations.
Definition at line 18 of file daeStringTable.h.
| DAE_ALLOC DLLSPEC daeStringTable::daeStringTable | ( | int | stringBufferSize = 1024 *1024 |
) |
Macro that defines new and delete overrides for this class Constructor which specifies fixed buffer size.
| stringBufferSize | The size of the buffer to create for string allocation. |
| daeStringTable::~daeStringTable | ( | ) | [inline] |
Destructor.
Definition at line 34 of file daeStringTable.h.
| daeString daeStringTable::allocateBuffer | ( | ) | [private] |
Allocates a string from the table.
| string | const char * to copy into the table. |
| DLLSPEC void daeStringTable::clear | ( | ) |
Clears the storage.
daeString daeStringTable::_empty [private] |
Definition at line 56 of file daeStringTable.h.
size_t daeStringTable::_stringBufferIndex [private] |
Definition at line 51 of file daeStringTable.h.
size_t daeStringTable::_stringBufferSize [private] |
Definition at line 50 of file daeStringTable.h.
Definition at line 52 of file daeStringTable.h.