11 #ifndef __GT_GEOSupport__
12 #define __GT_GEOSupport__
41 , my32Bit(src.my32Bit)
42 , myMonotonic(src.myMonotonic)
56 void clear() { myList.clear(); }
62 exint newentries = myList.entries() + numtoadd;
63 if (newentries > myList.capacity() && !myList.isTrivial())
65 exint newcapacity =
SYSmax(newentries, UTbumpAlloc(myList.capacity()));
67 myList.reserve(newcapacity);
71 myList.setEntries(newentries,
false);
72 my32Bit = my32Bit && (myList.entries() <= (1<<30));
78 if (myList.entries() && offset < myList.last())
80 myList.append(offset);
81 my32Bit = my32Bit && (offset <
GA_Offset(1<<30));
83 void checkMonotonic();
85 bool isTrivial()
const {
return myList.isTrivial(); }
94 {
return sizeof(*this) + myList.getMemoryUsage(
false); }
109 void dump(
const char *msg=
"",
bool full=
true)
const;
142 if (myList.
size() == 0)
144 myMin = myMax = item;
148 myMin =
SYSmin(myMin, item);
149 myMax =
SYSmax(myMax, item);
153 bool is32Bit()
const {
return myMax < (1<<30) && myMin >= -(1<<30); }
177 void dump(
const char *msg=
"",
bool full=
true)
const;
213 if (myList.
size() == 0)
215 myMin = myMax = item;
219 myMin =
SYSmin(myMin, item);
220 myMax =
SYSmax(myMax, item);
224 bool is32Bit()
const {
return myMax < (1<<30) && myMin >= -(1<<30); }
239 void dump(
const char *msg=
"",
bool full=
true)
const;
ArrayType::iterator iterator
void setSizeIfNeeded(exint minsize)
void concat(const GT_GEOSizeList &src)
GLsizei const GLfloat * value
GA_Offset operator()(exint i) const
SYS_FORCE_INLINE void append(const T &item)
void setMin(GA_Size value)
void reserve(exint numtoadd, bool setentries=false)
GT_Size operator[](exint i) const
exint GA_Size
Defines the bit width for index and offset types in GA.
A range of elements in an index-map.
void dump(const char *msg="", bool full=true) const
Debug.
GLuint GLsizei const GLuint const GLintptr * offsets
void setMax(GA_Size value)
SYS_FORCE_INLINE void clear()
GT_DataArrayHandle allocateArray() const
GT_GEORLESizeList(const GT_GEORLESizeList &src)
void reserve(exint numtoadd, bool setentries=false)
SYS_FORCE_INLINE exint size() const
void setCapacityIfNeeded(exint min_capacity)
void append(GT_Size item)
SYS_FORCE_INLINE iterator begin() const
const GA_OffsetList & offsetList() const
void append(GA_Offset offset)
void set(exint i, GA_Offset value)
SYS_FORCE_INLINE iterator end() const
void append(GT_Size item)
void setMin(GA_Size value)
GA_Offset operator[](exint i) const
void concat(const GT_GEORLESizeList &src)
void set(exint i, GA_Size value)
GT_DataArrayHandle allocateArray() const
GT_Size operator()(exint i) const
GT_GEOSizeList(const GT_GEOSizeList &src)
Container class for all geometry.
GT_GEOOffsetList(const GT_GEOOffsetList &src)
void clear()
Resets list to an empty list.
void setMax(GA_Size value)
void dump(const char *msg="", bool full=true) const
Debug.
std::string OIIO_UTIL_API concat(string_view s, string_view t)
int64 getMemoryUsage() const