GB_AttributeTable Class Reference

#include <GB_AttributeTable.h>

Inheritance diagram for GB_AttributeTable:

GB_AttributeDict UT_LinkList

List of all members.

Public Member Functions

 GB_AttributeTable ()
 ~GB_AttributeTable ()
int append (const char *n, int s, GB_AttribType type, GB_AttribTypeInfo type_info, const void *defValue)
int appendClone (const GB_Attribute *src)
void destroy (const char *name, int size, GB_AttribType type)
void destroy (const char *name, GB_AttribType type)
void clearAndDestroy (void)
void changeDataSize (int s)
int grow (const char *n, int oldsize, GB_AttribType type, unsigned int addedsize)
int shrink (const char *n, int oldsize, GB_AttribType type, unsigned int removedsize, int remove_offset)
void SYS_DEPRECATED * getAttribData (int n) const
template<typename T >
T * castAttribData (int n)
template<typename T >
const T * castAttribData (int n) const
void sortAs (const GB_AttributeDict &)
int save (ostream &os, int binary) const
bool load (UT_IStream &is)
const GB_AttributeDatagetAttrib () const
GB_AttributeDatagetAttrib ()


Detailed Description

Definition at line 28 of file GB_AttributeTable.h.


Constructor & Destructor Documentation

GB_AttributeTable::GB_AttributeTable (  )  [inline]

Definition at line 31 of file GB_AttributeTable.h.

GB_AttributeTable::~GB_AttributeTable (  ) 


Member Function Documentation

int GB_AttributeTable::append ( const char *  n,
int  s,
GB_AttribType  type,
GB_AttribTypeInfo  type_info,
const void *  defValue 
)

int GB_AttributeTable::appendClone ( const GB_Attribute src  ) 

template<typename T >
const T* GB_AttributeTable::castAttribData ( int  n  )  const [inline]

Definition at line 71 of file GB_AttributeTable.h.

template<typename T >
T* GB_AttributeTable::castAttribData ( int  n  )  [inline]

Examples:
SOP/SOP_DetailAttrib.C.

Definition at line 68 of file GB_AttributeTable.h.

void GB_AttributeTable::changeDataSize ( int  s  )  [inline]

Definition at line 49 of file GB_AttributeTable.h.

void GB_AttributeTable::clearAndDestroy ( void   )  [inline]

Reimplemented from GB_AttributeDict.

Definition at line 43 of file GB_AttributeTable.h.

void GB_AttributeTable::destroy ( const char *  name,
GB_AttribType  type 
)

void GB_AttributeTable::destroy ( const char *  name,
int  size,
GB_AttribType  type 
)

GB_AttributeData& GB_AttributeTable::getAttrib (  )  [inline]

Definition at line 93 of file GB_AttributeTable.h.

const GB_AttributeData& GB_AttributeTable::getAttrib (  )  const [inline]

Definition at line 92 of file GB_AttributeTable.h.

void SYS_DEPRECATED* GB_AttributeTable::getAttribData ( int  n  )  const [inline]

Definition at line 64 of file GB_AttributeTable.h.

int GB_AttributeTable::grow ( const char *  n,
int  oldsize,
GB_AttribType  type,
unsigned int  addedsize 
)

bool GB_AttributeTable::load ( UT_IStream is  )  [inline]

Definition at line 85 of file GB_AttributeTable.h.

int GB_AttributeTable::save ( ostream &  os,
int  binary 
) const [inline]

Definition at line 81 of file GB_AttributeTable.h.

int GB_AttributeTable::shrink ( const char *  n,
int  oldsize,
GB_AttribType  type,
unsigned int  removedsize,
int  remove_offset 
)

void GB_AttributeTable::sortAs ( const GB_AttributeDict  )  [inline, virtual]

Sort the attributes into a specific order. Basically used for making two details mergable. Attributes will be added if they don't already exist. At the conclusion, the attribute list will be identical to the table...

Implements GB_AttributeDict.

Definition at line 77 of file GB_AttributeTable.h.


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

Generated on Thu May 24 00:09:36 2012 for HDK by  doxygen 1.5.9