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)
Objectoperator= (const Napi::Object &other)
template<typename T = Value>
get (const std::string &expr) const
template<typename T = Value>
get (const Napi::Name &name) const
template<typename T>
eval (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>
Result call (const std::string &methodName, const std::vector< ValueWrapper > &args={}) const

Static Public Member Functions

static Object New (napi_env env)

Detailed Description

Definition at line 116 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

◆ call()

template<typename Result>
Result Object::call ( const std::string & methodName,
const std::vector< ValueWrapper > & args = {} ) const

Definition at line 926 of file qnapi_p.h.

Referenced by coverage_report.CoverageExecutor::build_binaries(), coverage_report.CoverageExecutor::generate_coverage(), coverage_report.CoverageExecutor::generate_html_report(), and coverage_report.CoverageExecutor::merge_raw_coverage_results().

Here is the caller graph for this function:

◆ eval()

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

Definition at line 895 of file qnapi_p.h.

◆ get() [1/2]

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

Definition at line 878 of file qnapi_p.h.

◆ get() [2/2]

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

Definition at line 868 of file qnapi_p.h.

◆ New()

Object Object::New ( napi_env env)
inlinestatic

Definition at line 828 of file qnapi_p.h.

◆ operator=()

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

Definition at line 861 of file qnapi_p.h.

◆ set() [1/3]

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

Definition at line 912 of file qnapi_p.h.

◆ set() [2/3]

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

Definition at line 906 of file qnapi_p.h.

◆ set() [3/3]

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

Definition at line 918 of file qnapi_p.h.


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