41 #ifndef _ARRAYS_INCLUDED 42 #define _ARRAYS_INCLUDED 64 if (
node ==
nullptr || rhs.
node ==
nullptr)
91 if (
from.sizes ==
nullptr)
103 if (
sizes ==
nullptr)
105 return (
int)
sizes->size();
110 assert(
sizes !=
nullptr &&
sizes->size() > 0);
111 return sizes->front().size;
116 assert(
sizes !=
nullptr &&
sizes->size() > 0);
117 return sizes->front().node;
122 assert(
sizes !=
nullptr);
124 assert(
sizes->front().node ==
nullptr);
132 sizes->push_back(pair);
143 assert(
sizes !=
nullptr &&
sizes->size() > 0);
144 if (
sizes->size() == 1)
156 assert(
sizes ==
nullptr);
157 if (rhs.
size() > 1) {
165 assert(
sizes !=
nullptr && (
int)
sizes->size() > i);
166 return (*
sizes)[i].size;
171 assert(
sizes !=
nullptr && (
int)
sizes->size() > i);
172 assert((*
sizes)[i].node ==
nullptr);
173 (*sizes)[i].size =
size;
178 assert(
sizes !=
nullptr && (
int)
sizes->size() > i);
179 return (*
sizes)[i].node;
197 if (
sizes ==
nullptr)
247 for (
int d = 0; d <
sizes.size(); ++d) {
264 for (
int d = 1; d <
sizes.size(); ++d) {
273 for (
int d = 1; d <
sizes.size(); ++d) {
282 for (
int d = 1; d <
sizes.size(); ++d) {
283 if (
sizes.getDimNode(d) !=
nullptr)
291 return sizes.getDimNode(0) !=
nullptr;
299 assert(
sizes.size() == 0);
309 for (
int d = 1; d <
sizes.size(); ++d) {
339 #endif // _ARRAYS_INCLUDED_ TIntermTyped * node
Definition: arrays.h:59
void changeOuterSize(int s)
Definition: arrays.h:259
bool clearInnerUnsized()
Definition: arrays.h:271
void alloc()
Definition: arrays.h:195
void addInnerSize()
Definition: arrays.h:254
int getDimSize(int dim) const
Definition: arrays.h:239
void pop_front()
Definition: arrays.h:141
void dealloc()
Definition: arrays.h:200
TArraySizes & operator=(const TArraySizes &from)
Definition: arrays.h:228
Unknown compiler Device disconnected from port File already exists Saving to backup buffer Got connection from
Definition: msg_hash_ar.h:34
void changeFront(unsigned int s)
Definition: arrays.h:120
GLsizeiptr size
Definition: glext.h:6559
bool isVariablyIndexed() const
Definition: arrays.h:319
GLdouble s
Definition: glext.h:6390
bool SameSpecializationConstants(TIntermTyped *, TIntermTyped *)
Definition: intermediate.h:1669
unsigned int getDimSize(int i) const
Definition: arrays.h:163
int size() const
Definition: arrays.h:101
void updateImplicitSize(int s)
Definition: arrays.h:261
TPoolAllocator & GetThreadPoolAllocator()
Definition: PoolAlloc.cpp:47
virtual ~TSmallArrayVector()
Definition: arrays.h:86
int getOuterSize() const
Definition: arrays.h:242
void setDimSize(int i, unsigned int size) const
Definition: arrays.h:169
TIntermTyped * getDimNode(int i) const
Definition: arrays.h:176
bool operator==(const TSmallArrayVector &rhs) const
Definition: arrays.h:182
void copyDereferenced(const TArraySizes &rhs)
Definition: arrays.h:297
void setVariablyIndexed()
Definition: arrays.h:318
void push_back(unsigned int e, TIntermTyped *n)
Definition: arrays.h:128
TSmallArrayVector sizes
Definition: arrays.h:325
void setDimSize(int dim, int size)
Definition: arrays.h:241
void push_back(const TSmallArrayVector &newDims)
Definition: arrays.h:135
TIntermTyped * frontNode() const
Definition: arrays.h:114
#define POOL_ALLOCATOR_NEW_DELETE(A)
Definition: Common.h:112
TVector< TArraySize > * sizes
Definition: arrays.h:206
bool isOuterSpecialization()
Definition: arrays.h:289
TIntermTyped * getOuterNode() const
Definition: arrays.h:243
bool operator==(const TArraySizes &rhs)
Definition: arrays.h:321
const int UnsizedArraySize
Definition: arrays.h:49
TSmallArrayVector()
Definition: arrays.h:85
bool operator==(const TArraySize &rhs) const
Definition: arrays.h:60
TSmallArrayVector & operator=(const TSmallArrayVector &from)
Definition: arrays.h:89
bool operator!=(const TSmallArrayVector &rhs) const
Definition: arrays.h:190
bool operator!=(const TArraySizes &rhs)
Definition: arrays.h:322
void dereference()
Definition: arrays.h:296
unsigned int size
Definition: arrays.h:58
int getCumulativeSize() const
Definition: arrays.h:244
int getNumDims() const
Definition: arrays.h:238
void addInnerSize(TArraySize pair)
Definition: arrays.h:257
void addInnerSizes(const TArraySizes &s)
Definition: arrays.h:258
void addInnerSize(int s)
Definition: arrays.h:255
bool hasUnsized() const
Definition: arrays.h:294
bool variablyIndexed
Definition: arrays.h:334
bool isInnerUnsized() const
Definition: arrays.h:262
int implicitArraySize
Definition: arrays.h:333
TArraySizes()
Definition: arrays.h:225
void addInnerSize(int s, TIntermTyped *n)
Definition: arrays.h:256
int getImplicitSize() const
Definition: arrays.h:260
bool sameInnerArrayness(const TArraySizes &rhs) const
Definition: arrays.h:304
bool isSized() const
Definition: arrays.h:295
GLuint GLsizei const GLuint const GLintptr const GLsizeiptr * sizes
Definition: glsym_gl.h:634
bool isInnerSpecialization() const
Definition: arrays.h:280
#define false
Definition: ordinals.h:83
Definition: intermediate.h:1042
void copyNonFront(const TSmallArrayVector &rhs)
Definition: arrays.h:154
GLdouble n
Definition: glext.h:8396
TIntermTyped * getDimNode(int dim) const
Definition: arrays.h:240
unsigned int frontSize() const
Definition: arrays.h:108