Blender V2.61 - r43446
Public Member Functions | Protected Member Functions

btDefaultSerializer Class Reference

#include <btSerializer.h>

Inheritance diagram for btDefaultSerializer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 btDefaultSerializer (int totalSize=0)
virtual ~btDefaultSerializer ()
void writeHeader (unsigned char *buffer) const
virtual void startSerialization ()
virtual void finishSerialization ()
virtual void * getUniquePointer (void *oldPtr)
virtual const unsigned char * getBufferPointer () const
virtual int getCurrentBufferSize () const
virtual void finalizeChunk (btChunk *chunk, const char *structType, int chunkCode, void *oldPtr)
virtual unsigned char * internalAlloc (size_t size)
virtual btChunkallocate (size_t size, int numElements)
virtual const char * findNameForPointer (const void *ptr) const
virtual void registerNameForPointer (const void *ptr, const char *name)
virtual void serializeName (const char *name)
virtual int getSerializationFlags () const
virtual void setSerializationFlags (int flags)

Protected Member Functions

virtual void * findPointer (void *oldPtr)
void writeDNA ()
int getReverseType (const char *type) const
void initDNA (const char *bdnaOrg, int dnalen)

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]
virtual btDefaultSerializer::~btDefaultSerializer ( ) [inline, virtual]

Definition at line 417 of file btSerializer.h.

References btAlignedFree.


Member Function Documentation

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

Implements btSerializer.

Definition at line 579 of file btSerializer.h.

References data, internalAlloc(), btChunk::m_chunkCode, and btAlignedObjectArray< T >::push_back().

Referenced by serializeName(), and writeDNA().

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

Implements btSerializer.

Definition at line 598 of file btSerializer.h.

References btHashMap< Key, Value >::find().

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

Implements btSerializer.

Definition at line 170 of file btSerializer.h.

References btHashMap< Key, Value >::find().

Referenced by finalizeChunk(), and serializeName().

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

Implements btSerializer.

Definition at line 531 of file btSerializer.h.

Referenced by CcdPhysicsEnvironment::exportFile().

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

Implements btSerializer.

Definition at line 536 of file btSerializer.h.

Referenced by CcdPhysicsEnvironment::exportFile().

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

Definition at line 189 of file btSerializer.h.

References btHashMap< Key, Value >::find().

Referenced by finalizeChunk().

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]
void btDefaultSerializer::initDNA ( const char *  bdnaOrg,
int  dnalen 
) [inline, protected]
virtual unsigned char* btDefaultSerializer::internalAlloc ( size_t  size) [inline, virtual]

Definition at line 560 of file btSerializer.h.

References btAlignedAlloc, and btAssert.

Referenced by allocate(), and startSerialization().

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

Implements btSerializer.

Definition at line 607 of file btSerializer.h.

References btHashMap< Key, Value >::insert().

Referenced by CcdPhysicsEnvironment::exportFile().

virtual void btDefaultSerializer::serializeName ( const char *  name) [inline, virtual]
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.

References BT_HEADER_LENGTH, internalAlloc(), and writeHeader().

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

Definition at line 182 of file btSerializer.h.

References allocate(), BT_DNA_CODE, finalizeChunk(), and btChunk::m_oldPtr.

Referenced by finishSerialization().

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

Definition at line 425 of file btSerializer.h.

Referenced by finishSerialization(), and startSerialization().


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