GA_PrimitiveTypeId Class Reference

#include <GA_PrimitiveTypeId.h>

List of all members.

Public Member Functions

 GA_PrimitiveTypeId ()
 Default c-tor.
 GA_PrimitiveTypeId (const GA_PrimitiveTypeId &src)
 Copy c-tor.
 GA_PrimitiveTypeId (int id)
 Assign from a factory type.
 ~GA_PrimitiveTypeId ()
 Destructor.
GA_PrimitiveTypeIdoperator= (const GA_PrimitiveTypeId &src)
 Assignment operator.
int get () const
bool operator== (int factory_id) const
bool operator!= (int factory_id) const
bool operator== (const GA_PrimitiveTypeId &src) const
bool operator!= (const GA_PrimitiveTypeId &src) const


Detailed Description

Each primitive type is given a unique ID at run time. There are a number of pre-defined factory types (see GEO_PrimType.h)
Examples:

tetprim/GT_PrimTetra.C, tetprim/GT_PrimTetra.h, and tetprim/GU_PrimTetra.h.

Definition at line 25 of file GA_PrimitiveTypeId.h.


Constructor & Destructor Documentation

GA_PrimitiveTypeId::GA_PrimitiveTypeId (  )  [inline]

Default c-tor.

Definition at line 29 of file GA_PrimitiveTypeId.h.

GA_PrimitiveTypeId::GA_PrimitiveTypeId ( const GA_PrimitiveTypeId src  )  [inline]

Copy c-tor.

Definition at line 33 of file GA_PrimitiveTypeId.h.

GA_PrimitiveTypeId::GA_PrimitiveTypeId ( int  id  )  [inline]

Assign from a factory type.

Definition at line 37 of file GA_PrimitiveTypeId.h.

GA_PrimitiveTypeId::~GA_PrimitiveTypeId (  )  [inline]

Destructor.

Definition at line 41 of file GA_PrimitiveTypeId.h.


Member Function Documentation

int GA_PrimitiveTypeId::get (  )  const [inline]

Return the integer value for the identifier. This can be used in switches for factory types.

Definition at line 53 of file GA_PrimitiveTypeId.h.

bool GA_PrimitiveTypeId::operator!= ( const GA_PrimitiveTypeId src  )  const [inline]

Compare to other primitive id's

Definition at line 66 of file GA_PrimitiveTypeId.h.

bool GA_PrimitiveTypeId::operator!= ( int  factory_id  )  const [inline]

Compare the id to a "factory" primitive type (see GEO_PrimType.h)

Definition at line 59 of file GA_PrimitiveTypeId.h.

GA_PrimitiveTypeId& GA_PrimitiveTypeId::operator= ( const GA_PrimitiveTypeId src  )  [inline]

Assignment operator.

Definition at line 45 of file GA_PrimitiveTypeId.h.

bool GA_PrimitiveTypeId::operator== ( const GA_PrimitiveTypeId src  )  const [inline]

Compare to other primitive id's

Definition at line 64 of file GA_PrimitiveTypeId.h.

bool GA_PrimitiveTypeId::operator== ( int  factory_id  )  const [inline]

Compare the id to a "factory" primitive type (see GEO_PrimType.h)

Definition at line 57 of file GA_PrimitiveTypeId.h.


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

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