11 #ifndef __GA_Defaults__
12 #define __GA_Defaults__
26 #define GA_DEFAULT_BUFSIZE 4
28 #define USE_UT_DEFAULTS 1
86 myData.myInt = myBuffer.myInt;
87 myBuffer.myInt[0] =
value;
98 myData.myInt = myBuffer.myInt;
99 myBuffer.myInt[0] =
value;
111 myData.myReal = myBuffer.myReal;
112 myBuffer.myReal[0] =
value;
123 myData.myReal = myBuffer.myReal;
124 myBuffer.myReal[0] =
value;
160 { ctorInit();
copy(src); }
165 {
copy(src);
return *
this; }
188 myData.myInt = myBuffer.myInt;
190 myData.myInt[0] = src.myData.myInt[0];
191 myData.myInt[1] = src.myData.myInt[1];
192 myData.myInt[2] = src.myData.myInt[2];
193 myData.myInt[3] = src.myData.myInt[3];
194 myStorage = src.myStorage;
199 switch (src.myStorage)
202 set(src.myData.myInt, src.mySize);
205 set(src.myData.myReal, src.mySize);
306 UT_ASSERT(myData.myInt != myBuffer.myInt);
307 delete [] myData.myInt;
310 UT_ASSERT(myData.myReal != myBuffer.myReal);
311 delete [] myData.myReal;
#define SYS_STATIC_ASSERT(expr)
GA_Defaults(const int64 *values, int count)
GA_Defaults()
Default constructor – the default will be 0.
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
Class which stores the default values for a GA_Attribute.
getFileOption("OpenEXR:storage") storage
GA_Defaults & operator=(const GA_Defaults &src)
GLsizei const GLfloat * value
int64 getI(exint i=0) const
GA_Defaults(fpreal64 value)
Construct by repeating the value.
JSON reader class which handles parsing of JSON or bJSON files.
#define GA_DEFAULT_BUFSIZE
Class which writes ASCII or binary JSON streams.
void guessFromName(const UT_StringRef &name, int tuple_size)
GA_Defaults(const GA_Defaults &src)
Copy constructor.
bool jsonSave(UT_JSONWriter &w) const
SYS_FORCE_INLINE void copy(const GA_Defaults &src)
Copy values from another set of defaults.
SYS_FORCE_INLINE int size() const
GA_Defaults(const fpreal64 *values, int count)
bool jsonLoad(UT_JSONParser &p)
Load data from a JSON stream.
GLuint const GLchar * name
A map of string to various well defined value types.
int64 getMemoryUsage(bool inclusive) const
fpreal64 getF(exint i=0) const
GLenum GLsizei GLsizei GLint * values
GA_Defaults(fpreal32 value)
GA_Defaults(const fpreal32 *values, int count)
void set(const int32 *values, int count)
Set defaults to the list of integer values.
GLubyte GLubyte GLubyte GLubyte w
SYS_FORCE_INLINE void clear()
GA_Defaults(const int32 *values, int count)
SYS_FORCE_INLINE exint getTupleSize() const
void saveToOptions(UT_Options &options, bool always=true) const