API Documentation
ArrayWrapper.h
1 // ArrayWrapper.h
3 //
5 
7 {
20  template <typename T, int S>
22  {
23  public :
24 
25  // Utils
32 
33  // Registering
54  static void updateEnvironmentClass (nkScripts::Environment* env, const nkMemory::StringView& typeName, const nkMemory::StringView& containedType) ;
55 
56  // Constructor, destructor
67  static void* constructor (const nkScripts::DataStack& stack) ;
73  static void destructor (void* data) ;
74 
75  // Getters
87 
88  // Operators
127  static void writeIndexPod (const nkScripts::DataStack& stack) ;
139  static void writeIndexClass (const nkScripts::DataStack& stack) ;
140  } ;
141 }
142 
143 namespace nkAstraeus::lua::stdWrap
144 {
148  class ArrayWrapper final
149  {
150  public :
151 
152  // Environment update
168  } ;
169 }
nkAstraeus::stdWrap::ArrayWrapperTemplate::readIndexClass
static nkScripts::OutputValue readIndexClass(const nkScripts::DataStack &stack, const nkMemory::StringView &typeName)
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::stdWrap
Encompasses the wrapping of std for scripting.
Definition: ArrayWrapper.h:7
nkAstraeus::stdWrap::ArrayWrapperTemplate::writeIndexClass
static void writeIndexClass(const nkScripts::DataStack &stack)
nkAstraeus::stdWrap::ArrayWrapperTemplate::writeIndexPod
static void writeIndexPod(const nkScripts::DataStack &stack)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::stdWrap::ArrayWrapperTemplate::constructor
static void * constructor(const nkScripts::DataStack &stack)
nkAstraeus::lua::stdWrap::ArrayWrapper
Wraps available template specializations for std::array and offers functions for use in scripting.
Definition: ArrayWrapper.h:149
nkAstraeus::stdWrap::ArrayWrapperTemplate::getNkType
static nkScripts::FUNCTION_PARAMETER_TYPE getNkType()
nkAstraeus::stdWrap::ArrayWrapperTemplate::updateEnvironmentClass
static void updateEnvironmentClass(nkScripts::Environment *env, const nkMemory::StringView &typeName, const nkMemory::StringView &containedType)
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::stdWrap::ArrayWrapperTemplate::size
static nkScripts::OutputValue size(const nkScripts::DataStack &stack)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkAstraeus::stdWrap::ArrayWrapperTemplate
Basic template class for wrapping a std::array into a scripting environment.
Definition: ArrayWrapper.h:22
nkAstraeus::stdWrap::ArrayWrapperTemplate::updateEnvironmentPod
static void updateEnvironmentPod(nkScripts::Environment *env, const nkMemory::StringView &typeName)
nkScripts::FUNCTION_PARAMETER_TYPE
FUNCTION_PARAMETER_TYPE
Describes a variable type.
Definition: FunctionParameterType.h:12
nkAstraeus::lua::stdWrap::ArrayWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env)
nkAstraeus::stdWrap::ArrayWrapperTemplate::destructor
static void destructor(void *data)
nkAstraeus::stdWrap::ArrayWrapperTemplate::readIndexPod
static nkScripts::OutputValue readIndexPod(const nkScripts::DataStack &stack)