Bullet Collision Detection & Physics Library
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
bParse::bDNA Class Reference

#include <bDNA.h>

Collaboration diagram for bParse::bDNA:
Collaboration graph
[legend]

Public Member Functions

 bDNA ()
 
 ~bDNA ()
 
void init (char *data, int len, bool swap=false)
 
int getArraySize (char *str)
 
int getArraySizeNew (short name)
 
int getElementSize (short type, short name)
 
int getNumNames () const
 
char * getName (int ind)
 
char * getType (int ind)
 
short * getStruct (int ind)
 
short getLength (int ind)
 
int getReverseType (short type)
 
int getReverseType (const char *type)
 
int getNumStructs ()
 
bool lessThan (bDNA *other)
 
void initCmpFlags (bDNA *memDNA)
 
bool flagNotEqual (int dna_nr)
 
bool flagEqual (int dna_nr)
 
bool flagNone (int dna_nr)
 
int getPointerSize ()
 
void dumpTypeDefinitions ()
 

Private Types

enum  FileDNAFlags {
  FDF_NONE =0,
  FDF_STRUCT_NEQU,
  FDF_STRUCT_EQU
}
 

Private Member Functions

void initRecurseCmpFlags (int i)
 

Private Attributes

btAlignedObjectArray< int > mCMPFlags
 
btAlignedObjectArray< bNameInfom_Names
 
btAlignedObjectArray< char * > mTypes
 
btAlignedObjectArray< short * > mStructs
 
btAlignedObjectArray< short > mTlens
 
btHashMap< btHashInt, int > mStructReverse
 
btHashMap< btHashString, int > mTypeLookup
 
int mPtrLen
 

Detailed Description

Definition at line 32 of file bDNA.h.

Member Enumeration Documentation

Enumerator
FDF_NONE 
FDF_STRUCT_NEQU 
FDF_STRUCT_EQU 

Definition at line 83 of file bDNA.h.

Constructor & Destructor Documentation

bDNA::bDNA ( )

Definition at line 31 of file bDNA.cpp.

bDNA::~bDNA ( )

Definition at line 38 of file bDNA.cpp.

Member Function Documentation

void bDNA::dumpTypeDefinitions ( )

Definition at line 546 of file bDNA.cpp.

bool bDNA::flagEqual ( int  dna_nr)

Definition at line 118 of file bDNA.cpp.

bool bDNA::flagNone ( int  dna_nr)

Definition at line 126 of file bDNA.cpp.

bool bDNA::flagNotEqual ( int  dna_nr)

Definition at line 111 of file bDNA.cpp.

int bDNA::getArraySize ( char *  str)

Definition at line 523 of file bDNA.cpp.

int bParse::bDNA::getArraySizeNew ( short  name)
inline

Definition at line 41 of file bDNA.h.

int bParse::bDNA::getElementSize ( short  type,
short  name 
)
inline

Definition at line 46 of file bDNA.h.

short bDNA::getLength ( int  ind)

Definition at line 74 of file bDNA.cpp.

char * bDNA::getName ( int  ind)

Definition at line 50 of file bDNA.cpp.

int bParse::bDNA::getNumNames ( ) const
inline

Definition at line 53 of file bDNA.h.

int bDNA::getNumStructs ( )

Definition at line 105 of file bDNA.cpp.

int bDNA::getPointerSize ( )

Definition at line 133 of file bDNA.cpp.

int bDNA::getReverseType ( short  type)

Definition at line 82 of file bDNA.cpp.

int bDNA::getReverseType ( const char *  type)

Definition at line 93 of file bDNA.cpp.

short * bDNA::getStruct ( int  ind)

Definition at line 66 of file bDNA.cpp.

char * bDNA::getType ( int  ind)

Definition at line 58 of file bDNA.cpp.

void bDNA::init ( char *  data,
int  len,
bool  swap = false 
)

Definition at line 348 of file bDNA.cpp.

void bDNA::initCmpFlags ( bDNA memDNA)

Definition at line 172 of file bDNA.cpp.

void bDNA::initRecurseCmpFlags ( int  i)
private

Definition at line 139 of file bDNA.cpp.

bool bDNA::lessThan ( bDNA other)

Definition at line 44 of file bDNA.cpp.

Member Data Documentation

btAlignedObjectArray<bNameInfo> bParse::bDNA::m_Names
private

Definition at line 94 of file bDNA.h.

btAlignedObjectArray<int> bParse::bDNA::mCMPFlags
private

Definition at line 92 of file bDNA.h.

int bParse::bDNA::mPtrLen
private

Definition at line 101 of file bDNA.h.

btHashMap<btHashInt, int> bParse::bDNA::mStructReverse
private

Definition at line 98 of file bDNA.h.

btAlignedObjectArray<short*> bParse::bDNA::mStructs
private

Definition at line 96 of file bDNA.h.

btAlignedObjectArray<short> bParse::bDNA::mTlens
private

Definition at line 97 of file bDNA.h.

btHashMap<btHashString,int> bParse::bDNA::mTypeLookup
private

Definition at line 99 of file bDNA.h.

btAlignedObjectArray<char*> bParse::bDNA::mTypes
private

Definition at line 95 of file bDNA.h.


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