#include <as_scriptengine.h>
Inherits asIScriptEngine.
Definition at line 76 of file as_scriptengine.h.
| asCScriptEngine::asCScriptEngine | ( | ) |
Definition at line 317 of file as_scriptengine.cpp.
References asCThreadManager::AddRef(), asASSERT, asNEW, configFailed, asCDataType::CreatePrimitive(), currentGroup, defaultArrayObjectType, defaultGroup, asCObjectType::engine, asCGarbageCollector::engine, ep, gc, GetTypeIdFromDataType(), initialContextStackSize, isBuilding, isPrepared, jitCompiler, lastModule, msgCallback, asCArray< T >::PushLast(), refCount, RegisterArrayObject(), RegisterScriptObject(), scriptFunctions, scriptTypeBehaviours, asCAtomic::set(), stringFactory, threadManager, ttBool, ttDouble, ttFloat, ttInt, ttInt16, ttInt64, ttInt8, ttUInt, ttUInt16, ttUInt64, ttUInt8, ttVoid, typeIdSeqNbr, and userData.
| asCScriptEngine::~asCScriptEngine | ( | ) | [virtual] |
Definition at line 385 of file as_scriptengine.cpp.
References asCArray< T >::Allocate(), asASSERT, asDELETE, ClearUnusedTypes(), configGroups, asCDataType::CreateNullHandle(), DeleteScriptFunction(), asCMap< KEY, VAL >::Erase(), GarbageCollect(), asCAtomic::get(), asCArray< T >::GetLength(), asCMap< KEY, VAL >::GetValue(), globalProperties, mapTypeIdToDataType, asCMap< KEY, VAL >::MoveFirst(), n, objectTypes, asCArray< T >::PopLast(), refCount, registeredEnums, registeredGlobalFuncs, registeredGlobalProps, registeredObjTypes, registeredTypeDefs, asCThreadManager::Release(), Reset(), scriptFunctions, scriptModules, asCArray< T >::SetLength(), templateSubTypes, templateTypes, and threadManager.
| int asCScriptEngine::AddBehaviourFunction | ( | asCScriptFunction & | func, | |
| asSSystemFunctionInterface & | internal | |||
| ) |
Definition at line 2075 of file as_scriptengine.cpp.
References asASSERT, asFUNC_SYSTEM, asNEW, asSSystemFunctionInterface::baseOffset, asSSystemFunctionInterface::callConv, currentGroup, FindConfigGroup(), asSSystemFunctionInterface::func, asCScriptFunction::funcType, asCArray< T >::GetLength(), GetNextScriptFunctionId(), asCDataType::GetObjectType(), asSSystemFunctionInterface::hasAutoHandles, asSSystemFunctionInterface::hostReturnFloat, asSSystemFunctionInterface::hostReturnInMemory, asSSystemFunctionInterface::hostReturnSize, asCScriptFunction::id, asCScriptFunction::inOutFlags, asCScriptFunction::isReadOnly, n, asCScriptFunction::name, asCScriptFunction::objectType, asSSystemFunctionInterface::paramAutoHandles, asCScriptFunction::parameterTypes, asSSystemFunctionInterface::paramSize, asCArray< T >::PushLast(), asCConfigGroup::RefConfigGroup(), asSSystemFunctionInterface::returnAutoHandle, asCScriptFunction::returnType, asSSystemFunctionInterface::scriptReturnSize, SetScriptFunction(), asCScriptFunction::sysFuncIntf, and asSSystemFunctionInterface::takesObjByVal.
Referenced by RegisterObjectBehaviour(), and RegisterSpecialObjectBehaviour().
| int asCScriptEngine::AddRef | ( | ) | [virtual] |
Definition at line 512 of file as_scriptengine.cpp.
References asCAtomic::atomicInc(), and refCount.
Referenced by asCContext::asCContext().
| void asCScriptEngine::AddRefScriptObject | ( | void * | obj, | |
| int | typeId | |||
| ) | [virtual] |
Definition at line 3706 of file as_scriptengine.cpp.
References asSTypeBehaviour::addref, asCObjectType::beh, CallObjectMethod(), GetDataTypeFromTypeId(), and asCDataType::GetObjectType().
| void asCScriptEngine::AddRefToGlobalProperty | ( | asCGlobalProperty * | prop | ) |
Definition at line 2179 of file as_scriptengine.cpp.
References asCAtomic::atomicInc(), and asCGlobalProperty::refCount.
| asCGlobalProperty * asCScriptEngine::AllocateGlobalProperty | ( | ) |
Definition at line 2166 of file as_scriptengine.cpp.
References asNEW, asCArray< T >::GetLength(), globalProperties, asCGlobalProperty::id, asCArray< T >::PushLast(), asCGlobalProperty::refCount, and asCAtomic::set().
Referenced by asCModule::AllocateGlobalProperty(), and RegisterGlobalProperty().
| int asCScriptEngine::BeginConfigGroup | ( | const char * | groupName | ) | [virtual] |
Definition at line 3790 of file as_scriptengine.cpp.
References asNEW, configGroups, currentGroup, defaultGroup, asCArray< T >::GetLength(), asCConfigGroup::groupName, and asCArray< T >::PushLast().
| void asCScriptEngine::BuildCompleted | ( | ) |
Definition at line 2687 of file as_scriptengine.cpp.
References asCMemoryMgr::FreeUnusedMemory(), isBuilding, and memoryMgr.
Referenced by asCModule::Build(), and asCModule::LoadByteCode().
| void * asCScriptEngine::CallAlloc | ( | asCObjectType * | objType | ) |
Definition at line 3423 of file as_scriptengine.cpp.
References asCObjectType::size, and userAlloc.
Referenced by asCScriptObject::AllocateObject(), CreateScriptObject(), asCContext::ExecuteNext(), and asCGeneric::GetAddressOfReturnLocation().
| void asCScriptEngine::CallFree | ( | void * | obj | ) |
Definition at line 3434 of file as_scriptengine.cpp.
References userFree.
Referenced by asCModule::CallExit(), asCContext::CallGeneric(), asCContext::CleanReturnObject(), asCContext::CleanStackFrame(), asCContext::ExecuteNext(), asCScriptObject::FreeObject(), and ReleaseScriptObject().
| void asCScriptEngine::CallGlobalFunction | ( | void * | param1, | |
| void * | param2, | |||
| asSSystemFunctionInterface * | func, | |||
| asCScriptFunction * | desc | |||
| ) |
Definition at line 3380 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::callConv, asSSystemFunctionInterface::func, ICC_CDECL, ICC_STDCALL, and void().
Referenced by asCContext::CallExceptionCallback(), asCContext::CallLineCallback(), asCOutputBuffer::SendToCallback(), and WriteMessage().
| bool asCScriptEngine::CallGlobalFunctionRetBool | ( | void * | param1, | |
| void * | param2, | |||
| asSSystemFunctionInterface * | func, | |||
| asCScriptFunction * | desc | |||
| ) |
Definition at line 3400 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::callConv, asSSystemFunctionInterface::func, asCGeneric::GetReturnPointer(), ICC_CDECL, ICC_STDCALL, and void().
Referenced by GetTemplateInstanceType().
| void * asCScriptEngine::CallGlobalFunctionRetPtr | ( | asSSystemFunctionInterface * | i, | |
| asCScriptFunction * | s, | |||
| void * | param1 | |||
| ) |
Definition at line 3300 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::callConv, asSSystemFunctionInterface::func, asCGeneric::GetReturnPointer(), ICC_CDECL, ICC_STDCALL, and void().
| void * asCScriptEngine::CallGlobalFunctionRetPtr | ( | asSSystemFunctionInterface * | func, | |
| asCScriptFunction * | desc | |||
| ) |
Definition at line 3279 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::callConv, asSSystemFunctionInterface::func, asCGeneric::GetReturnPointer(), ICC_CDECL, ICC_STDCALL, and void().
| void * asCScriptEngine::CallGlobalFunctionRetPtr | ( | int | func, | |
| void * | param1 | |||
| ) |
Definition at line 3273 of file as_scriptengine.cpp.
References CallGlobalFunctionRetPtr(), scriptFunctions, and asCScriptFunction::sysFuncIntf.
| void * asCScriptEngine::CallGlobalFunctionRetPtr | ( | int | func | ) |
Definition at line 3267 of file as_scriptengine.cpp.
References scriptFunctions, and asCScriptFunction::sysFuncIntf.
Referenced by asCScriptObject::AllocateObject(), CallGlobalFunctionRetPtr(), and CreateScriptObject().
| void asCScriptEngine::CallObjectMethod | ( | void * | obj, | |
| void * | param, | |||
| asSSystemFunctionInterface * | func, | |||
| asCScriptFunction * | desc | |||
| ) |
Definition at line 3327 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::callConv, asSSystemFunctionInterface::func, ICC_CDECL_OBJLAST, ICC_GENERIC_METHOD, ICC_THISCALL, and void().
| void asCScriptEngine::CallObjectMethod | ( | void * | obj, | |
| asSSystemFunctionInterface * | func, | |||
| asCScriptFunction * | desc | |||
| ) |
Definition at line 3073 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::baseOffset, asSSystemFunctionInterface::callConv, asSSystemFunctionInterface::func, ICC_GENERIC_METHOD, ICC_THISCALL, ICC_VIRTUAL_THISCALL, and void().
| void asCScriptEngine::CallObjectMethod | ( | void * | obj, | |
| void * | param, | |||
| int | func | |||
| ) |
Definition at line 3321 of file as_scriptengine.cpp.
References CallObjectMethod(), scriptFunctions, and asCScriptFunction::sysFuncIntf.
| void asCScriptEngine::CallObjectMethod | ( | void * | obj, | |
| int | func | |||
| ) |
Definition at line 3067 of file as_scriptengine.cpp.
References scriptFunctions, and asCScriptFunction::sysFuncIntf.
Referenced by AddRefScriptObject(), asCGarbageCollector::AddScriptObjectToGC(), asCScriptObject::AllocateObject(), asCContext::CallExceptionCallback(), asCModule::CallExit(), asCContext::CallGeneric(), asCContext::CallLineCallback(), CallObjectMethod(), asCContext::CleanReturnObject(), asCContext::CleanStackFrame(), asCGarbageCollector::ClearMap(), asCScriptObject::CopyHandle(), asCScriptObject::CopyObject(), CopyScriptObject(), CreateScriptObject(), asCGarbageCollector::DestroyGarbage(), asCContext::ExecuteNext(), asCScriptObject::FreeObject(), asCGarbageCollector::IdentifyGarbageWithCyclicRefs(), ReleaseScriptObject(), asCOutputBuffer::SendToCallback(), asCContext::SetArgObject(), asCGeneric::SetReturnObject(), and WriteMessage().
Definition at line 3135 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::baseOffset, asSSystemFunctionInterface::callConv, asSSystemFunctionInterface::func, asCGeneric::GetReturnPointer(), ICC_GENERIC_METHOD, ICC_THISCALL, ICC_VIRTUAL_THISCALL, scriptFunctions, asCScriptFunction::sysFuncIntf, and void().
Referenced by asCGarbageCollector::IdentifyGarbageWithCyclicRefs().
Definition at line 3201 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::baseOffset, asSSystemFunctionInterface::callConv, asSSystemFunctionInterface::func, asCGeneric::GetReturnPointer(), ICC_GENERIC_METHOD, ICC_THISCALL, ICC_VIRTUAL_THISCALL, scriptFunctions, asCScriptFunction::sysFuncIntf, and void().
Referenced by asCGarbageCollector::DestroyGarbage(), and asCGarbageCollector::IdentifyGarbageWithCyclicRefs().
| int asCScriptEngine::ClearMessageCallback | ( | ) | [virtual] |
Definition at line 583 of file as_scriptengine.cpp.
References msgCallback.
| void asCScriptEngine::ClearUnusedTypes | ( | ) |
Definition at line 691 of file as_scriptengine.cpp.
References asDELETE, asCModule::classTypes, classTypes, asCArray< T >::Concatenate(), asCModule::enumTypes, asCArray< T >::GetLength(), asCDataType::GetObjectType(), globalProperties, asCArray< T >::IndexOf(), n, asCScriptFunction::name, asCScriptFunction::objectType, asCScriptFunction::parameterTypes, asCArray< T >::PopLast(), refCount, RemoveFromTypeIdMap(), RemoveTemplateInstanceType(), RemoveTypeAndRelatedFromList(), asCScriptFunction::returnType, scriptFunctions, scriptModules, templateInstanceTypes, and asCModule::typeDefs.
Referenced by DiscardModule(), asCGarbageCollector::GarbageCollect(), and ~asCScriptEngine().
Definition at line 2528 of file as_scriptengine.cpp.
References configFailed.
Referenced by PrepareEngine(), PrepareSystemFunction(), RegisterEnum(), RegisterEnumValue(), RegisterGlobalFunction(), RegisterGlobalProperty(), RegisterInterface(), RegisterInterfaceMethod(), RegisterObjectBehaviour(), RegisterObjectMethod(), RegisterObjectProperty(), RegisterObjectType(), RegisterSpecialObjectBehaviour(), RegisterStringFactory(), RegisterTypedef(), and asCBuilder::RegisterTypedef().
| void asCScriptEngine::CopyScriptObject | ( | void * | dstObj, | |
| void * | srcObj, | |||
| int | typeId | |||
| ) | [virtual] |
Definition at line 3640 of file as_scriptengine.cpp.
References asCObjectType::beh, CallObjectMethod(), asSTypeBehaviour::copy, GetDataTypeFromTypeId(), asCDataType::GetObjectType(), and asCObjectType::size.
Referenced by CreateScriptObjectCopy().
| int asCScriptEngine::CreateContext | ( | asIScriptContext ** | context, | |
| bool | isInternal | |||
| ) |
Definition at line 924 of file as_scriptengine.cpp.
References asNEW, and PrepareEngine().
| asIScriptContext * asCScriptEngine::CreateContext | ( | ) | [virtual] |
Definition at line 917 of file as_scriptengine.cpp.
Referenced by asCScriptObject::CallDestructor(), asCModule::CallInit(), ExecuteString(), and ScriptObjectFactory().
| void * asCScriptEngine::CreateScriptObject | ( | int | typeId | ) | [virtual] |
Definition at line 3596 of file as_scriptengine.cpp.
References asCObjectType::beh, CallAlloc(), CallGlobalFunctionRetPtr(), CallObjectMethod(), asSTypeBehaviour::construct, asSTypeBehaviour::factory, asCObjectType::flags, GetDataTypeFromTypeId(), asCDataType::GetObjectType(), and ScriptObjectFactory().
Referenced by CreateScriptObjectCopy().
| void * asCScriptEngine::CreateScriptObjectCopy | ( | void * | obj, | |
| int | typeId | |||
| ) | [virtual] |
Definition at line 3630 of file as_scriptengine.cpp.
References CopyScriptObject(), and CreateScriptObject().
Referenced by asCContext::SetArgObject(), and asCGeneric::SetReturnObject().
| asCScriptEngine::DECLARECRITICALSECTION | ( | engineCritical | ) |
| void asCScriptEngine::DeleteScriptFunction | ( | int | id | ) |
Definition at line 3959 of file as_scriptengine.cpp.
References asDELETE, asFUNC_SYSTEM, freeScriptFunctionIds, asCScriptFunction::funcType, asCArray< T >::GetLength(), asCScriptFunction::objectType, asCArray< T >::PopLast(), asCArray< T >::PushLast(), registeredGlobalFuncs, asCArray< T >::RemoveValue(), scriptFunctions, asCScriptFunction::signatureId, and signatureIds.
Referenced by asCModule::InternalReset(), asCConfigGroup::RemoveConfiguration(), RemoveTemplateInstanceType(), asCModule::ResolveInterfaceIds(), and ~asCScriptEngine().
| int asCScriptEngine::DiscardModule | ( | const char * | module | ) | [virtual] |
Definition at line 665 of file as_scriptengine.cpp.
References asDELETE, ClearUnusedTypes(), asCModule::Discard(), asCArray< T >::GetLength(), GetModule(), n, and scriptModules.
| int asCScriptEngine::EndConfigGroup | ( | ) | [virtual] |
Definition at line 3811 of file as_scriptengine.cpp.
References currentGroup, and defaultGroup.
| int asCScriptEngine::ExecuteString | ( | const char * | module, | |
| const char * | script, | |||
| asIScriptContext ** | ctx, | |||
| asDWORD | flags | |||
| ) | [virtual] |
Definition at line 2696 of file as_scriptengine.cpp.
References asCString::AddressOf(), asFUNC_STRING, asCBuilder::BuildString(), configFailed, CreateContext(), ENTERCRITICALSECTION, asCMemoryMgr::FreeUnusedMemory(), GetModule(), isBuilding, LEAVECRITICALSECTION, memoryMgr, PrepareEngine(), TXT_INVALID_CONFIGURATION, and WriteMessage().
| asCConfigGroup * asCScriptEngine::FindConfigGroup | ( | asCObjectType * | ot | ) |
Definition at line 3852 of file as_scriptengine.cpp.
References configGroups, and asCArray< T >::GetLength().
Referenced by AddBehaviourFunction(), RegisterGlobalFunction(), RegisterGlobalProperty(), RegisterInterfaceMethod(), RegisterObjectMethod(), and RegisterStringFactory().
| asCConfigGroup * asCScriptEngine::FindConfigGroupForFunction | ( | int | funcId | ) |
Definition at line 3867 of file as_scriptengine.cpp.
References configGroups, asCArray< T >::GetLength(), and scriptFunctions.
Referenced by asCScriptFunction::AddReferences(), asCCompiler::CompileOverloadedDualOperator(), asCCompiler::CompileOverloadedDualOperator2(), asCCompiler::CompileRefCast(), asCScriptFunction::GetConfigGroup(), asCBuilder::GetFunctionDescriptions(), and asCScriptFunction::ReleaseReferences().
| asCConfigGroup * asCScriptEngine::FindConfigGroupForGlobalVar | ( | int | gvarId | ) |
Definition at line 3896 of file as_scriptengine.cpp.
References configGroups, and asCArray< T >::GetLength().
Referenced by asCModule::GetConfigGroupByGlobalVarPtrIndex(), asCBuilder::GetGlobalProperty(), and GetGlobalPropertyByIndex().
| asCConfigGroup * asCScriptEngine::FindConfigGroupForObjectType | ( | const asCObjectType * | type | ) |
Definition at line 3910 of file as_scriptengine.cpp.
References configGroups, and asCArray< T >::GetLength().
Referenced by asCBuilder::AddPropertyToClass(), asCBuilder::CreateDataTypeFromNode(), asCObjectType::GetConfigGroup(), GetEnumByIndex(), GetTypedefByIndex(), RegisterObjectProperty(), and asCObjectType::~asCObjectType().
| int asCScriptEngine::GarbageCollect | ( | asDWORD | flags = asGC_FULL_CYCLE |
) | [virtual] |
Definition at line 3447 of file as_scriptengine.cpp.
References asCGarbageCollector::GarbageCollect(), and gc.
Referenced by Reset(), and ~asCScriptEngine().
| void asCScriptEngine::GCEnumCallback | ( | void * | reference | ) | [virtual] |
Definition at line 3459 of file as_scriptengine.cpp.
References gc, and asCGarbageCollector::GCEnumCallback().
| bool asCScriptEngine::GenerateNewTemplateFunction | ( | asCObjectType * | templateType, | |
| asCObjectType * | templateInstanceType, | |||
| asCDataType & | subType, | |||
| asCScriptFunction * | templateFunc, | |||
| asCScriptFunction ** | newFunc | |||
| ) |
Definition at line 2975 of file as_scriptengine.cpp.
References asNEW, asCDataType::CreateObject(), asCDataType::CreateObjectHandle(), asCScriptFunction::funcType, asCArray< T >::GetLength(), GetNextScriptFunctionId(), asCDataType::GetObjectType(), asCScriptFunction::id, asCScriptFunction::inOutFlags, asCDataType::IsObjectHandle(), asCScriptFunction::isReadOnly, asCDataType::IsReadOnly(), asCDataType::IsReference(), asCDataType::MakeHandle(), asCDataType::MakeReadOnly(), asCDataType::MakeReference(), asCScriptFunction::name, asCScriptFunction::objectType, asCScriptFunction::parameterTypes, asCScriptFunction::returnType, asCArray< T >::SetLength(), SetScriptFunction(), asCScriptFunction::stackNeeded, asCScriptFunction::sysFuncIntf, and asCObjectType::templateSubType.
Referenced by GetTemplateInstanceType().
| const asCDataType * asCScriptEngine::GetDataTypeFromTypeId | ( | int | typeId | ) |
Definition at line 3526 of file as_scriptengine.cpp.
References asCMap< KEY, VAL >::GetValue(), mapTypeIdToDataType, and asCMap< KEY, VAL >::MoveTo().
Referenced by AddRefScriptObject(), CopyScriptObject(), CreateScriptObject(), GetEnumValueByIndex(), asCModule::GetEnumValueByIndex(), GetEnumValueCount(), asCModule::GetEnumValueCount(), GetObjectTypeById(), GetSizeOfPrimitiveType(), GetTypeDeclaration(), IsHandleCompatibleWithObject(), ReleaseScriptObject(), and asCRestore::WriteUsedTypeIds().
| asPWORD asCScriptEngine::GetEngineProperty | ( | asEEngineProp | property | ) | [virtual] |
Definition at line 267 of file as_scriptengine.cpp.
References ep.
| const char * asCScriptEngine::GetEnumByIndex | ( | asUINT | index, | |
| int * | enumTypeId, | |||
| const char ** | configGroup = 0 | |||
| ) | [virtual] |
Definition at line 4210 of file as_scriptengine.cpp.
References asCArray< T >::AddressOf(), asCString::AddressOf(), FindConfigGroupForObjectType(), asCArray< T >::GetLength(), GetTypeIdByDecl(), asCConfigGroup::groupName, and registeredEnums.
| int asCScriptEngine::GetEnumCount | ( | ) | [virtual] |
Definition at line 4204 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and registeredEnums.
| const char * asCScriptEngine::GetEnumValueByIndex | ( | int | enumTypeId, | |
| asUINT | index, | |||
| int * | outValue | |||
| ) | [virtual] |
Definition at line 4242 of file as_scriptengine.cpp.
References asCArray< T >::AddressOf(), asOBJ_ENUM, asCObjectType::enumValues, GetDataTypeFromTypeId(), asCObjectType::GetFlags(), asCArray< T >::GetLength(), and asCDataType::GetObjectType().
Definition at line 4231 of file as_scriptengine.cpp.
References asOBJ_ENUM, asCObjectType::enumValues, GetDataTypeFromTypeId(), asCObjectType::GetFlags(), asCArray< T >::GetLength(), and asCDataType::GetObjectType().
| int asCScriptEngine::GetFactoryIdByDecl | ( | const asCObjectType * | ot, | |
| const char * | decl | |||
| ) |
Definition at line 823 of file as_scriptengine.cpp.
References asCObjectType::beh, asSTypeBehaviour::factories, asSTypeBehaviour::factory, asCObjectType::flags, asCArray< T >::GetLength(), asCModule::isBuildWithoutErrors, asCScriptFunction::IsSignatureEqual(), n, asCBuilder::ParseFunctionDeclaration(), scriptFunctions, and asCObjectType::size.
Referenced by asCObjectType::GetFactoryIdByDecl().
Definition at line 897 of file as_scriptengine.cpp.
References asCScriptFunction::GetDeclarationStr(), and GetScriptFunction().
Referenced by asCBuilder::CompileClasses().
| asIScriptFunction * asCScriptEngine::GetFunctionDescriptorById | ( | int | funcId | ) | [virtual] |
Definition at line 4290 of file as_scriptengine.cpp.
References GetScriptFunction().
Referenced by asCModule::AreInterfacesEqual(), and asCModule::GetFunctionDescriptorById().
| void asCScriptEngine::GetGCStatistics | ( | asUINT * | currentSize, | |
| asUINT * | totalDestroyed, | |||
| asUINT * | totalDetected | |||
| ) | [virtual] |
Definition at line 3453 of file as_scriptengine.cpp.
References gc, and asCGarbageCollector::GetStatistics().
| int asCScriptEngine::GetGlobalFunctionCount | ( | ) | [virtual] |
Definition at line 2408 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and registeredGlobalFuncs.
| int asCScriptEngine::GetGlobalFunctionIdByIndex | ( | asUINT | index | ) | [virtual] |
Definition at line 2414 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and registeredGlobalFuncs.
| int asCScriptEngine::GetGlobalPropertyByIndex | ( | asUINT | index, | |
| const char ** | name, | |||
| int * | typeId = 0, |
|||
| bool * | isConst = 0, |
|||
| const char ** | configGroup = 0, |
|||
| void ** | pointer = 0 | |||
| ) | [virtual] |
Definition at line 2203 of file as_scriptengine.cpp.
References asCString::AddressOf(), asCArray< T >::AddressOf(), FindConfigGroupForGlobalVar(), asCArray< T >::GetLength(), GetTypeIdFromDataType(), asCConfigGroup::groupName, and registeredGlobalProps.
| int asCScriptEngine::GetGlobalPropertyCount | ( | ) | [virtual] |
Definition at line 2196 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and registeredGlobalProps.
| asIJITCompiler * asCScriptEngine::GetJITCompiler | ( | ) | [virtual] |
Definition at line 622 of file as_scriptengine.cpp.
References jitCompiler.
Referenced by asCScriptFunction::JITCompile().
| int asCScriptEngine::GetMethodIdByDecl | ( | const asCObjectType * | ot, | |
| const char * | decl, | |||
| asCModule * | mod | |||
| ) |
Definition at line 861 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), asCModule::isBuildWithoutErrors, asCScriptFunction::IsSignatureEqual(), asCObjectType::methods, n, asCScriptFunction::objectType, asCBuilder::ParseFunctionDeclaration(), and scriptFunctions.
Referenced by asCObjectType::GetMethodIdByDecl().
Definition at line 2654 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and scriptModules.
Definition at line 2602 of file as_scriptengine.cpp.
References asASSERT, asNEW, asCArray< T >::GetLength(), asCModule::isDiscarded, lastModule, n, asCModule::name, asCArray< T >::PushLast(), and scriptModules.
| asIScriptModule * asCScriptEngine::GetModule | ( | const char * | module, | |
| asEGMFlags | flag | |||
| ) | [virtual] |
Definition at line 645 of file as_scriptengine.cpp.
References asCModule::Discard().
Referenced by asCModule::BindAllImportedFunctions(), DiscardModule(), and ExecuteString().
Definition at line 2662 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), asCScriptFunction::module, and scriptFunctions.
Referenced by asCModule::BindImportedFunction(), asCModule::CanDelete(), asCModule::CanDeleteAllReferences(), asCModule::InternalReset(), and asCModule::UnbindImportedFunction().
| int asCScriptEngine::GetNextScriptFunctionId | ( | ) |
Definition at line 3944 of file as_scriptengine.cpp.
References freeScriptFunctionIds, asCArray< T >::GetLength(), asCArray< T >::PopLast(), asCArray< T >::PushLast(), and scriptFunctions.
Referenced by AddBehaviourFunction(), asCBuilder::AddDefaultConstructor(), asCBuilder::CompileGlobalVariables(), asCBuilder::CreateVirtualFunction(), GenerateNewTemplateFunction(), GetTemplateInstanceType(), asCBuilder::ParseScripts(), asCRestore::ReadFunction(), RegisterGlobalFunction(), RegisterInterfaceMethod(), RegisterObjectMethod(), asCBuilder::RegisterScriptFunction(), and RegisterStringFactory().
| asCObjectType * asCScriptEngine::GetObjectType | ( | const char * | type | ) |
Definition at line 2426 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), n, and objectTypes.
Referenced by asCBuilder::CheckNameConflict(), asCCompiler::CompileDeclaration(), asCBuilder::GetObjectType(), and asCRestore::ReadObjectType().
| asIObjectType * asCScriptEngine::GetObjectTypeById | ( | int | typeId | ) | [virtual] |
Definition at line 4275 of file as_scriptengine.cpp.
References asOBJ_ENUM, GetDataTypeFromTypeId(), asCObjectType::GetFlags(), and asCDataType::GetObjectType().
| asIObjectType * asCScriptEngine::GetObjectTypeByIndex | ( | asUINT | index | ) | [virtual] |
Definition at line 4266 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and registeredObjTypes.
| int asCScriptEngine::GetObjectTypeCount | ( | ) | [virtual] |
Definition at line 4260 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and registeredObjTypes.
| asCObjectType * asCScriptEngine::GetObjectTypeFromTypeId | ( | int | typeId | ) |
Definition at line 3535 of file as_scriptengine.cpp.
References asCDataType::GetObjectType(), asCMap< KEY, VAL >::GetValue(), mapTypeIdToDataType, and asCMap< KEY, VAL >::MoveTo().
Referenced by asCContext::ExecuteNext(), and NotifyGarbageCollectorOfNewObject().
| asCScriptFunction * asCScriptEngine::GetScriptFunction | ( | int | funcID | ) |
Definition at line 907 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and scriptFunctions.
Referenced by asCModule::BindImportedFunction(), asCContext::ExecuteNext(), GetFunctionDeclaration(), GetFunctionDescriptorById(), asCContext::Prepare(), and asCModule::ResolveInterfaceIds().
Definition at line 3587 of file as_scriptengine.cpp.
References GetDataTypeFromTypeId(), asCDataType::GetSizeInMemoryBytes(), and asCDataType::IsPrimitive().
| int asCScriptEngine::GetStringFactoryReturnTypeId | ( | ) | [virtual] |
Definition at line 2593 of file as_scriptengine.cpp.
References GetTypeIdFromDataType(), asCScriptFunction::returnType, and stringFactory.
| asCObjectType * asCScriptEngine::GetTemplateInstanceType | ( | asCObjectType * | templateType, | |
| asCDataType & | subType | |||
| ) |
Definition at line 2839 of file as_scriptengine.cpp.
References asCObjectType::acceptRefSubType, asCObjectType::acceptValueSubType, asCObjectType::AddRef(), asSTypeBehaviour::addref, asDELETE, asFUNC_SCRIPT, asNEW, asCObjectType::beh, CallGlobalFunctionRetBool(), asCCompiler::CompileTemplateFactoryStub(), asSTypeBehaviour::construct, asSTypeBehaviour::constructors, asSTypeBehaviour::copy, asCDataType::CreateObjectHandle(), defaultArrayObjectType, asSTypeBehaviour::factories, asSTypeBehaviour::factory, asCObjectType::flags, asCScriptFunction::funcType, asSTypeBehaviour::gcEnumReferences, asSTypeBehaviour::gcGetFlag, asSTypeBehaviour::gcGetRefCount, asSTypeBehaviour::gcReleaseAllReferences, asSTypeBehaviour::gcSetFlag, GenerateNewTemplateFunction(), asCArray< T >::GetLength(), GetNextScriptFunctionId(), asCDataType::GetObjectType(), asCScriptFunction::id, asCScriptFunction::inOutFlags, asCDataType::IsObject(), asCDataType::IsPrimitive(), asCObjectType::methods, n, asCScriptFunction::name, asCObjectType::name, asSTypeBehaviour::operators, asCScriptFunction::parameterTypes, asCArray< T >::PushLast(), asSTypeBehaviour::release, asCScriptFunction::returnType, scriptFunctions, SetScriptFunction(), asCObjectType::size, asCScriptFunction::sysFuncIntf, asSTypeBehaviour::templateCallback, templateInstanceTypes, asCObjectType::templateSubType, and templateTypes.
Referenced by asCBuilder::CreateDataTypeFromNode(), and asCDataType::MakeArray().
| const char * asCScriptEngine::GetTypeDeclaration | ( | int | typeId | ) | [virtual] |
Definition at line 3575 of file as_scriptengine.cpp.
References asCString::AddressOf(), asASSERT, asCDataType::Format(), GetDataTypeFromTypeId(), asCThreadManager::GetLocalData(), asCThreadLocalData::string, and threadManager.
| const char * asCScriptEngine::GetTypedefByIndex | ( | asUINT | index, | |
| int * | typeId, | |||
| const char ** | configGroup = 0 | |||
| ) | [virtual] |
Definition at line 4096 of file as_scriptengine.cpp.
References asCString::AddressOf(), asCArray< T >::AddressOf(), FindConfigGroupForObjectType(), asCArray< T >::GetLength(), GetTypeIdByDecl(), asCConfigGroup::groupName, and registeredTypeDefs.
| int asCScriptEngine::GetTypedefCount | ( | ) | [virtual] |
Definition at line 4090 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and registeredTypeDefs.
| int asCScriptEngine::GetTypeIdByDecl | ( | const char * | decl | ) | [virtual] |
Definition at line 3562 of file as_scriptengine.cpp.
References GetTypeIdFromDataType(), and asCBuilder::ParseDataType().
Referenced by GetEnumByIndex(), and GetTypedefByIndex().
| int asCScriptEngine::GetTypeIdFromDataType | ( | const asCDataType & | dt | ) |
Definition at line 3466 of file as_scriptengine.cpp.
References asNEW, asOBJ_ENUM, asCObjectType::beh, asCObjectType::flags, asCMap< KEY, VAL >::GetKey(), asCDataType::GetObjectType(), asCMap< KEY, VAL >::GetValue(), asCMap< KEY, VAL >::Insert(), asCDataType::IsEqualExceptRefAndConst(), asCDataType::IsNullHandle(), asCDataType::IsObject(), asCDataType::MakeHandle(), asCDataType::MakeHandleToConst(), asCDataType::MakeReadOnly(), asCDataType::MakeReference(), mapTypeIdToDataType, asCMap< KEY, VAL >::MoveFirst(), asCMap< KEY, VAL >::MoveNext(), asSTypeBehaviour::release, and typeIdSeqNbr.
Referenced by asCScriptEngine(), asCCompiler::CompileRefCast(), asCGeneric::GetArgTypeId(), GetGlobalPropertyByIndex(), asCModule::GetGlobalVarTypeId(), asCGeneric::GetObjectTypeId(), asCScriptFunction::GetParamTypeId(), asCScriptObject::GetPropertyTypeId(), asCObjectType::GetPropertyTypeId(), asCScriptFunction::GetReturnTypeId(), GetStringFactoryReturnTypeId(), asCObjectType::GetSubTypeId(), asCContext::GetThisTypeId(), asCScriptObject::GetTypeId(), asCObjectType::GetTypeId(), GetTypeIdByDecl(), asCModule::GetTypeIdByDecl(), asCContext::GetVarTypeId(), asCCompiler::PrepareArgument(), asCRestore::ReadUsedTypeIds(), asCContext::SetArgObject(), and asCGeneric::SetReturnObject().
| void * asCScriptEngine::GetUserData | ( | ) | [virtual] |
Definition at line 540 of file as_scriptengine.cpp.
References userData.
| bool asCScriptEngine::IsHandleCompatibleWithObject | ( | void * | obj, | |
| int | objTypeId, | |||
| int | handleTypeId | |||
| ) | [virtual] |
Definition at line 3759 of file as_scriptengine.cpp.
References GetDataTypeFromTypeId(), asCDataType::GetObjectType(), asCObjectType::Implements(), asCDataType::IsHandleToConst(), and asCDataType::IsScriptObject().
| bool asCScriptEngine::IsTemplateType | ( | const char * | name | ) |
Definition at line 4297 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), and objectTypes.
Referenced by asCParser::CheckTemplateType(), and asCParser::ParseType().
| void asCScriptEngine::NotifyGarbageCollectorOfNewObject | ( | void * | obj, | |
| int | typeId | |||
| ) | [virtual] |
Definition at line 3440 of file as_scriptengine.cpp.
References asCGarbageCollector::AddScriptObjectToGC(), gc, and GetObjectTypeFromTypeId().
| asETokenClass asCScriptEngine::ParseToken | ( | const char * | string, | |
| size_t | stringLength = 0, |
|||
| int * | tokenLength = 0 | |||
| ) | [virtual] |
Definition at line 628 of file as_scriptengine.cpp.
References asCTokenizer::GetToken().
| void asCScriptEngine::PrepareEngine | ( | ) |
Definition at line 2440 of file as_scriptengine.cpp.
References asSTypeBehaviour::addref, asCString::AddressOf(), asCArray< T >::AddressOf(), asFUNC_SYSTEM, ConfigError(), configFailed, asSTypeBehaviour::construct, asCString::Format(), asCArray< T >::GetLength(), ICC_GENERIC_FUNC, ICC_GENERIC_METHOD, isPrepared, n, objectTypes, PrepareSystemFunction, PrepareSystemFunctionGeneric(), asSTypeBehaviour::release, scriptFunctions, TXT_GC_REQUIRE_ADD_REL_GC_BEHAVIOUR, TXT_NON_POD_REQUIRE_CONSTR_DESTR_BEHAVIOUR, TXT_REF_REQUIRE_ADD_REL_BEHAVIOUR, TXT_SCOPE_REQUIRE_REL_BEHAVIOUR, TXT_TYPE_s_IS_MISSING_BEHAVIOURS, and WriteMessage().
Referenced by asCModule::Build(), CreateContext(), ExecuteString(), and asCRestore::Restore().
| int asCScriptEngine::RegisterEnum | ( | const char * | type | ) | [virtual] |
Definition at line 4117 of file as_scriptengine.cpp.
References asNEW, asOBJ_ENUM, asCBuilder::CheckNameConflict(), ConfigError(), asCDataType::CreatePrimitive(), currentGroup, asCObjectType::flags, asCArray< T >::GetLength(), asCDataType::GetSizeInMemoryBytes(), asCTokenizer::GetToken(), msgCallback, asCObjectType::name, objectTypes, asCConfigGroup::objTypes, asCBuilder::ParseDataType(), asCArray< T >::PushLast(), registeredEnums, asCObjectType::size, ttIdentifier, and ttInt.
| int asCScriptEngine::RegisterEnumValue | ( | const char * | type, | |
| const char * | name, | |||
| int | value | |||
| ) | [virtual] |
Definition at line 4167 of file as_scriptengine.cpp.
References asNEW, asOBJ_ENUM, ConfigError(), currentGroup, asCObjectType::enumValues, asCConfigGroup::FindType(), asCObjectType::flags, asCArray< T >::GetLength(), asCDataType::GetObjectType(), asSEnumValue::name, asCBuilder::ParseDataType(), asCArray< T >::PushLast(), and asSEnumValue::value.
| int asCScriptEngine::RegisterGlobalFunction | ( | const char * | declaration, | |
| const asSFuncPtr & | funcPointer, | |||
| asDWORD | callConv | |||
| ) | [virtual] |
Definition at line 2340 of file as_scriptengine.cpp.
References asCString::AddressOf(), asDELETE, asFUNC_SYSTEM, asNEW, asCBuilder::CheckNameConflict(), ConfigError(), currentGroup, DetectCallingConvention(), FindConfigGroup(), asCScriptFunction::funcType, asCArray< T >::GetLength(), GetNextScriptFunctionId(), asCDataType::GetObjectType(), asCScriptFunction::id, isPrepared, n, asCScriptFunction::name, asSSystemFunctionInterface::paramAutoHandles, asCScriptFunction::parameterTypes, asCBuilder::ParseFunctionDeclaration(), asCArray< T >::PushLast(), asCConfigGroup::RefConfigGroup(), registeredGlobalFuncs, asSSystemFunctionInterface::returnAutoHandle, asCScriptFunction::returnType, asCConfigGroup::scriptFunctions, SetScriptFunction(), and asCScriptFunction::sysFuncIntf.
| int asCScriptEngine::RegisterGlobalProperty | ( | const char * | declaration, | |
| void * | pointer | |||
| ) | [virtual] |
Definition at line 2131 of file as_scriptengine.cpp.
References AllocateGlobalProperty(), ConfigError(), currentGroup, FindConfigGroup(), asCDataType::GetObjectType(), asCConfigGroup::globalProps, asCDataType::IsReference(), asCGlobalProperty::name, asCArray< T >::PushLast(), asCConfigGroup::RefConfigGroup(), registeredGlobalProps, asCGlobalProperty::SetRegisteredAddress(), asCGlobalProperty::type, and asCBuilder::VerifyProperty().
| int asCScriptEngine::RegisterInterface | ( | const char * | name | ) | [virtual] |
Definition at line 971 of file as_scriptengine.cpp.
References asSTypeBehaviour::addref, asNEW, asCObjectType::beh, asCBuilder::CheckNameConflict(), ConfigError(), asSTypeBehaviour::copy, currentGroup, asSTypeBehaviour::factory, asCObjectType::flags, asCArray< T >::GetLength(), asCTokenizer::GetToken(), msgCallback, n, asCObjectType::name, objectTypes, asCConfigGroup::objTypes, asCBuilder::ParseDataType(), asCArray< T >::PushLast(), registeredObjTypes, asSTypeBehaviour::release, scriptTypeBehaviours, asCObjectType::size, and ttIdentifier.
| int asCScriptEngine::RegisterInterfaceMethod | ( | const char * | intf, | |
| const char * | declaration | |||
| ) | [virtual] |
Definition at line 1025 of file as_scriptengine.cpp.
References asCString::AddressOf(), asDELETE, asFUNC_INTERFACE, asNEW, asCBuilder::CheckNameConflictMember(), asCScriptFunction::ComputeSignatureId(), ConfigError(), currentGroup, FindConfigGroup(), asCConfigGroup::FindType(), asCScriptFunction::funcType, asCArray< T >::GetLength(), GetNextScriptFunctionId(), asCDataType::GetObjectType(), asCScriptFunction::id, asCObjectType::methods, n, asCScriptFunction::name, asCScriptFunction::objectType, asCScriptFunction::parameterTypes, asCBuilder::ParseDataType(), asCBuilder::ParseFunctionDeclaration(), asCArray< T >::PushLast(), asCConfigGroup::RefConfigGroup(), asCScriptFunction::returnType, and SetScriptFunction().
| int asCScriptEngine::RegisterObjectBehaviour | ( | const char * | obj, | |
| asEBehaviours | behaviour, | |||
| const char * | declaration, | |||
| const asSFuncPtr & | funcPointer, | |||
| asDWORD | callConv | |||
| ) | [virtual] |
Definition at line 1487 of file as_scriptengine.cpp.
References asCObjectType::acceptRefSubType, asCObjectType::acceptValueSubType, AddBehaviourFunction(), asSTypeBehaviour::addref, asASSERT, ConfigError(), asSTypeBehaviour::construct, asSTypeBehaviour::constructors, asSTypeBehaviour::copy, asCDataType::CreateObjectHandle(), asCDataType::CreatePrimitive(), asSTypeBehaviour::destruct, DetectCallingConvention(), ep, asSTypeBehaviour::factories, asSTypeBehaviour::factory, asCObjectType::flags, asSTypeBehaviour::gcEnumReferences, asSTypeBehaviour::gcGetFlag, asSTypeBehaviour::gcGetRefCount, asSTypeBehaviour::gcReleaseAllReferences, asSTypeBehaviour::gcSetFlag, asCDataType::GetBehaviour(), asCDataType::GetObjectType(), isPrepared, asCDataType::IsReadOnly(), asCDataType::IsReference(), asCDataType::MakeHandle(), asCDataType::MakeReference(), n, asSTypeBehaviour::operators, asCBuilder::ParseDataType(), asCBuilder::ParseFunctionDeclaration(), asCArray< T >::PushLast(), asSTypeBehaviour::release, asSTypeBehaviour::templateCallback, asCObjectType::templateSubType, ttBool, ttInt, ttVoid, TXT_ILLEGAL_BEHAVIOUR_FOR_TYPE, TXT_MUST_BE_GLOBAL_BEHAVIOUR, VerifyVarTypeNotInFunction(), and WriteMessage().
| int asCScriptEngine::RegisterObjectMethod | ( | const char * | obj, | |
| const char * | declaration, | |||
| const asSFuncPtr & | funcPointer, | |||
| asDWORD | callConv | |||
| ) | [virtual] |
Definition at line 2232 of file as_scriptengine.cpp.
References asCObjectType::acceptRefSubType, asCObjectType::acceptValueSubType, asCString::AddressOf(), asDELETE, asFUNC_SYSTEM, asNEW, asCObjectType::beh, asCBuilder::CheckNameConflictMember(), ConfigError(), asSTypeBehaviour::copy, asCDataType::CreateObject(), currentGroup, DetectCallingConvention(), FindConfigGroup(), asCObjectType::flags, asCScriptFunction::funcType, asCArray< T >::GetLength(), GetNextScriptFunctionId(), asCDataType::GetObjectType(), asCScriptFunction::id, asCScriptFunction::inOutFlags, asCDataType::IsObjectHandle(), isPrepared, asCScriptFunction::isReadOnly, asCDataType::IsReference(), asCObjectType::methods, n, asCScriptFunction::name, asCScriptFunction::objectType, asSSystemFunctionInterface::paramAutoHandles, asCScriptFunction::parameterTypes, asCBuilder::ParseDataType(), asCBuilder::ParseFunctionDeclaration(), asCArray< T >::PushLast(), asCConfigGroup::RefConfigGroup(), asSSystemFunctionInterface::returnAutoHandle, asCScriptFunction::returnType, SetScriptFunction(), asCScriptFunction::sysFuncIntf, and asCObjectType::templateSubType.
| int asCScriptEngine::RegisterObjectProperty | ( | const char * | obj, | |
| const char * | declaration, | |||
| int | byteOffset | |||
| ) | [virtual] |
Definition at line 936 of file as_scriptengine.cpp.
References asCString::AddressOf(), asNEW, asCObjectProperty::byteOffset, ConfigError(), currentGroup, FindConfigGroupForObjectType(), asCConfigGroup::FindType(), asCDataType::GetObjectType(), asCObjectProperty::name, asCObjectType::name, asCBuilder::ParseDataType(), asCObjectType::properties, asCArray< T >::PushLast(), asCConfigGroup::RefConfigGroup(), asCObjectProperty::type, and asCBuilder::VerifyProperty().
Definition at line 1081 of file as_scriptengine.cpp.
References asCObjectType::AddRef(), asNEW, asOBJ_TEMPLATE_SUBTYPE, asCBuilder::CheckNameConflict(), ConfigError(), asCDataType::CreateObject(), currentGroup, defaultArrayObjectType, asCObjectType::flags, asCString::GetLength(), asCArray< T >::GetLength(), asCDataType::GetObjectType(), asCDataType::GetSubType(), asCTokenizer::GetToken(), isPrepared, asCDataType::IsReadOnly(), asCDataType::IsReference(), asCDataType::IsTemplate(), msgCallback, n, asCObjectType::name, objectTypes, asCConfigGroup::objTypes, asCBuilder::ParseDataType(), asCBuilder::ParseTemplateDecl(), asCArray< T >::PushLast(), registeredObjTypes, RemoveTemplateInstanceType(), asCObjectType::size, templateInstanceTypes, asCObjectType::templateSubType, templateSubTypes, templateTypes, ttIdentifier, TXT_VALUE_TYPE_MUST_HAVE_SIZE, and WriteMessage().
| int asCScriptEngine::RegisterSpecialObjectBehaviour | ( | asCObjectType * | objType, | |
| asDWORD | behaviour, | |||
| const char * | decl, | |||
| const asSFuncPtr & | funcPointer, | |||
| int | callConv | |||
| ) |
Definition at line 1332 of file as_scriptengine.cpp.
References AddBehaviourFunction(), asSTypeBehaviour::addref, asASSERT, ConfigError(), asSTypeBehaviour::construct, asSTypeBehaviour::constructors, asSTypeBehaviour::copy, asCDataType::CreatePrimitive(), DetectCallingConvention(), asSTypeBehaviour::factories, asSTypeBehaviour::factory, asSTypeBehaviour::gcEnumReferences, asSTypeBehaviour::gcGetFlag, asSTypeBehaviour::gcGetRefCount, asSTypeBehaviour::gcReleaseAllReferences, asSTypeBehaviour::gcSetFlag, asCDataType::GetBehaviour(), asCDataType::GetObjectType(), isPrepared, asCDataType::MakeHandle(), asCDataType::MakeReadOnly(), asCDataType::MakeReference(), asSTypeBehaviour::operators, asCBuilder::ParseFunctionDeclaration(), asCArray< T >::PushLast(), asSTypeBehaviour::release, scriptTypeBehaviours, asCDataType::SetObjectType(), asCDataType::SetTokenType(), ttAssignment, ttBool, ttIdentifier, ttInt, and ttVoid.
Referenced by RegisterScriptObject().
| int asCScriptEngine::RegisterStringFactory | ( | const char * | datatype, | |
| const asSFuncPtr & | factoryFunc, | |||
| asDWORD | callConv | |||
| ) | [virtual] |
Definition at line 2536 of file as_scriptengine.cpp.
References asDELETE, asFUNC_SYSTEM, asNEW, ConfigError(), asCDataType::CreatePrimitive(), defaultGroup, DetectCallingConvention(), FindConfigGroup(), asCScriptFunction::funcType, GetNextScriptFunctionId(), asCDataType::GetObjectType(), asCScriptFunction::id, asCDataType::MakeReference(), asCScriptFunction::name, asCScriptFunction::parameterTypes, asCBuilder::ParseDataType(), asCArray< T >::PushLast(), asCScriptFunction::returnType, asCConfigGroup::scriptFunctions, SetScriptFunction(), stringFactory, asCScriptFunction::sysFuncIntf, ttInt, and ttUInt8.
| int asCScriptEngine::RegisterTypedef | ( | const char * | type, | |
| const char * | decl | |||
| ) | [virtual] |
Definition at line 4016 of file as_scriptengine.cpp.
References asNEW, asOBJ_TYPEDEF, asCBuilder::CheckNameConflict(), ConfigError(), asCDataType::CreatePrimitive(), currentGroup, asCArray< T >::GetLength(), asCDataType::GetSizeInMemoryBytes(), asCTokenizer::GetToken(), objectTypes, asCConfigGroup::objTypes, asCArray< T >::PushLast(), registeredTypeDefs, ttBool, ttDouble, ttFloat, ttIdentifier, ttInt, ttInt16, ttInt64, ttInt8, ttUInt, ttUInt16, ttUInt64, and ttUInt8.
| int asCScriptEngine::Release | ( | ) | [virtual] |
Definition at line 518 of file as_scriptengine.cpp.
References asDELETE, asCAtomic::atomicDec(), and refCount.
Referenced by asCContext::DetachEngine().
| void asCScriptEngine::ReleaseGlobalProperty | ( | asCGlobalProperty * | prop | ) |
Definition at line 2185 of file as_scriptengine.cpp.
References asDELETE, asCAtomic::atomicDec(), globalProperties, asCGlobalProperty::id, and asCGlobalProperty::refCount.
Referenced by asCModule::InternalReset(), and asCConfigGroup::RemoveConfiguration().
| void asCScriptEngine::ReleaseScriptObject | ( | void * | obj, | |
| int | typeId | |||
| ) | [virtual] |
Definition at line 3728 of file as_scriptengine.cpp.
References asCObjectType::beh, CallFree(), CallObjectMethod(), asSTypeBehaviour::destruct, GetDataTypeFromTypeId(), asCDataType::GetObjectType(), and asSTypeBehaviour::release.
| int asCScriptEngine::RemoveConfigGroup | ( | const char * | groupName | ) | [virtual] |
Definition at line 3822 of file as_scriptengine.cpp.
References asDELETE, configGroups, asCArray< T >::GetLength(), asCConfigGroup::HasLiveObjects(), asCArray< T >::PopLast(), asCConfigGroup::refCount, and asCConfigGroup::RemoveConfiguration().
| void asCScriptEngine::RemoveFromTypeIdMap | ( | asCObjectType * | type | ) |
Definition at line 3544 of file as_scriptengine.cpp.
References asDELETE, asCMap< KEY, VAL >::Erase(), asCDataType::GetObjectType(), asCMap< KEY, VAL >::GetValue(), mapTypeIdToDataType, asCMap< KEY, VAL >::MoveFirst(), and asCMap< KEY, VAL >::MoveNext().
Referenced by ClearUnusedTypes().
| void asCScriptEngine::RemoveTemplateInstanceType | ( | asCObjectType * | t | ) |
Definition at line 2795 of file as_scriptengine.cpp.
References asDELETE, asCObjectType::beh, DeleteScriptFunction(), asSTypeBehaviour::factories, asCArray< T >::GetLength(), n, asSTypeBehaviour::operators, asCArray< T >::PopLast(), scriptFunctions, templateInstanceTypes, and templateTypes.
Referenced by ClearUnusedTypes(), and RegisterObjectType().
| void asCScriptEngine::RemoveTypeAndRelatedFromList | ( | asCArray< asCObjectType * > & | types, | |
| asCObjectType * | ot | |||
| ) |
Definition at line 791 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), asCDataType::GetObjectType(), asCArray< T >::IndexOf(), n, asCArray< T >::PopLast(), asCObjectType::properties, and asCObjectType::templateSubType.
Referenced by ClearUnusedTypes().
| int asCScriptEngine::RequestBuild | ( | ) |
Definition at line 2672 of file as_scriptengine.cpp.
References ENTERCRITICALSECTION, isBuilding, and LEAVECRITICALSECTION.
Referenced by asCModule::Build(), and asCModule::LoadByteCode().
| void asCScriptEngine::Reset | ( | ) |
Definition at line 545 of file as_scriptengine.cpp.
References GarbageCollect(), asCArray< T >::GetLength(), n, and scriptModules.
Referenced by ~asCScriptEngine().
| int asCScriptEngine::SetConfigGroupModuleAccess | ( | const char * | groupName, | |
| const char * | module, | |||
| bool | hasAccess | |||
| ) | [virtual] |
Definition at line 3924 of file as_scriptengine.cpp.
References configGroups, asCArray< T >::GetLength(), and asCConfigGroup::SetModuleAccess().
| int asCScriptEngine::SetEngineProperty | ( | asEEngineProp | property, | |
| asPWORD | value | |||
| ) | [virtual] |
Definition at line 202 of file as_scriptengine.cpp.
References ep, and initialContextStackSize.
| int asCScriptEngine::SetJITCompiler | ( | asIJITCompiler * | compiler | ) | [virtual] |
Definition at line 616 of file as_scriptengine.cpp.
References jitCompiler.
| int asCScriptEngine::SetMessageCallback | ( | const asSFuncPtr & | callback, | |
| void * | obj, | |||
| asDWORD | callConv | |||
| ) | [virtual] |
Definition at line 558 of file as_scriptengine.cpp.
References DetectCallingConvention(), msgCallback, msgCallbackFunc, and msgCallbackObj.
Referenced by asCBuilder::CompileGlobalVariables().
| void asCScriptEngine::SetScriptFunction | ( | asCScriptFunction * | func | ) |
Definition at line 3954 of file as_scriptengine.cpp.
References asCScriptFunction::id, and scriptFunctions.
Referenced by AddBehaviourFunction(), asCModule::AddScriptFunction(), asCBuilder::CompileGlobalVariables(), GenerateNewTemplateFunction(), GetTemplateInstanceType(), asCRestore::ReadFunction(), RegisterGlobalFunction(), RegisterInterfaceMethod(), RegisterObjectMethod(), and RegisterStringFactory().
| void * asCScriptEngine::SetUserData | ( | void * | data | ) | [virtual] |
Definition at line 532 of file as_scriptengine.cpp.
References userData.
| int asCScriptEngine::VerifyVarTypeNotInFunction | ( | asCScriptFunction * | func | ) |
Definition at line 2062 of file as_scriptengine.cpp.
References asCArray< T >::GetLength(), asCDataType::GetTokenType(), n, asCScriptFunction::parameterTypes, asCScriptFunction::returnType, and ttQuestion.
Referenced by RegisterObjectBehaviour().
| int asCScriptEngine::WriteMessage | ( | const char * | section, | |
| int | row, | |||
| int | col, | |||
| asEMsgType | type, | |||
| const char * | message | |||
| ) | [virtual] |
Definition at line 590 of file as_scriptengine.cpp.
References asSSystemFunctionInterface::callConv, CallGlobalFunction(), CallObjectMethod(), ICC_THISCALL, msg, msgCallback, msgCallbackFunc, and msgCallbackObj.
Referenced by asCModule::Build(), ExecuteString(), PrepareEngine(), PrepareSystemFunction(), RegisterObjectBehaviour(), RegisterObjectType(), asCBuilder::WriteError(), asCBuilder::WriteInfo(), and asCBuilder::WriteWarning().
friend class asCBuilder [friend] |
Definition at line 194 of file as_scriptengine.h.
friend class asCByteCode [friend] |
Definition at line 200 of file as_scriptengine.h.
friend class asCCompiler [friend] |
Definition at line 195 of file as_scriptengine.h.
friend class asCContext [friend] |
Definition at line 196 of file as_scriptengine.h.
friend class asCDataType [friend] |
Definition at line 197 of file as_scriptengine.h.
friend class asCModule [friend] |
Definition at line 198 of file as_scriptengine.h.
friend class asCRestore [friend] |
Definition at line 199 of file as_scriptengine.h.
| int PrepareSystemFunction | ( | asCScriptFunction * | func, | |
| asSSystemFunctionInterface * | internal, | |||
| asCScriptEngine * | engine | |||
| ) | [friend] |
Referenced by PrepareEngine().
Definition at line 359 of file as_scriptengine.h.
Referenced by asCParser::ParseClass().
Definition at line 358 of file as_scriptengine.h.
Referenced by asCCompiler::CompileExpressionValue().
Definition at line 353 of file as_scriptengine.h.
Referenced by asCCompiler::AfterFunctionCall(), asCBuilder::ModifyDataTypeFromNode(), and asCCompiler::PrepareArgument().
Definition at line 360 of file as_scriptengine.h.
Referenced by asCByteCode::ExtractLineNumbers(), and asCByteCode::Line().
Definition at line 321 of file as_scriptengine.h.
Referenced by ClearUnusedTypes(), asCBuilder::RegisterClass(), asCBuilder::RegisterEnum(), asCBuilder::RegisterInterface(), asCBuilder::RegisterTypedef(), asCModule::ResolveInterfaceIds(), and asCRestore::Restore().
Definition at line 296 of file as_scriptengine.h.
Referenced by asCScriptEngine(), asCModule::Build(), ConfigError(), ExecuteString(), and PrepareEngine().
Definition at line 334 of file as_scriptengine.h.
Referenced by BeginConfigGroup(), FindConfigGroup(), FindConfigGroupForFunction(), FindConfigGroupForGlobalVar(), FindConfigGroupForObjectType(), RemoveConfigGroup(), SetConfigGroupModuleAccess(), and ~asCScriptEngine().
Definition at line 355 of file as_scriptengine.h.
Referenced by asCModule::AddScriptSection().
Definition at line 335 of file as_scriptengine.h.
Referenced by AddBehaviourFunction(), asCScriptEngine(), BeginConfigGroup(), EndConfigGroup(), RegisterEnum(), RegisterEnumValue(), RegisterGlobalFunction(), RegisterGlobalProperty(), RegisterInterface(), RegisterInterfaceMethod(), RegisterObjectMethod(), RegisterObjectProperty(), RegisterObjectType(), and RegisterTypedef().
Definition at line 282 of file as_scriptengine.h.
Referenced by asCScriptEngine(), asCDataType::CreateDefaultArray(), GetTemplateInstanceType(), asCDataType::IsArrayType(), asCDataType::MakeArray(), RegisterObjectType(), and asCRestore::WriteObjectType().
Definition at line 333 of file as_scriptengine.h.
Referenced by asCScriptEngine(), BeginConfigGroup(), EndConfigGroup(), and RegisterStringFactory().
| struct { ... } asCScriptEngine::ep |
Referenced by asCModule::AddScriptSection(), asCCompiler::AfterFunctionCall(), asCScriptEngine(), asCModule::Build(), asCContext::CallScriptFunction(), asCCompiler::CompileExpressionValue(), asCByteCode::ExtractLineNumbers(), asCByteCode::Finalize(), GetEngineProperty(), asCByteCode::Line(), asCBuilder::ModifyDataTypeFromNode(), asCByteCode::Optimize(), asCParser::ParseClass(), asCCompiler::PrepareArgument(), asCCompiler::ProcessStringConstant(), RegisterObjectBehaviour(), and SetEngineProperty().
Definition at line 311 of file as_scriptengine.h.
Referenced by DeleteScriptFunction(), and GetNextScriptFunctionId().
Definition at line 330 of file as_scriptengine.h.
Referenced by asCScriptEngine(), asCScriptObject::asCScriptObject(), GarbageCollect(), GCEnumCallback(), GetGCStatistics(), and NotifyGarbageCollectorOfNewObject().
Definition at line 307 of file as_scriptengine.h.
Referenced by AllocateGlobalProperty(), ClearUnusedTypes(), asCModule::GetGlobalVarPtrIndex(), ReleaseGlobalProperty(), and ~asCScriptEngine().
Definition at line 364 of file as_scriptengine.h.
Referenced by asCByteCode::Optimize().
Definition at line 361 of file as_scriptengine.h.
Referenced by asCModule::Build().
Definition at line 280 of file as_scriptengine.h.
Referenced by asCScriptEngine(), asCContext::Prepare(), asCContext::PrepareSpecial(), and SetEngineProperty().
Definition at line 318 of file as_scriptengine.h.
Referenced by asCScriptEngine(), BuildCompleted(), ExecuteString(), and RequestBuild().
Definition at line 236 of file as_scriptengine.h.
Referenced by asCScriptEngine(), PrepareEngine(), RegisterGlobalFunction(), RegisterObjectBehaviour(), RegisterObjectMethod(), RegisterObjectType(), and RegisterSpecialObjectBehaviour().
| asIJITCompiler* asCScriptEngine::jitCompiler |
Definition at line 342 of file as_scriptengine.h.
Referenced by asCScriptEngine(), GetJITCompiler(), asCScriptFunction::JITCompile(), asCScriptFunction::ReleaseReferences(), and SetJITCompiler().
Definition at line 317 of file as_scriptengine.h.
Referenced by asCScriptEngine(), GetModule(), and asCModule::~asCModule().
Definition at line 327 of file as_scriptengine.h.
Referenced by GetDataTypeFromTypeId(), GetObjectTypeFromTypeId(), GetTypeIdFromDataType(), RemoveFromTypeIdMap(), and ~asCScriptEngine().
Definition at line 356 of file as_scriptengine.h.
Referenced by asCContext::CallScriptFunction().
Definition at line 278 of file as_scriptengine.h.
Referenced by asCByteCode::AddInstruction(), asCByteCode::AddInstructionFirst(), BuildCompleted(), asCByteCode::ClearAll(), asCByteCode::DeleteInstruction(), asCScriptNode::Destroy(), ExecuteString(), asCParser::ParseArgList(), asCParser::ParseAssignment(), asCParser::ParseAssignOperator(), asCParser::ParseBreak(), asCParser::ParseCase(), asCParser::ParseCast(), asCParser::ParseClass(), asCParser::ParseCondition(), asCParser::ParseConstant(), asCParser::ParseConstructCall(), asCParser::ParseContinue(), asCParser::ParseDataType(), asCParser::ParseDeclaration(), asCParser::ParseDoWhile(), asCParser::ParseEnumeration(), asCParser::ParseExpression(), asCParser::ParseExpressionStatement(), asCParser::ParseExprOperator(), asCParser::ParseExprPostOp(), asCParser::ParseExprPreOp(), asCParser::ParseExprTerm(), asCParser::ParseExprValue(), asCParser::ParseFor(), asCParser::ParseFunction(), asCParser::ParseFunctionCall(), asCParser::ParseFunctionDefinition(), asCParser::ParseGlobalVar(), asCParser::ParseIdentifier(), asCParser::ParseIf(), asCParser::ParseImport(), asCParser::ParseInitList(), asCParser::ParseInterface(), asCParser::ParseInterfaceMethod(), asCParser::ParseOneOf(), asCParser::ParseParameterList(), asCParser::ParsePropertyDeclaration(), asCParser::ParseRealType(), asCParser::ParseReturn(), asCParser::ParseScript(), asCParser::ParseStatementBlock(), asCParser::ParseStringConstant(), asCParser::ParseSwitch(), asCParser::ParseTemplateDecl(), asCParser::ParseToken(), asCParser::ParseType(), asCParser::ParseTypedef(), asCParser::ParseTypeMod(), asCParser::ParseVariableAccess(), asCParser::ParseWhile(), asCByteCode::RemoveLastInstr(), asCParser::SuperficiallyParseGlobalVarInit(), and asCParser::SuperficiallyParseStatementBlock().
Definition at line 338 of file as_scriptengine.h.
Referenced by asCScriptEngine(), ClearMessageCallback(), asCBuilder::CompileGlobalVariables(), RegisterEnum(), RegisterInterface(), RegisterObjectType(), SetMessageCallback(), and WriteMessage().
Definition at line 339 of file as_scriptengine.h.
Referenced by asCBuilder::CompileGlobalVariables(), SetMessageCallback(), and WriteMessage().
Definition at line 340 of file as_scriptengine.h.
Referenced by asCBuilder::CompileGlobalVariables(), SetMessageCallback(), and WriteMessage().
Definition at line 299 of file as_scriptengine.h.
Referenced by asCBuilder::GetEnumValue(), GetObjectType(), IsTemplateType(), PrepareEngine(), RegisterEnum(), RegisterInterface(), RegisterObjectType(), RegisterTypedef(), asCConfigGroup::RemoveConfiguration(), and ~asCScriptEngine().
Definition at line 354 of file as_scriptengine.h.
Referenced by asCByteCode::Finalize().
Definition at line 315 of file as_scriptengine.h.
Referenced by AddRef(), asCScriptEngine(), ClearUnusedTypes(), Release(), and ~asCScriptEngine().
Definition at line 288 of file as_scriptengine.h.
Referenced by GetEnumByIndex(), GetEnumCount(), RegisterEnum(), asCConfigGroup::RemoveConfiguration(), and ~asCScriptEngine().
Definition at line 290 of file as_scriptengine.h.
Referenced by DeleteScriptFunction(), GetGlobalFunctionCount(), GetGlobalFunctionIdByIndex(), RegisterGlobalFunction(), and ~asCScriptEngine().
Definition at line 289 of file as_scriptengine.h.
Referenced by asCModule::GetConfigGroupByGlobalVarPtrIndex(), asCBuilder::GetGlobalProperty(), GetGlobalPropertyByIndex(), GetGlobalPropertyCount(), asCRestore::ReadUsedGlobalProps(), RegisterGlobalProperty(), asCConfigGroup::RemoveConfiguration(), asCRestore::WriteUsedGlobalProps(), and ~asCScriptEngine().
Definition at line 286 of file as_scriptengine.h.
Referenced by GetObjectTypeByIndex(), GetObjectTypeCount(), RegisterInterface(), RegisterObjectType(), asCConfigGroup::RemoveConfiguration(), and ~asCScriptEngine().
Definition at line 287 of file as_scriptengine.h.
Referenced by GetTypedefByIndex(), GetTypedefCount(), RegisterTypedef(), asCConfigGroup::RemoveConfiguration(), and ~asCScriptEngine().
Definition at line 362 of file as_scriptengine.h.
Referenced by asCCompiler::CompileExpressionValue().
Definition at line 363 of file as_scriptengine.h.
Referenced by asCCompiler::CompileExpressionValue(), and asCCompiler::ProcessStringConstant().
Definition at line 310 of file as_scriptengine.h.
Referenced by asCBuilder::AddDefaultConstructor(), asCScriptEngine(), asCContext::CallGeneric(), CallGlobalFunctionRetPtr(), asCContext::CallInterfaceMethod(), CallObjectMethod(), CallObjectMethodRetBool(), CallObjectMethodRetInt(), ClearUnusedTypes(), asCCompiler::CompileDeclaration(), asCCompiler::CompileExpressionPostOp(), asCCompiler::CompileExpressionPreOp(), asCBuilder::CompileFunctions(), asCCompiler::CompileGlobalVariable(), asCCompiler::CompileOverloadedDualOperator(), asCCompiler::CompileOverloadedDualOperator2(), asCCompiler::CompileRefCast(), DeleteScriptFunction(), asCCompiler::DoAssignment(), asCContext::Execute(), asCContext::ExecuteNext(), FindConfigGroupForFunction(), asCCompiler::FindPropertyAccessor(), GetFactoryIdByDecl(), asCBuilder::GetFunctionDescription(), asCBuilder::GetFunctionDescriptions(), asCObjectType::GetMethodDescriptorByIndex(), GetMethodIdByDecl(), asCObjectType::GetMethodIdByDecl(), asCObjectType::GetMethodIdByName(), GetModuleFromFuncId(), GetNextScriptFunctionId(), asCBuilder::GetObjectMethodDescriptions(), GetScriptFunction(), asCModule::GetSpecialFunction(), GetTemplateInstanceType(), asCCompiler::MakeFunctionCall(), PrepareEngine(), asCCompiler::PrintMatchingFuncs(), asCCompiler::ProcessPropertyGetAccessor(), asCCompiler::ProcessPropertySetAccessor(), asCRestore::ReadUsedFunctions(), asCBuilder::RegisterScriptFunction(), RemoveTemplateInstanceType(), SetScriptFunction(), asCRestore::WriteByteCode(), asCRestore::WriteObjectTypeDeclaration(), and ~asCScriptEngine().
Definition at line 316 of file as_scriptengine.h.
Referenced by ClearUnusedTypes(), DiscardModule(), GetModule(), Reset(), asCModule::~asCModule(), and ~asCScriptEngine().
Definition at line 283 of file as_scriptengine.h.
Referenced by asCScriptEngine(), asCBuilder::ParseScripts(), asCRestore::ReadObjectType(), asCRestore::ReadObjectTypeDeclaration(), asCBuilder::RegisterClass(), RegisterInterface(), asCBuilder::RegisterInterface(), RegisterScriptObject(), and RegisterSpecialObjectBehaviour().
Definition at line 312 of file as_scriptengine.h.
Referenced by asCScriptFunction::ComputeSignatureId(), and DeleteScriptFunction().
Definition at line 291 of file as_scriptengine.h.
Referenced by asCScriptEngine(), asCCompiler::CompileExpressionValue(), GetStringFactoryReturnTypeId(), and RegisterStringFactory().
Definition at line 323 of file as_scriptengine.h.
Referenced by ClearUnusedTypes(), GetTemplateInstanceType(), RegisterObjectType(), and RemoveTemplateInstanceType().
Definition at line 300 of file as_scriptengine.h.
Referenced by asCRestore::ReadObjectType(), RegisterObjectType(), and ~asCScriptEngine().
Definition at line 303 of file as_scriptengine.h.
Referenced by GetTemplateInstanceType(), RegisterObjectType(), RemoveTemplateInstanceType(), and ~asCScriptEngine().
Definition at line 326 of file as_scriptengine.h.
Referenced by asCScriptEngine(), and GetTypeIdFromDataType().
Definition at line 357 of file as_scriptengine.h.
Referenced by asCCompiler::CompileExpressionValue().
Definition at line 345 of file as_scriptengine.h.
Referenced by asCScriptEngine(), GetUserData(), and SetUserData().
1.6.1