HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GA_RWHandleT< T, typename SCALAR(T) > Class Template Reference

#include <GA_Handle.h>

+ Inheritance diagram for GA_RWHandleT< T, typename SCALAR(T) >:

Public Types

typedef void(* GAprobeAttribSetter )(GA_Attribute *atr, GA_Offset, int, T)
 
typedef GA_ROHandleT< TBase
 
typedef T BASETYPE
 
- Public Types inherited from GA_ROHandleT< T, SCALAR(T) >
typedef void(* GAprobeAttribGetter )(T &result, const GA_Attribute *atr, GA_Offset)
 
typedef T::value_type BASETYPE
 

Public Member Functions

 GA_RWHandleT ()
 
 GA_RWHandleT (GA_Attribute *attrib)
 
 GA_RWHandleT (GA_Detail *gdp, GA_AttributeOwner owner, const UT_StringRef &name, int minsize=1)
 
void operator= (GA_Attribute *attrib)
 
void bind (GA_Detail *gdp, GA_AttributeOwner owner, const UT_StringRef &name, int minsize=1)
 
SYS_FORCE_INLINE void bind (GA_Attribute *attrib, int minsize=1)
 
void bind (GA_ATINumeric *attrib, int minsize=1)
 
GA_AttributegetAttribute () const
 
void bumpDataId () const
 
SYS_FORCE_INLINE void set (GA_Offset off, T val) const
 
SYS_FORCE_INLINE void add (GA_Offset off, T val) const
 
SYS_FORCE_INLINE void set (GA_Offset off, int comp, T val) const
 
SYS_FORCE_INLINE void setV (GA_Offset off, const T *data, int size) const
 
SYS_FORCE_INLINE void add (GA_Offset off, int comp, T val) const
 
void setBlock (GA_Offset startoff, GA_Size nelements, const T *source, int sourcestride=1, int component=0) const
 
void setBlockFromIndices (GA_Index startidx, GA_Size nelements, const T *source, int sourcestride=1, int component=0) const
 
void makeConstant (T cval, int comp=-1) const
 
void makeConstantV (const T *cval, int size) const
 
void setPageConstant (GA_PageNum pagenum, const T *values) const
 
GA_ATINumericoperator-> () const
 
- Public Member Functions inherited from GA_ROHandleT< T, SCALAR(T) >
 GA_ROHandleT ()
 
 GA_ROHandleT (const GA_Attribute *attrib)
 
 GA_ROHandleT (const GA_Detail *gdp, GA_AttributeOwner owner, const UT_StringRef &name, int minsize=1)
 
void operator= (const GA_Attribute *attrib)
 
void bind (const GA_Detail *gdp, GA_AttributeOwner owner, const UT_StringRef &name, int minsize=1)
 
SYS_FORCE_INLINE void bind (const GA_Attribute *attrib, int minsize=1)
 
void bind (const GA_ATINumeric *attrib, int minsize=1)
 
const GA_AttributegetAttribute () const
 
bool isRational () const
 
void clear ()
 
SYS_FORCE_INLINE bool isValid () const
 
SYS_FORCE_INLINE bool isInvalid () const
 
SYS_FORCE_INLINE T get (GA_Offset off, int comp=0) const
 
void getBlock (GA_Offset startoff, GA_Size nelements, T *dest, int deststride=1, int component=0) const
 
void getBlockFromIndices (GA_Index startidx, GA_Size nelements, T *dest, int deststride=1, int component=0) const
 
SYS_FORCE_INLINE T operator() (GA_Offset off) const
 
SYS_FORCE_INLINE bool isPageConstant (GA_PageNum pagenum) const
 
bool operator== (const GA_ROHandleT< T > &handle) const
 
bool operator!= (const GA_ROHandleT< T > &handle) const
 
const GA_ATINumericoperator-> () const
 

Additional Inherited Members

- Static Public Attributes inherited from GA_ROHandleT< T, SCALAR(T) >
static const exint theTupleSize
 
- Protected Attributes inherited from GA_ROHandleT< T, SCALAR(T) >
GA_ATINumericmyAttrib
 
GA_PageArray< BASETYPE,
theTupleSize > * 
myExactMatch
 
GA_PageArray< typename
UT_StorageNum< BASETYPE >
::SecondGuess, theTupleSize > * 
myAlmostMatch
 

Detailed Description

template<typename T>
class GA_RWHandleT< T, typename SCALAR(T) >

Read-write handle for scalar attribute data.

Template Parameters
TReturn type for get methods

Definition at line 656 of file GA_Handle.h.

