Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QNapi::Object Class Reference

#include <qnapi_p.h>

Inheritance diagram for QNapi::Object:
Collaboration diagram for QNapi::Object:

Public Member Functions

 Object (const Napi::Object &other)
Object & operator= (const Napi::Object &other)
template<typename T = Value>
T get (const std::string &expr) const
template<typename T = Value>
T get (const Napi::Name &name) const
template<typename T = Value>
T eval (const std::string &expr, const std::vector< ValueWrapper > &exprArgs={}) const
QNapi::Promise evalToPromiseOrRejectOnThrow (const std::string &expr, const std::vector< ValueWrapper > &exprArgs={}) const
void set (const std::string &name, const ValueWrapper &value)
void set (const Napi::Name &name, const ValueWrapper &value)
void set (const std::vector< std::pair< std::string, ValueWrapper > > &namedValues)
template<typename Result = Value>
 Q_DECL_DEPRECATED_X ("Use eval() with a methodName() or methodName(*) expression instead.") Result call(const std

Static Public Member Functions

static Object New (napi_env env)

Public Attributes

 const

Detailed Description

Definition at line 118 of file qnapi_p.h.

Constructor & Destructor Documentation

◆ Object()

Object::Object ( const Napi::Object & other)
inline

Definition at line 12 of file object.cpp.

Member Function Documentation

◆ eval()

template<typename T>
T Object::eval ( const std::string & expr,
const std::vector< ValueWrapper > & exprArgs = {} ) const

Definition at line 935 of file qnapi_p.h.

◆ evalToPromiseOrRejectOnThrow()

QNapi::Promise Object::evalToPromiseOrRejectOnThrow ( const std::string & expr,
const std::vector< ValueWrapper > & exprArgs = {} ) const
inline

Definition at line 946 of file qnapi_p.h.

◆ get() [1/2]

template<typename T>
T Object::get ( const Napi::Name & name) const

Definition at line 918 of file qnapi_p.h.

◆ get() [2/2]

template<typename T>
T Object::get ( const std::string & expr) const

Definition at line 908 of file qnapi_p.h.

◆ New()

Object Object::New ( napi_env env)
inlinestatic

Definition at line 868 of file qnapi_p.h.

◆ operator=()

Object & Object::operator= ( const Napi::Object & other)
inline

Definition at line 901 of file qnapi_p.h.

◆ Q_DECL_DEPRECATED_X()

template<typename Result = Value>
QNapi::Object::Q_DECL_DEPRECATED_X ( "Use eval() with a methodName() or methodName(*) expression instead." ) const
inline

Definition at line 146 of file qnapi_p.h.

◆ set() [1/3]

void Object::set ( const Napi::Name & name,
const ValueWrapper & value )
inline

Definition at line 968 of file qnapi_p.h.

◆ set() [2/3]

void Object::set ( const std::string & name,
const ValueWrapper & value )
inline

Definition at line 962 of file qnapi_p.h.

◆ set() [3/3]

void Object::set ( const std::vector< std::pair< std::string, ValueWrapper > > & namedValues)
inline

Definition at line 974 of file qnapi_p.h.

Member Data Documentation

◆ const

QNapi::Object::const

Definition at line 147 of file qnapi_p.h.


The documentation for this class was generated from the following files: