Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfxjse_value.h>
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_HostObject * | ToHostObject (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) |
Definition at line 24 of file cfxjse_value.h.
|
default |
CFXJSE_Value::CFXJSE_Value | ( | v8::Isolate * | pIsolate, |
v8::Local< v8::Value > | value ) |
Definition at line 77 of file cfxjse_value.cpp.
|
default |
void CFXJSE_Value::DeleteObjectProperty | ( | v8::Isolate * | pIsolate, |
ByteStringView | szPropName ) |
Definition at line 163 of file cfxjse_value.cpp.
|
inline |
Definition at line 86 of file cfxjse_value.h.
|
inline |
Definition at line 87 of file cfxjse_value.h.
bool CFXJSE_Value::GetObjectProperty | ( | v8::Isolate * | pIsolate, |
ByteStringView | szPropName, | ||
CFXJSE_Value * | pPropValue ) |
Definition at line 135 of file cfxjse_value.cpp.
bool CFXJSE_Value::GetObjectPropertyByIdx | ( | v8::Isolate * | pIsolate, |
uint32_t | uPropIdx, | ||
CFXJSE_Value * | pPropValue ) |
Definition at line 149 of file cfxjse_value.cpp.
v8::Local< v8::Value > CFXJSE_Value::GetValue | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 216 of file cfxjse_value.cpp.
bool CFXJSE_Value::IsArray | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 287 of file cfxjse_value.cpp.
References IsEmpty().
bool CFXJSE_Value::IsBoolean | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 242 of file cfxjse_value.cpp.
References 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().
bool CFXJSE_Value::IsFunction | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 296 of file cfxjse_value.cpp.
References IsEmpty().
bool CFXJSE_Value::IsInteger | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 269 of file cfxjse_value.cpp.
References IsEmpty().
bool CFXJSE_Value::IsNull | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 233 of file cfxjse_value.cpp.
References IsEmpty().
bool CFXJSE_Value::IsNumber | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 260 of file cfxjse_value.cpp.
References IsEmpty().
bool CFXJSE_Value::IsObject | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 278 of file cfxjse_value.cpp.
References IsEmpty().
bool CFXJSE_Value::IsString | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 251 of file cfxjse_value.cpp.
References IsEmpty().
bool CFXJSE_Value::IsUndefined | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 224 of file cfxjse_value.cpp.
References IsEmpty().
|
static |
Definition at line 187 of file cfxjse_value.cpp.
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.
void CFXJSE_Value::SetBoolean | ( | v8::Isolate * | pIsolate, |
bool | bBoolean ) |
Definition at line 347 of file cfxjse_value.cpp.
void CFXJSE_Value::SetDouble | ( | v8::Isolate * | pIsolate, |
double | dDouble ) |
Definition at line 357 of file cfxjse_value.cpp.
void CFXJSE_Value::SetFloat | ( | v8::Isolate * | pIsolate, |
float | fFloat ) |
Definition at line 114 of file cfxjse_value.cpp.
void CFXJSE_Value::SetHostObject | ( | v8::Isolate * | pIsolate, |
CFXJSE_HostObject * | pObject, | ||
CFXJSE_Class * | pClass ) |
Definition at line 89 of file cfxjse_value.cpp.
void CFXJSE_Value::SetInteger | ( | v8::Isolate * | pIsolate, |
int32_t | nInteger ) |
Definition at line 352 of file cfxjse_value.cpp.
void CFXJSE_Value::SetNull | ( | v8::Isolate * | pIsolate | ) |
Definition at line 342 of file cfxjse_value.cpp.
bool CFXJSE_Value::SetObjectOwnProperty | ( | v8::Isolate * | pIsolate, |
ByteStringView | szPropName, | ||
CFXJSE_Value * | pPropValue ) |
Definition at line 173 of file cfxjse_value.cpp.
bool CFXJSE_Value::SetObjectProperty | ( | v8::Isolate * | pIsolate, |
ByteStringView | szPropName, | ||
CFXJSE_Value * | pPropValue ) |
Definition at line 119 of file cfxjse_value.cpp.
References IsEmpty().
void CFXJSE_Value::SetString | ( | v8::Isolate * | pIsolate, |
ByteStringView | szString ) |
Definition at line 362 of file cfxjse_value.cpp.
void CFXJSE_Value::SetUndefined | ( | v8::Isolate * | pIsolate | ) |
Definition at line 337 of file cfxjse_value.cpp.
bool CFXJSE_Value::ToBoolean | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 305 of file cfxjse_value.cpp.
double CFXJSE_Value::ToDouble | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 316 of file cfxjse_value.cpp.
float CFXJSE_Value::ToFloat | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 312 of file cfxjse_value.cpp.
CFXJSE_HostObject * CFXJSE_Value::ToHostObject | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 83 of file cfxjse_value.cpp.
int32_t CFXJSE_Value::ToInteger | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 323 of file cfxjse_value.cpp.
ByteString CFXJSE_Value::ToString | ( | v8::Isolate * | pIsolate | ) | const |
Definition at line 330 of file cfxjse_value.cpp.
|
inline |
Definition at line 45 of file cfxjse_value.h.