nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::BuiltinClass Struct Reference

Public Attributes

std::string name
bool isHandle = false
bool isSealed = false
bool isAbstract = false
std::vector< std::string > superclasses
std::function< Value(Span< const Value > args, CallContext &ctx)> construct
std::unordered_map< std::string, ObjectMethod > methods
std::vector< std::string > propNames
std::function< bool(const Value &self, const std::string &name, Value &out, CallContext &ctx)> propGet
std::function< bool(Value &self, const std::string &name, const Value &val, CallContext &ctx)> propSet
ObjectMethod subsref
ObjectMethod subsasgn
std::function< std::string(const Value &self)> dispText
std::unordered_map< std::string, ObjectMethod > ops
std::vector< std::string > hidden
std::vector< PropMeta > propMeta
std::vector< MethodMeta > methodMeta
std::unordered_map< std::string, std::shared_ptr< const UserFunction > > methodFns

Detailed Description

Definition at line 92 of file value/include/nk/value/object.hpp.

Member Data Documentation

◆ construct

std::function<Value(Span<const Value> args, CallContext &ctx)> nk::BuiltinClass::construct

Definition at line 101 of file value/include/nk/value/object.hpp.

◆ dispText

std::function<std::string(const Value &self)> nk::BuiltinClass::dispText

Definition at line 122 of file value/include/nk/value/object.hpp.

◆ hidden

std::vector<std::string> nk::BuiltinClass::hidden

Definition at line 126 of file value/include/nk/value/object.hpp.

◆ isAbstract

bool nk::BuiltinClass::isAbstract = false

Definition at line 97 of file value/include/nk/value/object.hpp.

◆ isHandle

bool nk::BuiltinClass::isHandle = false

Definition at line 95 of file value/include/nk/value/object.hpp.

◆ isSealed

bool nk::BuiltinClass::isSealed = false

Definition at line 96 of file value/include/nk/value/object.hpp.

◆ methodFns

std::unordered_map<std::string, std::shared_ptr<const UserFunction> > nk::BuiltinClass::methodFns

Definition at line 136 of file value/include/nk/value/object.hpp.

◆ methodMeta

std::vector<MethodMeta> nk::BuiltinClass::methodMeta

Definition at line 131 of file value/include/nk/value/object.hpp.

◆ methods

std::unordered_map<std::string, ObjectMethod> nk::BuiltinClass::methods

Definition at line 104 of file value/include/nk/value/object.hpp.

◆ name

std::string nk::BuiltinClass::name

Definition at line 94 of file value/include/nk/value/object.hpp.

◆ ops

std::unordered_map<std::string, ObjectMethod> nk::BuiltinClass::ops

Definition at line 123 of file value/include/nk/value/object.hpp.

◆ propGet

std::function<bool(const Value &self, const std::string &name, Value &out, CallContext &ctx)> nk::BuiltinClass::propGet

Definition at line 111 of file value/include/nk/value/object.hpp.

◆ propMeta

std::vector<PropMeta> nk::BuiltinClass::propMeta

Definition at line 130 of file value/include/nk/value/object.hpp.

◆ propNames

std::vector<std::string> nk::BuiltinClass::propNames

Definition at line 109 of file value/include/nk/value/object.hpp.

◆ propSet

std::function<bool(Value &self, const std::string &name, const Value &val, CallContext &ctx)> nk::BuiltinClass::propSet

Definition at line 113 of file value/include/nk/value/object.hpp.

◆ subsasgn

ObjectMethod nk::BuiltinClass::subsasgn

Definition at line 121 of file value/include/nk/value/object.hpp.

◆ subsref

ObjectMethod nk::BuiltinClass::subsref

Definition at line 120 of file value/include/nk/value/object.hpp.

◆ superclasses

std::vector<std::string> nk::BuiltinClass::superclasses

Definition at line 98 of file value/include/nk/value/object.hpp.


The documentation for this struct was generated from the following file: