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

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

Public Types

using value_type = T
 
using array_type = UT_Array< T >
 

Public Member Functions

 GusdDefaultArray (const T &defaultVal)
 
exint size () const
 
void Clear ()
 
bool IsConstant () const
 
bool IsVarying () const
 
T & GetDefault ()
 
const T & GetDefault () const
 
void SetDefault (const T &val)
 
void SetConstant (const T &val)
 Turn this into a constant array, with value val. More...
 
T & operator() (exint i)
 
const T & operator() (exint i) const
 
array_type & GetArray ()
 
const array_type & GetArray () 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 Function Documentation

void SetConstant ( const T &  val)
inline

Turn this into a constant array, with value val.

Definition at line 69 of file defaultArray.h.


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