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
CFXJSE_Value Class Reference

#include <cfxjse_value.h>

+ Collaboration diagram for CFXJSE_Value:

Public Member Functions

 CFXJSE_Value ()
 
 CFXJSE_Value (v8::Isolate *pIsolate, v8::Local< v8::Value > value)
 
 ~CFXJSE_Value ()
 
bool IsEmpty () const
 
bool IsUndefined (v8::Isolate *pIsolate) const
 
bool IsNull (v8::Isolate *pIsolate) const
 
bool IsBoolean (v8::Isolate *pIsolate) const
 
bool IsString (v8::Isolate *pIsolate) const
 
bool IsNumber (v8::Isolate *pIsolate) const
 
bool IsInteger (v8::Isolate *pIsolate) const
 
bool IsObject (v8::Isolate *pIsolate) const
 
bool IsArray (v8::Isolate *pIsolate) const
 
bool IsFunction (v8::Isolate *pIsolate) const
 
bool ToBoolean (v8::Isolate *pIsolate) const
 
float ToFloat (v8::Isolate *pIsolate) const
 
double ToDouble (v8::Isolate *pIsolate) const
 
int32_t ToInteger (v8::Isolate *pIsolate) const
 
ByteString ToString (v8::Isolate *pIsolate) const
 
WideString ToWideString (v8::Isolate *pIsolate) const
 
CFXJSE_HostObjectToHostObject (v8::Isolate *pIsolate) const
 
void SetUndefined (v8::Isolate *pIsolate)
 
void SetNull (v8::Isolate *pIsolate)
 
void SetBoolean (v8::Isolate *pIsolate, bool bBoolean)
 
void SetInteger (v8::Isolate *pIsolate, int32_t nInteger)
 
void SetDouble (v8::Isolate *pIsolate, double dDouble)
 
void SetString (v8::Isolate *pIsolate, ByteStringView szString)
 
void SetFloat (v8::Isolate *pIsolate, float fFloat)
 
void SetHostObject (v8::Isolate *pIsolate, CFXJSE_HostObject *pObject, CFXJSE_Class *pClass)
 
void SetArray (v8::Isolate *pIsolate, const std::vector< std::unique_ptr< CFXJSE_Value > > &values)
 
bool GetObjectProperty (v8::Isolate *pIsolate, ByteStringView szPropName, CFXJSE_Value *pPropValue)
 
bool SetObjectProperty (v8::Isolate *pIsolate, ByteStringView szPropName, CFXJSE_Value *pPropValue)
 
bool GetObjectPropertyByIdx (v8::Isolate *pIsolate, uint32_t uPropIdx, CFXJSE_Value *pPropValue)
 
void DeleteObjectProperty (v8::Isolate *pIsolate, ByteStringView szPropName)
 
bool SetObjectOwnProperty (v8::Isolate *pIsolate, ByteStringView szPropName, CFXJSE_Value *pPropValue)
 
v8::Local< v8::Value > GetValue (v8::Isolate *pIsolate) const
 
const v8::Global< v8::Value > & DirectGetValue () const
 
void ForceSetValue (v8::Isolate *pIsolate, v8::Local< v8::Value > hValue)
 

Static Public Member Functions

static v8::Local< v8::Function > NewBoundFunction (v8::Isolate *pIsolate, v8::Local< v8::Function > hOldFunction, v8::Local< v8::Object > lpNewThis)
 

Detailed Description

Definition at line 24 of file cfxjse_value.h.

Constructor & Destructor Documentation

◆ CFXJSE_Value() [1/2]

CFXJSE_Value::CFXJSE_Value ( )
default

◆ CFXJSE_Value() [2/2]

CFXJSE_Value::CFXJSE_Value ( v8::Isolate * pIsolate,
v8::Local< v8::Value > value )

Definition at line 77 of file cfxjse_value.cpp.

◆ ~CFXJSE_Value()

CFXJSE_Value::~CFXJSE_Value ( )
default

Member Function Documentation

◆ DeleteObjectProperty()

void CFXJSE_Value::DeleteObjectProperty ( v8::Isolate * pIsolate,
ByteStringView szPropName )

Definition at line 163 of file cfxjse_value.cpp.

◆ DirectGetValue()

const v8::Global< v8::Value > & CFXJSE_Value::DirectGetValue ( ) const
inline

Definition at line 86 of file cfxjse_value.h.

◆ ForceSetValue()

void CFXJSE_Value::ForceSetValue ( v8::Isolate * pIsolate,
v8::Local< v8::Value > hValue )
inline

Definition at line 87 of file cfxjse_value.h.

◆ GetObjectProperty()

bool CFXJSE_Value::GetObjectProperty ( v8::Isolate * pIsolate,
ByteStringView szPropName,
CFXJSE_Value * pPropValue )

Definition at line 135 of file cfxjse_value.cpp.

◆ GetObjectPropertyByIdx()

bool CFXJSE_Value::GetObjectPropertyByIdx ( v8::Isolate * pIsolate,
uint32_t uPropIdx,
CFXJSE_Value * pPropValue )

Definition at line 149 of file cfxjse_value.cpp.

◆ GetValue()

v8::Local< v8::Value > CFXJSE_Value::GetValue ( v8::Isolate * pIsolate) const

Definition at line 216 of file cfxjse_value.cpp.

◆ IsArray()

