38 #ifndef _CONSTANT_UNION_INCLUDED_ 39 #define _CONSTANT_UNION_INCLUDED_ 41 #include "../Include/Common.h" 42 #include "../Include/BaseTypes.h" 267 assert(
false &&
"Default missing");
378 assert(
false &&
"Default missing");
433 assert(
false &&
"Default missing");
452 default: assert(
false &&
"Default missing");
472 default: assert(
false &&
"Default missing");
492 default: assert(
false &&
"Default missing");
511 default: assert(
false &&
"Default missing");
522 switch (constant.
type) {
531 default: assert(
false &&
"Default missing");
535 switch (constant.
type) {
544 default: assert(
false &&
"Default missing");
548 switch (constant.
type) {
557 default: assert(
false &&
"Default missing");
561 switch (constant.
type) {
570 default: assert(
false &&
"Default missing");
574 switch (constant.
type) {
583 default: assert(
false &&
"Default missing");
587 switch (constant.
type) {
596 default: assert(
false &&
"Default missing");
600 switch (constant.
type) {
609 default: assert(
false &&
"Default missing");
613 switch (constant.
type) {
622 default: assert(
false &&
"Default missing");
625 default: assert(
false &&
"Default missing");
636 switch (constant.
type) {
645 default: assert(
false &&
"Default missing");
649 switch (constant.
type) {
658 default: assert(
false &&
"Default missing");
662 switch (constant.
type) {
671 default: assert(
false &&
"Default missing");
675 switch (constant.
type) {
684 default: assert(
false &&
"Default missing");
688 switch (constant.
type) {
697 default: assert(
false &&
"Default missing");
701 switch (constant.
type) {
710 default: assert(
false &&
"Default missing");
714 switch (constant.
type) {
723 default: assert(
false &&
"Default missing");
727 switch (constant.
type) {
736 default: assert(
false &&
"Default missing");
739 default: assert(
false &&
"Default missing");
758 default: assert(
false &&
"Default missing");
777 default: assert(
false &&
"Default missing");
796 default: assert(
false &&
"Default missing");
814 default: assert(
false &&
"Default missing");
826 default: assert(
false &&
"Default missing");
838 default: assert(
false &&
"Default missing");
892 for (
int i = 0; i <
size; ++i)
923 for (
size_t comp = 0; comp <
unionArray->size(); ++comp)
924 sum += (*
this)[comp].getDConst() * rhs[comp].getDConst();
938 #endif // _CONSTANT_UNION_INCLUDED_ TVector< TConstUnion > TConstUnionVector
Definition: ConstantUnion.h:932
int iConst
Definition: ConstantUnion.h:852
signed short i16Const
Definition: ConstantUnion.h:850
double dot(const TConstUnionArray &rhs)
Definition: ConstantUnion.h:918
Definition: BaseTypes.h:58
void setBConst(bool b)
Definition: ConstantUnion.h:106
int size() const
Definition: ConstantUnion.h:902
Definition: BaseTypes.h:53
bool operator!=(const TConstUnion &constant) const
Definition: ConstantUnion.h:323
GLuint GLfloat * val
Definition: glext.h:7847
Definition: BaseTypes.h:55
bool operator!=(const unsigned long long u) const
Definition: ConstantUnion.h:308
bool operator==(const int i) const
Definition: ConstantUnion.h:162
bool operator<(const TConstUnion &constant) const
Definition: ConstantUnion.h:383
TConstUnionArray(const TConstUnionArray &a)
Definition: ConstantUnion.h:888
const TString * getSConst() const
Definition: ConstantUnion.h:128
Definition: BaseTypes.h:49
GLuint start
Definition: glext.h:6292
Definition: BaseTypes.h:52
unsigned char u8Const
Definition: ConstantUnion.h:849
signed char i8Const
Definition: ConstantUnion.h:848
unsigned short getU16Const() const
Definition: ConstantUnion.h:121
int getIConst() const
Definition: ConstantUnion.h:122
void setUConst(unsigned int u)
Definition: ConstantUnion.h:82
GLsizeiptr size
Definition: glext.h:6559
bool empty() const
Definition: ConstantUnion.h:929
GLfloat f
Definition: glext.h:8207
void setSConst(const TString *s)
Definition: ConstantUnion.h:112
bool operator!=(const unsigned char u) const
Definition: ConstantUnion.h:278
GLdouble s
Definition: glext.h:6390
TConstUnion operator~() const
Definition: ConstantUnion.h:802
bool operator==(const signed char i) const
Definition: ConstantUnion.h:130
Definition: ConstantUnion.h:46
void setU8Const(unsigned char u)
Definition: ConstantUnion.h:58
void setI64Const(long long i64)
Definition: ConstantUnion.h:88
TConstUnionArray(const TConstUnionArray &a, int start, int size)
Definition: ConstantUnion.h:889
long long getI64Const() const
Definition: ConstantUnion.h:124
bool operator==(const TConstUnion &constant) const
Definition: ConstantUnion.h:210
TConstUnion operator<<(const TConstUnion &constant) const
Definition: ConstantUnion.h:631
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
bool operator==(const unsigned long long u64) const
Definition: ConstantUnion.h:186
bool operator!=(const signed short i) const
Definition: ConstantUnion.h:283
double dConst
Definition: ConstantUnion.h:857
TPoolAllocator & GetThreadPoolAllocator()
Definition: PoolAlloc.cpp:47
Definition: BaseTypes.h:51
Definition: BaseTypes.h:56
TBasicType type
Definition: ConstantUnion.h:861
GLenum type
Definition: glext.h:6233
bool operator!=(const signed char i) const
Definition: ConstantUnion.h:273
bool operator!=(const unsigned short u) const
Definition: ConstantUnion.h:288
long long i64Const
Definition: ConstantUnion.h:854
bool operator>(const TConstUnion &constant) const
Definition: ConstantUnion.h:328
void setI16Const(signed short i)
Definition: ConstantUnion.h:64
unsigned short u16Const
Definition: ConstantUnion.h:851
unsigned int uConst
Definition: ConstantUnion.h:853
bool operator==(const signed short i) const
Definition: ConstantUnion.h:146
const TString * sConst
Definition: ConstantUnion.h:858
bool operator==(const TConstUnionArray &rhs) const
Definition: ConstantUnion.h:905
TConstUnion operator+(const TConstUnion &constant) const
Definition: ConstantUnion.h:438
#define POOL_ALLOCATOR_NEW_DELETE(A)
Definition: Common.h:112
TBasicType getType() const
Definition: ConstantUnion.h:844
unsigned char getU8Const() const
Definition: ConstantUnion.h:119
TConstUnion operator||(const TConstUnion &constant) const
Definition: ConstantUnion.h:832
bool operator==(const unsigned int u) const
Definition: ConstantUnion.h:170
bool getBConst() const
Definition: ConstantUnion.h:127
TConstUnionArray(int size, const TConstUnion &val)
Definition: ConstantUnion.h:897
bool operator==(const bool b) const
Definition: ConstantUnion.h:202
TConstUnionArray(int size)
Definition: ConstantUnion.h:881
TConstUnion operator*(const TConstUnion &constant) const
Definition: ConstantUnion.h:478
void setI8Const(signed char i)
Definition: ConstantUnion.h:52
TConstUnion operator>>(const TConstUnion &constant) const
Definition: ConstantUnion.h:517
signed short getI16Const() const
Definition: ConstantUnion.h:120
bool bConst
Definition: ConstantUnion.h:856
TConstUnion operator-(const TConstUnion &constant) const
Definition: ConstantUnion.h:458
double getDConst() const
Definition: ConstantUnion.h:126
unsigned int getUConst() const
Definition: ConstantUnion.h:123
Definition: BaseTypes.h:66
GLuint index
Definition: glext.h:6671
void setU16Const(unsigned short u)
Definition: ConstantUnion.h:70
bool operator!=(const int i) const
Definition: ConstantUnion.h:293
const TConstUnion & operator[](size_t index) const
Definition: ConstantUnion.h:904
uint64_t u64
64bit unsigned integer
Definition: gctypes.h:20
TConstUnion operator|(const TConstUnion &constant) const
Definition: ConstantUnion.h:764
bool operator!=(const long long i) const
Definition: ConstantUnion.h:303
bool operator==(const double d) const
Definition: ConstantUnion.h:194
TConstUnion operator &&(const TConstUnion &constant) const
Definition: ConstantUnion.h:820
TConstUnion operator^(const TConstUnion &constant) const
Definition: ConstantUnion.h:783
bool operator!=(const float f) const
Definition: ConstantUnion.h:313
TBasicType
Definition: BaseTypes.h:46
bool operator==(const unsigned short u) const
Definition: ConstantUnion.h:154
signed char getI8Const() const
Definition: ConstantUnion.h:118
bool operator!=(const bool b) const
Definition: ConstantUnion.h:318
Definition: BaseTypes.h:59
TConstUnionVector * unionArray
Definition: ConstantUnion.h:933
Definition: ConstantUnion.h:874
bool operator!=(const TConstUnionArray &rhs) const
Definition: ConstantUnion.h:916
bool operator==(const unsigned char u) const
Definition: ConstantUnion.h:138
Definition: BaseTypes.h:54
bool operator!=(const unsigned int u) const
Definition: ConstantUnion.h:298
bool operator==(const long long i64) const
Definition: ConstantUnion.h:178
TConstUnion & operator[](size_t index)
Definition: ConstantUnion.h:903
TConstUnion operator &(const TConstUnion &constant) const
Definition: ConstantUnion.h:745
void setDConst(double d)
Definition: ConstantUnion.h:100
void setIConst(int i)
Definition: ConstantUnion.h:76
virtual ~TConstUnionArray()
Definition: ConstantUnion.h:879
unsigned long long getU64Const() const
Definition: ConstantUnion.h:125
Definition: lobject.h:303
TConstUnion operator%(const TConstUnion &constant) const
Definition: ConstantUnion.h:498
Definition: BaseTypes.h:57
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844
void setU64Const(unsigned long long u64)
Definition: ConstantUnion.h:94
unsigned long long u64Const
Definition: ConstantUnion.h:855