|
API Documentation
|
|
|
Encompasses all API of component NilkinsScripts.
Definition: Environment.h:7
virtual Function * addStaticMethod(nkMemory::StringView name)=0
A view over data.
Definition: BufferView.h:18
virtual Function * getMethod(nkMemory::StringView name)=0
virtual void setDestructor(DestructorCallback destructor)=0
virtual void enableArrayIndexing(const ArrayAccessorDescriptor &descriptor)=0
virtual void addField(const UserTypeFieldDescriptor &fieldDescriptor)=0
std::function< void(void *)> DestructorCallback
Callback function signature for a destructor.
Definition: UserType.h:9
std::function< void *(const DataStack &)> ConstructorCallback
Callback function signature for a constructor.
Definition: UserType.h:8
Represents a user type and all the information and control related.
Definition: UserType.h:27
virtual Function * addMethod(nkMemory::StringView name, bool strongReferenceOverThis=false)=0
UserType(nkMemory::StringView name) noexcept
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
virtual void setConstructor(ConstructorCallback constructor)=0
nkMemory::StringView getName() const
nkMemory::StringView getFullName() const
Holds information about the way to access a user type as an array.
Definition: ArrayAccessorDescriptor.h:15
Holds information, and controls, over a function in a scripting environment.
Definition: Function.h:50
virtual Function * overrideBuiltInFunction(TYPE_BUILT_IN_FUNCTIONS builtInFunc)=0
virtual Function * getStaticMethod(nkMemory::StringView name)=0
Holds all the information required to define a field.
Definition: UserTypeFieldDescriptor.h:15
TYPE_BUILT_IN_FUNCTIONS
Available overridable built in functions.
Definition: TypeBuiltInFunctions.h:12