Public Member Functions | Protected Member Functions | Private Attributes
btDefaultSerializer Class Reference

#include <btSerializer.h>

Inheritance diagram for btDefaultSerializer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual btChunkallocate (size_t size, int numElements)
 btDefaultSerializer (int totalSize=0)
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 * getUniquePointer (void *oldPtr)
virtual unsigned char * internalAlloc (size_t size)
virtual void registerNameForPointer (const void *ptr, const char *name)
virtual void serializeName (const char *name)
virtual void setSerializationFlags (int flags)
virtual void startSerialization ()
void writeHeader (unsigned char *buffer) const
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
int m_uniqueIdGenerator
btHashMap< btHashPtr,
btPointerUid
m_uniquePointers
btHashMap< btHashInt, int > mStructReverse
btAlignedObjectArray< short * > mStructs
btAlignedObjectArray< short > mTlens
btHashMap< btHashString, int > mTypeLookup
btAlignedObjectArray< char * > mTypes

Detailed Description

The btDefaultSerializer is the main Bullet serialization class. The constructor takes an optional argument for backwards compatibility, it is recommended to leave this empty/zero.

Definition at line 139 of file btSerializer.h.


Constructor & Destructor Documentation

btDefaultSerializer::btDefaultSerializer ( int  totalSize = 0) [inline]

Definition at line 377 of file btSerializer.h.

virtual btDefaultSerializer::~btDefaultSerializer ( ) [inline, virtual]

Definition at line 417 of file btSerializer.h.


Member Function Documentation

virtual btChunk* btDefaultSerializer::allocate ( size_t  size,
int  numElements 
) [inline, virtual]

Implements btSerializer.

Definition at line 579 of file btSerializer.h.

virtual void btDefaultSerializer::finalizeChunk ( btChunk chunk,
const char *  structType,
int  chunkCode,
void *  oldPtr 
) [inline, virtual]

Implements btSerializer.

Definition at line 541 of file btSerializer.h.

virtual const char* btDefaultSerializer::findNameForPointer ( const void *  ptr) const [inline, virtual]

Implements btSerializer.

Definition at line 598 of file btSerializer.h.

virtual void* btDefaultSerializer::findPointer ( void *  oldPtr) [inline, protected, virtual]

Implements btSerializer.

Definition at line 170 of file btSerializer.h.

virtual void btDefaultSerializer::finishSerialization ( ) [inline, virtual]

Implements btSerializer.

Definition at line 472 of file btSerializer.h.

virtual const unsigned char* btDefaultSerializer::getBufferPointer ( ) const [inline, virtual]

Implements btSerializer.

Definition at line 531 of file btSerializer.h.

virtual int btDefaultSerializer::getCurrentBufferSize ( ) const [inline, virtual]

Implements btSerializer.

Definition at line 536 of file btSerializer.h.

int btDefaultSerializer::getReverseType ( const char *  type) const [inline, protected]

Definition at line 189 of file btSerializer.h.

virtual int btDefaultSerializer::getSerializationFlags ( ) const [inline, virtual]

Implements btSerializer.

Definition at line 641 of file btSerializer.h.

virtual void* btDefaultSerializer::getUniquePointer ( void *  oldPtr) [inline, virtual]

Implements btSerializer.

Definition at line 511 of file btSerializer.h.

void btDefaultSerializer::initDNA ( const char *  bdnaOrg,
int  dnalen 
) [inline, protected]

was already initialized

Definition at line 200 of file btSerializer.h.

virtual unsigned char* btDefaultSerializer::internalAlloc ( size_t  size) [inline, virtual]

Definition at line 560 of file btSerializer.h.

virtual void btDefaultSerializer::registerNameForPointer ( const void *  ptr,
const char *  name 
) [inline, virtual]

Implements btSerializer.

Definition at line 607 of file btSerializer.h.

virtual void btDefaultSerializer::serializeName ( const char *  name) [inline, virtual]

Implements btSerializer.

Definition at line 612 of file btSerializer.h.

virtual void btDefaultSerializer::setSerializationFlags ( int  flags) [inline, virtual]

Implements btSerializer.

Definition at line 646 of file btSerializer.h.

virtual void btDefaultSerializer::startSerialization ( ) [inline, virtual]

Implements btSerializer.

Definition at line 461 of file btSerializer.h.

void btDefaultSerializer::writeDNA ( ) [inline, protected]

Definition at line 182 of file btSerializer.h.

void btDefaultSerializer::writeHeader ( unsigned char *  buffer) const [inline]

Definition at line 425 of file btSerializer.h.


Member Data Documentation

unsigned char* btDefaultSerializer::m_buffer [private]

Definition at line 158 of file btSerializer.h.

Definition at line 150 of file btSerializer.h.

Definition at line 166 of file btSerializer.h.

Definition at line 159 of file btSerializer.h.

void* btDefaultSerializer::m_dna [private]

Definition at line 160 of file btSerializer.h.

Definition at line 161 of file btSerializer.h.

Definition at line 152 of file btSerializer.h.

Definition at line 163 of file btSerializer.h.

Definition at line 157 of file btSerializer.h.

Definition at line 155 of file btSerializer.h.

Definition at line 154 of file btSerializer.h.

Definition at line 146 of file btSerializer.h.

Definition at line 144 of file btSerializer.h.

Definition at line 145 of file btSerializer.h.

Definition at line 147 of file btSerializer.h.

Definition at line 143 of file btSerializer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:32