#include <C4AulDefFunc.h>
Public Types | |
typedef RType(* | Func) (ThisType *, ParTypes...) |
Public Member Functions | |
C4AulEngineFunc (C4PropListStatic *Parent, const char *pName, Func pFunc, bool Public) | |
int | GetParCount () const override |
const C4V_Type * | GetParType () const override |
C4V_Type | GetRetType () const override |
bool | GetPublic () const override |
C4Value | Exec (C4PropList *_this, C4Value pPars[], bool fPassErrors) override |
const char * | GetName () const |
virtual StdStrBuf | GetFullName () const |
virtual C4AulScriptFunc * | SFunc () |
C4Value | Exec (C4PropList *p=nullptr, C4AulParSet *pPars=nullptr, bool fPassErrors=false) |
bool | CheckParTypes (const C4Value pPars[], bool fPassErrors) const |
void | IncRef () |
void | DecRef () |
Public Attributes | |
C4PropListStatic * | Parent |
Protected Attributes | |
Func | pFunc |
C4V_Type | ParType [C4AUL_MAX_Par] |
bool | Public |
C4RefCntPointer< C4String > | Name |
C4AulFunc * | MapNext |
unsigned int | RefCnt {0} |
Definition at line 214 of file C4AulDefFunc.h.
typedef RType(* C4AulEngineFunc< RType, ThisType, ParTypes >::Func) (ThisType *, ParTypes...) |
Definition at line 218 of file C4AulDefFunc.h.
|
inline |
Definition at line 220 of file C4AulDefFunc.h.
References C4AUL_MAX_Par, C4V_Any, C4VFunction(), C4AulEngineFunc< RType, ThisType, ParTypes >::GetParCount(), C4AulFunc::Name, C4AulFunc::Parent, C4AulEngineFunc< RType, ThisType, ParTypes >::ParType, and C4PropList::SetPropertyByS().
|
inherited |
Definition at line 58 of file C4AulFunc.cpp.
References FormatString(), GetC4VName(), C4AulScriptEngine::GetErrorHandler(), C4AulFunc::GetName(), C4AulFunc::GetParCount(), C4AulFunc::GetParType(), C4AulErrorHandler::OnError(), ScriptEngine, and C4AulError::what().
Referenced by C4AulFunc::Exec().
|
inlineinherited |
Definition at line 28 of file C4StringTable.h.
References C4RefCnt::RefCnt.
Referenced by C4Command::Clear(), C4Command::CompileFunc(), C4Property::CompileFunc(), C4Def::GetActionByName(), C4Property::operator=(), C4Object::SetActionByName(), C4AulScriptFunc::SetOverloaded(), C4ScriptHost::UnlinkOwnedFunctions(), C4AulScriptFunc::~C4AulScriptFunc(), C4Property::~C4Property(), C4ScriptGuiWindow::~C4ScriptGuiWindow(), and C4ScriptGuiWindowAction::~C4ScriptGuiWindowAction().
|
inlineoverridevirtual |
Implements C4AulFunc.
Definition at line 249 of file C4AulDefFunc.h.
References ExecImpl< RType, ThisType, ParTypes >::Exec(), and C4AulEngineFunc< RType, ThisType, ParTypes >::pFunc.
|
inlineinherited |
Definition at line 72 of file C4AulFunc.h.
References C4AulFunc::CheckParTypes().
Referenced by C4PropList::Call(), C4Effect::CallDamage(), C4Effect::CallEffect(), C4Effect::CallStart(), C4Effect::CallStop(), C4Effect::CallTimer(), C4Effect::DoCall(), C4MCCallbackArray::Execute(), C4MaterialMap::mrfScript(), C4Player::NotifyOwnedObjects(), and C4Object::PutAwayUnusedObject().
|
virtualinherited |
Definition at line 38 of file C4AulFunc.cpp.
References StdStrBuf::Append(), StdStrBuf::AppendChar(), C4String::GetData(), C4PropListStatic::GetDataString(), C4AulFunc::GetName(), C4AulFunc::Name, C4AulFunc::Parent, StdStrBuf::Ref(), and StdStrBuf::Take().
|
inlineinherited |
Definition at line 56 of file C4AulFunc.h.
References C4String::GetCStr(), and C4AulFunc::Name.
Referenced by C4AulFuncMap::Add(), C4AulFunc::C4AulFunc(), C4AulParseError::C4AulParseError(), C4AulFunc::CheckParTypes(), C4Value::CompileFunc(), C4EditCursor::DoContextMenu(), C4AulScriptFunc::DumpByteCode(), C4AulFuncMap::GetFirstFunc(), C4AulFunc::GetFullName(), C4AulFuncMap::GetNextSNFunc(), C4AulFuncMap::Remove(), C4AulScriptContext::ReturnDump(), and C4AulFunc::~C4AulFunc().
|
inlineoverridevirtual |
Reimplemented from C4AulFunc.
Definition at line 229 of file C4AulDefFunc.h.
Referenced by C4AulEngineFunc< RType, ThisType, ParTypes >::C4AulEngineFunc().
|
inlineoverridevirtual |
Implements C4AulFunc.
Definition at line 234 of file C4AulDefFunc.h.
References C4AulEngineFunc< RType, ThisType, ParTypes >::ParType.
|
inlineoverridevirtual |
Reimplemented from C4AulFunc.
Definition at line 244 of file C4AulDefFunc.h.
References C4AulEngineFunc< RType, ThisType, ParTypes >::Public.
|
inlineoverridevirtual |
Implements C4AulFunc.
Definition at line 239 of file C4AulDefFunc.h.
|
inlineinherited |
Definition at line 27 of file C4StringTable.h.
References C4RefCnt::RefCnt.
Referenced by C4Property::C4Property(), C4Command::CompileFunc(), C4Property::CompileFunc(), C4ScriptGuiWindow::CreateFromPropList(), C4Def::GetActionByName(), C4ScriptGuiWindowAction::Init(), C4Property::operator=(), C4ScriptGuiWindowProperty::Set(), C4Command::Set(), C4Object::SetActionByName(), and C4AulScriptFunc::SetOverloaded().
|
inlinevirtualinherited |
Reimplemented in C4AulScriptFunc.
Definition at line 65 of file C4AulFunc.h.
Referenced by C4ScriptHost::CopyPropList(), and C4ScriptHost::UnlinkOwnedFunctions().
|
protectedinherited |
Definition at line 61 of file C4AulFunc.h.
Referenced by C4AulFuncMap::Add(), C4AulFuncMap::GetFirstFunc(), C4AulFuncMap::GetNextSNFunc(), and C4AulFuncMap::Remove().
|
protectedinherited |
Definition at line 60 of file C4AulFunc.h.
Referenced by C4AulDefFunc::C4AulDefFunc(), C4AulEngineFunc< RType, ThisType, ParTypes >::C4AulEngineFunc(), C4ScriptHost::CopyPropList(), C4AulFunc::GetFullName(), C4AulFunc::GetName(), and C4ScriptHost::UnlinkOwnedFunctions().
|
inherited |
Definition at line 55 of file C4AulFunc.h.
Referenced by C4AulDefFunc::C4AulDefFunc(), C4AulEngineFunc< RType, ThisType, ParTypes >::C4AulEngineFunc(), C4Value::CompileFunc(), C4AulFunc::GetFullName(), C4AulScriptContext::ReturnDump(), and C4ScriptHost::UnlinkOwnedFunctions().
|
protected |
Definition at line 256 of file C4AulDefFunc.h.
Referenced by C4AulEngineFunc< RType, ThisType, ParTypes >::C4AulEngineFunc(), and C4AulEngineFunc< RType, ThisType, ParTypes >::GetParType().
|
protected |
Definition at line 255 of file C4AulDefFunc.h.
Referenced by C4AulEngineFunc< RType, ThisType, ParTypes >::Exec().
|
protected |
Definition at line 257 of file C4AulDefFunc.h.
Referenced by C4AulEngineFunc< RType, ThisType, ParTypes >::GetPublic().
|
protectedinherited |
Definition at line 31 of file C4StringTable.h.
Referenced by C4RefCnt::DecRef(), and C4RefCnt::IncRef().