43 #include "as_tokendef.h" 44 #include "as_string.h" 70 static asCDataType CreatePrimitive(eTokenType tt,
bool isConst);
76 int MakeHandle(
bool b,
bool acceptHandleForScope =
false);
78 int MakeReference(
bool b);
79 int MakeReadOnly(
bool b);
80 int MakeHandleToConst(
bool b);
81 void SetIfHandleThenConst(
bool b) {
82 ifHandleThenConst = b;
84 bool HasIfHandleThenConst()
const {
85 return ifHandleThenConst;
88 bool IsTemplate()
const;
89 bool IsScriptObject()
const;
90 bool IsPrimitive()
const;
91 bool IsMathType()
const;
92 bool IsObject()
const;
93 bool IsReference()
const {
99 bool IsReadOnly()
const;
100 bool IsIntegerType()
const;
101 bool IsUnsignedType()
const;
102 bool IsFloatType()
const;
103 bool IsDoubleType()
const;
104 bool IsBooleanType()
const;
105 bool IsObjectHandle()
const {
106 return isObjectHandle;
108 bool IsHandleToAuto()
const {
109 return isAuto && isObjectHandle;
111 bool IsHandleToConst()
const;
112 bool IsArrayType()
const;
113 bool IsEnumType()
const;
114 bool IsAnyType()
const {
115 return tokenType == ttQuestion;
117 bool IsHandleToAsHandleType()
const {
118 return isHandleToAsHandleType;
120 bool IsAbstractClass()
const;
121 bool IsInterface()
const;
122 bool IsFuncdef()
const;
124 bool IsObjectConst()
const;
127 bool IsEqualExceptRefAndConst(
const asCDataType &)
const;
128 bool IsEqualExceptConst(
const asCDataType &)
const;
129 bool IsNullHandle()
const;
131 bool SupportHandles()
const;
132 bool CanBeInstantiated()
const;
133 bool CanBeCopied()
const;
138 asCDataType GetSubType(asUINT subtypeIndex = 0)
const;
139 eTokenType GetTokenType()
const {
146 int GetSizeOnStackDWords()
const;
147 int GetSizeInMemoryBytes()
const;
148 int GetSizeInMemoryDWords()
const;
149 #ifdef WIP_16BYTE_ALIGN 150 int GetAlignment()
const;
153 void SetTokenType(eTokenType tt) {
166 eTokenType tokenType;
174 bool isObjectHandle: 1;
175 bool isConstHandle: 1;
177 bool isHandleToAsHandleType: 1;
178 bool ifHandleThenConst: 1;
Definition: as_module.h:93
Definition: as_typeinfo.h:64
Definition: as_scriptfunction.h:146
Definition: as_objecttype.h:100
Definition: as_namespace.h:39
Definition: as_typeinfo.h:263
Definition: as_datatype.h:60
Definition: as_objecttype.h:52
Definition: as_scriptengine.h:64
Definition: as_string.h:41