bool CFXJSE_Value::IsArray ( v8::Isolate * pIsolate) const

Definition at line 287 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ IsBoolean()

bool CFXJSE_Value::IsBoolean ( v8::Isolate * pIsolate) const

Definition at line 242 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ IsEmpty()

bool CFXJSE_Value::IsEmpty ( ) const

Definition at line 220 of file cfxjse_value.cpp.

Referenced by IsArray(), IsBoolean(), IsFunction(), IsInteger(), IsNull(), IsNumber(), IsObject(), IsString(), IsUndefined(), and SetObjectProperty().

+ Here is the caller graph for this function:

◆ IsFunction()

bool CFXJSE_Value::IsFunction ( v8::Isolate * pIsolate) const

Definition at line 296 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ IsInteger()

bool CFXJSE_Value::IsInteger ( v8::Isolate * pIsolate) const

Definition at line 269 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ IsNull()

bool CFXJSE_Value::IsNull ( v8::Isolate * pIsolate) const

Definition at line 233 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ IsNumber()

bool CFXJSE_Value::IsNumber ( v8::Isolate * pIsolate) const

Definition at line 260 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ IsObject()

bool CFXJSE_Value::IsObject ( v8::Isolate * pIsolate) const

Definition at line 278 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ IsString()

bool CFXJSE_Value::IsString ( v8::Isolate * pIsolate) const

Definition at line 251 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ IsUndefined()

bool CFXJSE_Value::IsUndefined ( v8::Isolate * pIsolate) const

Definition at line 224 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ NewBoundFunction()

v8::Local< v8::Function > CFXJSE_Value::NewBoundFunction ( v8::Isolate * pIsolate,
v8::Local< v8::Function > hOldFunction,
v8::Local< v8::Object > lpNewThis )
static

Definition at line 187 of file cfxjse_value.cpp.

◆ SetArray()

void CFXJSE_Value::SetArray ( v8::Isolate * pIsolate,
const std::vector< std::unique_ptr< CFXJSE_Value > > & values )

Definition at line 97 of file cfxjse_value.cpp.

◆ SetBoolean()

void CFXJSE_Value::SetBoolean ( v8::Isolate * pIsolate,
bool bBoolean )

Definition at line 347 of file cfxjse_value.cpp.

◆ SetDouble()

void CFXJSE_Value::SetDouble ( v8::Isolate * pIsolate,
double dDouble )

Definition at line 357 of file cfxjse_value.cpp.

◆ SetFloat()

void CFXJSE_Value::SetFloat ( v8::Isolate * pIsolate,
float fFloat )

Definition at line 114 of file cfxjse_value.cpp.

◆ SetHostObject()

void CFXJSE_Value::SetHostObject ( v8::Isolate * pIsolate,
CFXJSE_HostObject * pObject,
CFXJSE_Class * pClass )

Definition at line 89 of file cfxjse_value.cpp.

◆ SetInteger()

void CFXJSE_Value::SetInteger ( v8::Isolate * pIsolate,
int32_t nInteger )

Definition at line 352 of file cfxjse_value.cpp.

◆ SetNull()

void CFXJSE_Value::SetNull ( v8::Isolate * pIsolate)

Definition at line 342 of file cfxjse_value.cpp.

◆ SetObjectOwnProperty()

bool CFXJSE_Value::SetObjectOwnProperty ( v8::Isolate * pIsolate,
ByteStringView szPropName,
CFXJSE_Value * pPropValue )

Definition at line 173 of file cfxjse_value.cpp.

◆ SetObjectProperty()

bool CFXJSE_Value::SetObjectProperty ( v8::Isolate * pIsolate,
ByteStringView szPropName,
CFXJSE_Value * pPropValue )

Definition at line 119 of file cfxjse_value.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ SetString()

void CFXJSE_Value::SetString ( v8::Isolate * pIsolate,
ByteStringView szString )

Definition at line 362 of file cfxjse_value.cpp.

◆ SetUndefined()

void CFXJSE_Value::SetUndefined ( v8::Isolate * pIsolate)

Definition at line 337 of file cfxjse_value.cpp.

◆ ToBoolean()

bool CFXJSE_Value::ToBoolean ( v8::Isolate * pIsolate) const

Definition at line 305 of file cfxjse_value.cpp.

◆ ToDouble()

double CFXJSE_Value::ToDouble ( v8::Isolate * pIsolate) const

Definition at line 316 of file cfxjse_value.cpp.

◆ ToFloat()

float CFXJSE_Value::ToFloat ( v8::Isolate * pIsolate) const

Definition at line 312 of file cfxjse_value.cpp.

◆ ToHostObject()

CFXJSE_HostObject * CFXJSE_Value::ToHostObject ( v8::Isolate * pIsolate) const

Definition at line 83 of file cfxjse_value.cpp.

◆ ToInteger()

int32_t CFXJSE_Value::ToInteger ( v8::Isolate * pIsolate) const

Definition at line 323 of file cfxjse_value.cpp.

◆ ToString()

ByteString CFXJSE_Value::ToString ( v8::Isolate * pIsolate) const

Definition at line 330 of file cfxjse_value.cpp.

◆ ToWideString()

WideString CFXJSE_Value::ToWideString ( v8::Isolate * pIsolate) const
inline

Definition at line 45 of file cfxjse_value.h.


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