32 #ifndef _QORE_QORETYPE_H 34 #define _QORE_QORETYPE_H 46 DLLEXPORT
extern QoreNumberNode* ZeroNumber, * InfinityNumber, * NaNumber, * piNumber;
48 DLLEXPORT
extern QoreString NothingTypeString, NullTypeString, TrueString,
49 FalseString, EmptyHashString, EmptyListString;
51 DLLEXPORT
extern const QoreTypeInfo* anyTypeInfo,
69 *runTimeClosureTypeInfo,
70 *callReferenceTypeInfo,
81 *softAutoListTypeInfo,
84 *bigIntOrFloatTypeInfo,
85 *bigIntFloatOrNumberTypeInfo,
86 *floatOrNumberTypeInfo,
88 *bigIntOrNothingTypeInfo,
89 *floatOrNothingTypeInfo,
90 *numberOrNothingTypeInfo,
91 *stringOrNothingTypeInfo,
92 *boolOrNothingTypeInfo,
93 *binaryOrNothingTypeInfo,
94 *objectOrNothingTypeInfo,
95 *dateOrNothingTypeInfo,
96 *hashOrNothingTypeInfo,
97 *autoHashOrNothingTypeInfo,
98 *listOrNothingTypeInfo,
99 *autoListOrNothingTypeInfo,
100 *nullOrNothingTypeInfo,
101 *codeOrNothingTypeInfo,
102 *dataOrNothingTypeInfo,
103 *referenceOrNothingTypeInfo,
105 *softBinaryOrNothingTypeInfo,
106 *softBigIntOrNothingTypeInfo,
107 *softFloatOrNothingTypeInfo,
108 *softNumberOrNothingTypeInfo,
109 *softBoolOrNothingTypeInfo,
110 *softStringOrNothingTypeInfo,
111 *softDateOrNothingTypeInfo,
112 *softListOrNothingTypeInfo,
113 *softAutoListOrNothingTypeInfo,
114 *timeoutOrNothingTypeInfo;
156 enum qore_type_result_e {
167 DLLEXPORT
int testObjectClassAccess(
const QoreObject* obj,
const QoreClass* classtoaccess);
169 DLLEXPORT
const QoreClass* typeInfoGetUniqueReturnClass(
const QoreTypeInfo* typeInfo);
170 DLLEXPORT
bool typeInfoHasType(
const QoreTypeInfo* typeInfo);
171 DLLEXPORT
const char* typeInfoGetName(
const QoreTypeInfo* typeInfo);
172 DLLEXPORT
const QoreTypeInfo* typeInfoGetElementType(
const QoreTypeInfo* typeInfo);
173 DLLEXPORT
const TypedHashDecl* typeInfoGetTypedHash(
const QoreTypeInfo* typeInfo);
175 DLLEXPORT qore_type_result_e typeInfoAcceptsType(
const QoreTypeInfo* typeInfo,
const QoreTypeInfo* otherTypeInfo);
176 DLLEXPORT qore_type_result_e typeInfoReturnsType(
const QoreTypeInfo* typeInfo,
const QoreTypeInfo* otherTypeInfo);
183 DLLEXPORT
const QoreTypeInfo* qore_get_value_type(
const QoreTypeInfo* typeInfo);
185 DLLEXPORT
const QoreTypeInfo* qore_get_or_nothing_type(
const QoreTypeInfo* typeInfo);
188 DLLEXPORT
const QoreTypeInfo* qore_get_complex_hash_type(
const QoreTypeInfo* valueTypeInfo);
190 DLLEXPORT
const QoreTypeInfo* qore_get_complex_hash_or_nothing_type(
const QoreTypeInfo* valueTypeInfo);
192 DLLEXPORT
const QoreTypeInfo* qore_get_complex_list_type(
const QoreTypeInfo* valueTypeInfo);
194 DLLEXPORT
const QoreTypeInfo* qore_get_complex_list_or_nothing_type(
const QoreTypeInfo* valueTypeInfo);
196 DLLEXPORT
const QoreTypeInfo* qore_get_complex_softlist_type(
const QoreTypeInfo* valueTypeInfo);
198 DLLEXPORT
const QoreTypeInfo* qore_get_complex_softlist_or_nothing_type(
const QoreTypeInfo* valueTypeInfo);
200 DLLEXPORT
const QoreTypeInfo* qore_get_complex_reference_type(
const QoreTypeInfo* valueTypeInfo);
202 DLLEXPORT
const QoreTypeInfo* qore_get_complex_reference_or_nothing_type(
const QoreTypeInfo* valueTypeInfo);
205 DLLEXPORT
const QoreTypeInfo* qore_get_type_from_string(
const char* str,
ExceptionSink& xsink);
208 DLLEXPORT
const QoreClass* type_info_get_return_class(
const QoreTypeInfo* typeInfo);
210 #endif // _QORE_QORETYPE_H Qore's arbitrary-precision number value type, dynamically-allocated only, reference counted...
Definition: QoreNumberNode.h:51
This is the hash or associative list container type in Qore, dynamically allocated only...
Definition: QoreHashNode.h:50
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:57
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:81
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
This is the list container type in Qore, dynamically allocated only, reference counted.
Definition: QoreListNode.h:52
Qore's parse tree/value type for date-time values, reference-counted, dynamically-allocated only...
Definition: DateTimeNode.h:45
defines a Qore-language class
Definition: QoreClass.h:239
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:267
the implementation of Qore's object data type, reference counted, dynamically-allocated only ...
Definition: QoreObject.h:60
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
typed hash declaration
Definition: TypedHashDecl.h:44
DLLEXPORT void ref() const
increments the reference count
int16_t qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode) ...
Definition: common.h:70