GA_AttributeDict Class Reference

A symbol table of attributes to ease backward compatibility In the GB/GEO/GU library code would often pass around a GB_AttributeDict around. The GA library really only requires a symbol table of attributes since the attributes are managed by the GA_AttributeSet. This class is really just a symbol table wrapper to ease backward compatibility. More...

#include <GA_AttributeDict.h>

List of all members.

Classes

class  iterator

Public Types

typedef int(* AttributeTraverseCallback )(GA_Attribute *, const char *, void *)
typedef UT_OrderedIterator
< GA_Attribute *, iterator
ordered_iterator
 Iterator which traverses attributes in given order.

Public Member Functions

 GA_AttributeDict ()
 ~GA_AttributeDict ()
int64 getMemoryUsage () const
 Report memory usage.
GA_AttributeProxyfindProxy (GA_AttributeScope scope, const char *name) const
GA_AttributeProxyfindProxyByFullName (const char *name) const
GA_Attributefind (GA_AttributeScope scope, const char *name) const
GA_AttributefindByFullName (const char *name) const
void addByFullName (const char *name, GA_AttributeProxy *proxy)
int removeByFullName (const char *name)
void clear ()
uint entries () const
uint entries (GA_AttributeScope scope) const
uint empty () const
uint empty (GA_AttributeScope scope) const
int traverseConst (AttributeTraverseCallback F, void *data) const
void setMinLoadFactor (float minload)
void reserveNewSymbolTableSpace (int n)
const GA_AttributeSetgetSet () const
GA_AttributeSetgetSet ()
iterator begin (GA_AttributeScope scope=GA_SCOPE_INVALID) const
iterator end (GA_AttributeScope scope=GA_SCOPE_INVALID) const
ordered_iterator obegin (GA_AttributeScope scope=GA_SCOPE_INVALID) const
ordered_iterator oend (GA_AttributeScope scope=GA_SCOPE_INVALID) const

Static Public Member Functions

static int compareAlpha (GA_Attribute *const *a, GA_Attribute *const *b)


Detailed Description

A symbol table of attributes to ease backward compatibility In the GB/GEO/GU library code would often pass around a GB_AttributeDict around. The GA library really only requires a symbol table of attributes since the attributes are managed by the GA_AttributeSet. This class is really just a symbol table wrapper to ease backward compatibility.
Examples:

VRAY/VRAY_DemoSprite.C.

Definition at line 35 of file GA_AttributeDict.h.


Member Typedef Documentation

typedef int(* GA_AttributeDict::AttributeTraverseCallback)(GA_Attribute *, const char *, void *)

Definition at line 105 of file GA_AttributeDict.h.

Iterator which traverses attributes in given order.

Definition at line 201 of file GA_AttributeDict.h.


Constructor & Destructor Documentation

GA_AttributeDict::GA_AttributeDict (  )  [inline]

Definition at line 38 of file GA_AttributeDict.h.

GA_AttributeDict::~GA_AttributeDict (  )  [inline]

Definition at line 39 of file GA_AttributeDict.h.


Member Function Documentation

void GA_AttributeDict::addByFullName ( const char *  name,
GA_AttributeProxy proxy 
) [inline]

Definition at line 78 of file GA_AttributeDict.h.

iterator GA_AttributeDict::begin ( GA_AttributeScope  scope = GA_SCOPE_INVALID  )  const [inline]

Unordered (fastest) iteration

Examples:
field3d/f3d_io.C, SOP/SOP_PrimVOP.C, and VRAY/VRAY_DemoSprite.C.

Definition at line 205 of file GA_AttributeDict.h.

void GA_AttributeDict::clear (  )  [inline]

Definition at line 82 of file GA_AttributeDict.h.

static int GA_AttributeDict::compareAlpha ( GA_Attribute *const *  a,
GA_Attribute *const *  b 
) [inline, static]

Definition at line 187 of file GA_AttributeDict.h.

uint GA_AttributeDict::empty ( GA_AttributeScope  scope  )  const [inline]

Definition at line 102 of file GA_AttributeDict.h.

uint GA_AttributeDict::empty (  )  const [inline]

Definition at line 100 of file GA_AttributeDict.h.

iterator GA_AttributeDict::end ( GA_AttributeScope  scope = GA_SCOPE_INVALID  )  const [inline]

Unordered (fastest) iteration

Definition at line 207 of file GA_AttributeDict.h.

uint GA_AttributeDict::entries ( GA_AttributeScope  scope  )  const [inline]

Definition at line 87 of file GA_AttributeDict.h.

uint GA_AttributeDict::entries (  )  const [inline]

Definition at line 85 of file GA_AttributeDict.h.

GA_Attribute* GA_AttributeDict::find ( GA_AttributeScope  scope,
const char *  name 
) const

GA_Attribute* GA_AttributeDict::findByFullName ( const char *  name  )  const [inline]

Definition at line 71 of file GA_AttributeDict.h.

GA_AttributeProxy* GA_AttributeDict::findProxy ( GA_AttributeScope  scope,
const char *  name 
) const

GA_AttributeProxy* GA_AttributeDict::findProxyByFullName ( const char *  name  )  const [inline]

Definition at line 60 of file GA_AttributeDict.h.

int64 GA_AttributeDict::getMemoryUsage ( void   )  const [inline]

Report memory usage.

Definition at line 48 of file GA_AttributeDict.h.

GA_AttributeSet& GA_AttributeDict::getSet (  )  [inline]

Get access to the containing attribute set.

Definition at line 44 of file GA_AttributeDict.h.

const GA_AttributeSet& GA_AttributeDict::getSet (  )  const [inline]

Get access to the containing attribute set.

Definition at line 43 of file GA_AttributeDict.h.

ordered_iterator GA_AttributeDict::obegin ( GA_AttributeScope  scope = GA_SCOPE_INVALID  )  const [inline]

Ordered iteration. This traverses attributes in a fixed order

Definition at line 213 of file GA_AttributeDict.h.

ordered_iterator GA_AttributeDict::oend ( GA_AttributeScope  scope = GA_SCOPE_INVALID  )  const [inline]

Ordered iteration. This traverses attributes in a fixed order

Definition at line 218 of file GA_AttributeDict.h.

int GA_AttributeDict::removeByFullName ( const char *  name  )  [inline]

Definition at line 80 of file GA_AttributeDict.h.

void GA_AttributeDict::reserveNewSymbolTableSpace ( int  n  )  [inline]

Definition at line 228 of file GA_AttributeDict.h.

void GA_AttributeDict::setMinLoadFactor ( float  minload  )  [inline]

Definition at line 227 of file GA_AttributeDict.h.

int GA_AttributeDict::traverseConst ( AttributeTraverseCallback  F,
void *  data 
) const [inline]

Definition at line 106 of file GA_AttributeDict.h.


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

Generated on Thu Jan 31 00:30:38 2013 for HDK by  doxygen 1.5.9