Member Typedef Documentation

template<typename T >
typedef GA_ROHandleT<T> GA_RWHandleT< T, typename SCALAR(T) >::Base

Definition at line 660 of file GA_Handle.h.

template<typename T >
typedef T GA_RWHandleT< T, typename SCALAR(T) >::BASETYPE

Definition at line 661 of file GA_Handle.h.

template<typename T >
typedef void(* GA_RWHandleT< T, typename SCALAR(T) >::GAprobeAttribSetter)(GA_Attribute *atr, GA_Offset, int, T)

Definition at line 659 of file GA_Handle.h.

Constructor & Destructor Documentation

template<typename T >
GA_RWHandleT< T, typename SCALAR(T) >::GA_RWHandleT ( )
inline

Definition at line 672 of file GA_Handle.h.

template<typename T >
GA_RWHandleT< T, typename SCALAR(T) >::GA_RWHandleT ( GA_Attribute attrib)
inline

Definition at line 676 of file GA_Handle.h.

template<typename T >
GA_RWHandleT< T, typename SCALAR(T) >::GA_RWHandleT ( GA_Detail gdp,
GA_AttributeOwner  owner,
const UT_StringRef name,
int  minsize = 1 
)

Member Function Documentation

template<typename T >
SYS_FORCE_INLINE void GA_RWHandleT< T, typename SCALAR(T) >::add ( GA_Offset  off,
T  val 
) const
inline

Definition at line 742 of file GA_Handle.h.

template<typename T >
SYS_FORCE_INLINE void GA_RWHandleT< T, typename SCALAR(T) >::add ( GA_Offset  off,
int  comp,
T  val 
) const
inline

Definition at line 806 of file GA_Handle.h.

template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::bind ( GA_Detail gdp,
GA_AttributeOwner  owner,
const UT_StringRef name,
int  minsize = 1 
)
template<typename T >
SYS_FORCE_INLINE void GA_RWHandleT< T, typename SCALAR(T) >::bind ( GA_Attribute attrib,
int  minsize = 1 
)
inline

Definition at line 690 of file GA_Handle.h.

template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::bind ( GA_ATINumeric attrib,
int  minsize = 1 
)
inline

Definition at line 694 of file GA_Handle.h.

template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::bumpDataId ( ) const
inline

Definition at line 718 of file GA_Handle.h.

template<typename T >
GA_Attribute* GA_RWHandleT< T, typename SCALAR(T) >::getAttribute ( ) const
inline

Definition at line 716 of file GA_Handle.h.

template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::makeConstant ( T  cval,
int  comp = -1 
) const
inline

Definition at line 835 of file GA_Handle.h.

template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::makeConstantV ( const T cval,
int  size 
) const
inline

Definition at line 840 of file GA_Handle.h.

template<typename T >
GA_ATINumeric* GA_RWHandleT< T, typename SCALAR(T) >::operator-> ( ) const
inline

Definition at line 858 of file GA_Handle.h.

template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::operator= ( GA_Attribute attrib)
inline

Definition at line 682 of file GA_Handle.h.

template<typename T >
SYS_FORCE_INLINE void GA_RWHandleT< T, typename SCALAR(T) >::set ( GA_Offset  off,
T  val 
) const
inline

Definition at line 724 of file GA_Handle.h.

template<typename T >
SYS_FORCE_INLINE void GA_RWHandleT< T, typename SCALAR(T) >::set ( GA_Offset  off,
int  comp,
T  val 
) const
inline

Definition at line 760 of file GA_Handle.h.

template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::setBlock ( GA_Offset  startoff,
GA_Size  nelements,
const T source,
int  sourcestride = 1,
int  component = 0 
) const

Copies attribute values from the source array into a contiguous block of offsets. NOTE: The block of offsets is assumed to have no holes, else data could be written to offsets that don't have corresponding elements.

template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::setBlockFromIndices ( GA_Index  startidx,
GA_Size  nelements,
const T source,
int  sourcestride = 1,
int  component = 0 
) const
template<typename T >
void GA_RWHandleT< T, typename SCALAR(T) >::setPageConstant ( GA_PageNum  pagenum,
const T values 
) const
inline

Sets all components of all elements of the specified page to the given values. NOTE: The length of values must be equal to the tuple size.

Definition at line 848 of file GA_Handle.h.

template<typename T >
SYS_FORCE_INLINE void GA_RWHandleT< T, typename SCALAR(T) >::setV ( GA_Offset  off,
const T data,
int  size 
) const
inline

Definition at line 778 of file GA_Handle.h.


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