HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GusdDefaultArray< T > Class Template Reference

#include <defaultArray.h>

Public Types

using value_type = T
 
using array_type = UT_Array< T >
 

Public Member Functions

 GusdDefaultArray ()
 
 GusdDefaultArray (const T &defaultVal)
 
exint size () const
 
void Clear ()
 
bool IsConstant () const
 
bool IsVarying () const
 
TGetDefault ()
 
const TGetDefault () const
 
void SetDefault (const T &val)
 
void SetConstant (const T &val)
 Turn this into a constant array, with value val. More...
 
Toperator() (exint i)
 
const Toperator() (exint i) const
 
array_typeGetArray ()
 
const array_typeGetArray () const
 

Detailed Description

template<typename T>
class GusdDefaultArray< T >

Simple array wrapper, providing an array that may either hold a single constant value, or an array of values.

Definition at line 38 of file defaultArray.h.

Member Typedef Documentation

template<typename T>
using GusdDefaultArray< T >::array_type = UT_Array<T>

Definition at line 42 of file defaultArray.h.

template<typename T>
using GusdDefaultArray< T >::value_type = T

Definition at line 41 of file defaultArray.h.

Constructor & Destructor Documentation

template<typename T>
GusdDefaultArray< T >::GusdDefaultArray ( )
inline

Definition at line 44 of file defaultArray.h.

template<typename T>
GusdDefaultArray< T >::GusdDefaultArray ( const T defaultVal)
inline

Definition at line 50 of file defaultArray.h.

Member Function Documentation

template<typename T>
void GusdDefaultArray< T >::Clear ( )
inline

Definition at line 56 of file defaultArray.h.

template<typename T>
array_type& GusdDefaultArray< T >::GetArray ( )
inline

Definition at line 81 of file defaultArray.h.

template<typename T>
const array_type& GusdDefaultArray< T >::GetArray ( ) const
inline

Definition at line 83 of file defaultArray.h.

template<typename T>
T& GusdDefaultArray< T >::GetDefault ( )
inline

Definition at line 63 of file defaultArray.h.

template<typename T>
const T& GusdDefaultArray< T >::GetDefault ( ) const
inline

Definition at line 64 of file defaultArray.h.

template<typename T>
bool GusdDefaultArray< T >::IsConstant ( ) const
inline

Definition at line 59 of file defaultArray.h.

template<typename T>
bool GusdDefaultArray< T >::IsVarying ( ) const
inline

Definition at line 61 of file defaultArray.h.

template<typename T>
T& GusdDefaultArray< T >::operator() ( exint  i)
inline

Definition at line 75 of file defaultArray.h.

template<typename T>
const T& GusdDefaultArray< T >::operator() ( exint  i) const
inline

Definition at line 78 of file defaultArray.h.

template<typename T>
void GusdDefaultArray< T >::SetConstant ( const T val)
inline

Turn this into a constant array, with value val.

Definition at line 69 of file defaultArray.h.

template<typename T>
void GusdDefaultArray< T >::SetDefault ( const T val)
inline

Definition at line 66 of file defaultArray.h.

template<typename T>
exint GusdDefaultArray< T >::size ( void  ) const
inline

Definition at line 53 of file defaultArray.h.


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