#include <btSerializer.h>
Public Member Functions | |
virtual btChunk * | allocate (size_t size, int numElements) |
btDefaultSerializer (int totalSize) | |
virtual void | finalizeChunk (btChunk *chunk, const char *structType, int chunkCode, void *oldPtr) |
virtual const char * | findNameForPointer (const void *ptr) const |
virtual void | finishSerialization () |
virtual const unsigned char * | getBufferPointer () const |
virtual int | getCurrentBufferSize () const |
virtual int | getSerializationFlags () const |
virtual void | registerNameForPointer (const void *ptr, const char *name) |
virtual void | serializeName (const char *name) |
virtual void | setSerializationFlags (int flags) |
virtual void | startSerialization () |
virtual | ~btDefaultSerializer () |
Protected Member Functions | |
virtual void * | findPointer (void *oldPtr) |
int | getReverseType (const char *type) const |
void | initDNA (const char *bdnaOrg, int dnalen) |
void | writeDNA () |
Private Attributes | |
unsigned char * | m_buffer |
btHashMap< btHashPtr, void * > | m_chunkP |
btAlignedObjectArray< btChunk * > | m_chunkPtrs |
int | m_currentSize |
void * | m_dna |
int | m_dnaLength |
btHashMap< btHashPtr, const char * > | m_nameMap |
int | m_serializationFlags |
int | m_totalSize |
btHashMap< btHashInt, int > | mStructReverse |
btAlignedObjectArray< short * > | mStructs |
btAlignedObjectArray< short > | mTlens |
btHashMap< btHashString, int > | mTypeLookup |
btAlignedObjectArray< char * > | mTypes |
Definition at line 122 of file btSerializer.h.
btDefaultSerializer::btDefaultSerializer | ( | int | totalSize | ) | [inline] |
Definition at line 356 of file btSerializer.h.
virtual btDefaultSerializer::~btDefaultSerializer | ( | ) | [inline, virtual] |
Definition at line 396 of file btSerializer.h.
virtual btChunk* btDefaultSerializer::allocate | ( | size_t | size, | |
int | numElements | |||
) | [inline, virtual] |
Implements btSerializer.
Definition at line 485 of file btSerializer.h.
virtual void btDefaultSerializer::finalizeChunk | ( | btChunk * | chunk, | |
const char * | structType, | |||
int | chunkCode, | |||
void * | oldPtr | |||
) | [inline, virtual] |
Implements btSerializer.
Definition at line 466 of file btSerializer.h.
virtual const char* btDefaultSerializer::findNameForPointer | ( | const void * | ptr | ) | const [inline, virtual] |
Implements btSerializer.
Definition at line 506 of file btSerializer.h.
virtual void* btDefaultSerializer::findPointer | ( | void * | oldPtr | ) | [inline, protected, virtual] |
Implements btSerializer.
Definition at line 151 of file btSerializer.h.
virtual void btDefaultSerializer::finishSerialization | ( | ) | [inline, virtual] |
Implements btSerializer.
Definition at line 441 of file btSerializer.h.
virtual const unsigned char* btDefaultSerializer::getBufferPointer | ( | ) | const [inline, virtual] |
Implements btSerializer.
Definition at line 456 of file btSerializer.h.
virtual int btDefaultSerializer::getCurrentBufferSize | ( | ) | const [inline, virtual] |
Implements btSerializer.
Definition at line 461 of file btSerializer.h.
int btDefaultSerializer::getReverseType | ( | const char * | type | ) | const [inline, protected] |
Definition at line 168 of file btSerializer.h.
virtual int btDefaultSerializer::getSerializationFlags | ( | ) | const [inline, virtual] |
Implements btSerializer.
Definition at line 549 of file btSerializer.h.
void btDefaultSerializer::initDNA | ( | const char * | bdnaOrg, | |
int | dnalen | |||
) | [inline, protected] |
was already initialized
Definition at line 179 of file btSerializer.h.
virtual void btDefaultSerializer::registerNameForPointer | ( | const void * | ptr, | |
const char * | name | |||
) | [inline, virtual] |
Implements btSerializer.
Definition at line 515 of file btSerializer.h.
virtual void btDefaultSerializer::serializeName | ( | const char * | name | ) | [inline, virtual] |
Implements btSerializer.
Definition at line 520 of file btSerializer.h.
virtual void btDefaultSerializer::setSerializationFlags | ( | int | flags | ) | [inline, virtual] |
Implements btSerializer.
Definition at line 554 of file btSerializer.h.
virtual void btDefaultSerializer::startSerialization | ( | ) | [inline, virtual] |
Implements btSerializer.
Definition at line 404 of file btSerializer.h.
void btDefaultSerializer::writeDNA | ( | ) | [inline, protected] |
Definition at line 161 of file btSerializer.h.
unsigned char* btDefaultSerializer::m_buffer [private] |
Definition at line 139 of file btSerializer.h.
btHashMap<btHashPtr,void*> btDefaultSerializer::m_chunkP [private] |
Definition at line 133 of file btSerializer.h.
Definition at line 147 of file btSerializer.h.
int btDefaultSerializer::m_currentSize [private] |
Definition at line 140 of file btSerializer.h.
void* btDefaultSerializer::m_dna [private] |
Definition at line 141 of file btSerializer.h.
int btDefaultSerializer::m_dnaLength [private] |
Definition at line 142 of file btSerializer.h.
btHashMap<btHashPtr,const char*> btDefaultSerializer::m_nameMap [private] |
Definition at line 135 of file btSerializer.h.
int btDefaultSerializer::m_serializationFlags [private] |
Definition at line 144 of file btSerializer.h.
int btDefaultSerializer::m_totalSize [private] |
Definition at line 138 of file btSerializer.h.
btHashMap<btHashInt, int> btDefaultSerializer::mStructReverse [private] |
Definition at line 129 of file btSerializer.h.
btAlignedObjectArray<short*> btDefaultSerializer::mStructs [private] |
Definition at line 127 of file btSerializer.h.
btAlignedObjectArray<short> btDefaultSerializer::mTlens [private] |
Definition at line 128 of file btSerializer.h.
btHashMap<btHashString,int> btDefaultSerializer::mTypeLookup [private] |
Definition at line 130 of file btSerializer.h.
btAlignedObjectArray<char*> btDefaultSerializer::mTypes [private] |
Definition at line 126 of file btSerializer.h.