10 #ifndef __GA_KnotVector_h__
11 #define __GA_KnotVector_h__
99 {
return insert(idx); }
101 {
return insert(t, i); }
108 unsigned int insert(
unsigned index)
110 unsigned int insert(
const T &
t,
unsigned int i)
GA_Size insertKnot(fpreal t, GA_Size i)
void copyMemory(const GA_KnotVectorT &from)
GLboolean GLboolean GLboolean GLboolean a
JSON reader class which handles parsing of JSON or bJSON files.
Class which writes ASCII or binary JSON streams.
GA_KnotVectorT(unsigned int sz=0)
bool jsonLoad(UT_JSONParser &p)
Load from a JSON stream.
exint GA_Size
Defines the bit width for index and offset types in GA.
GA_Size insertKnot(GA_Size idx)
UT_ValArray & operator=(const UT_ValArray< T > &src)
const T & getValue(GA_Size index) const
GA_KnotVectorT(unsigned int sz, unsigned int count)
int shift(GA_Size srcIdx, GA_Size destIdx, GA_Size howMany)
GA_KnotVectorT(const GA_KnotVectorT &a)
void setCapacityIfNeeded(exint min_capacity)
bool jsonSave(UT_JSONWriter &w) const
exint entries() const
Alias of size(). size() is preferred.
void setValue(GA_Size index, fpreal v)
GA_KnotVectorT & operator=(const GA_KnotVectorT &rhs)
Class to store JSON objects as C++ objects.
GLubyte GLubyte GLubyte GLubyte w
exint insert(exint index)