The OpenD Programming Language

cef_value_t

Structure that wraps other data value types. Complex types (binary, dictionary and list) will be referenced but not owned by this object. Can be used on any process and thread.

version(cef && embedded_cef_bindings)
extern (C)
struct cef_value_t {
extern (System)
int function(cef_value_t* self) nothrow is_valid;
}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

copy
cef_value_t* function(cef_value_t* self) nothrow copy;

Returns a copy of this object. The underlying data will also be copied.

get_binary
cef_binary_value_t* function(cef_value_t* self) nothrow get_binary;

Returns the underlying value as type binary. The returned reference may become invalid if the value is owned by another object or if ownership is transferred to another object in the future. To maintain a reference to the value after assigning ownership to a dictionary or list pass this object to the set_value() function instead of passing the returned reference to set_binary().

get_bool
int function(cef_value_t* self) nothrow get_bool;

Returns the underlying value as type bool.

get_dictionary
cef_dictionary_value_t* function(cef_value_t* self) nothrow get_dictionary;

Returns the underlying value as type dictionary. The returned reference may become invalid if the value is owned by another object or if ownership is transferred to another object in the future. To maintain a reference to the value after assigning ownership to a dictionary or list pass this object to the set_value() function instead of passing the returned reference to set_dictionary().

get_double
double function(cef_value_t* self) nothrow get_double;

Returns the underlying value as type double.

get_int
int function(cef_value_t* self) nothrow get_int;

Returns the underlying value as type int.

get_list
cef_list_value_t* function(cef_value_t* self) nothrow get_list;

Returns the underlying value as type list. The returned reference may become invalid if the value is owned by another object or if ownership is transferred to another object in the future. To maintain a reference to the value after assigning ownership to a dictionary or list pass this object to the set_value() function instead of passing the returned reference to set_list().

get_string
cef_string_userfree_t function(cef_value_t* self) nothrow get_string;

Returns the underlying value as type string.

get_type
cef_value_type_t function(cef_value_t* self) nothrow get_type;

Returns the underlying value type.

is_equal
int function(cef_value_t* self, cef_value_t* that) nothrow is_equal;

Returns true (1) if this object and |that| object have an equivalent underlying value but are not necessarily the same object.

is_owned
int function(cef_value_t* self) nothrow is_owned;
is_read_only
int function(cef_value_t* self) nothrow is_read_only;

Returns true (1) if the underlying data is read-only. Some APIs may expose read-only objects.

is_same
int function(cef_value_t* self, cef_value_t* that) nothrow is_same;

Returns true (1) if this object and |that| object have the same underlying data. If true (1) modifications to this object will also affect |that| object and vice-versa.

set_binary
int function(cef_value_t* self, cef_binary_value_t* value) nothrow set_binary;

Sets the underlying value as type binary. Returns true (1) if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged.

set_bool
int function(cef_value_t* self, int value) nothrow set_bool;

Sets the underlying value as type bool. Returns true (1) if the value was set successfully.

set_dictionary
int function(cef_value_t* self, cef_dictionary_value_t* value) nothrow set_dictionary;

Sets the underlying value as type dict. Returns true (1) if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged.

set_double
int function(cef_value_t* self, double value) nothrow set_double;

Sets the underlying value as type double. Returns true (1) if the value was set successfully.

set_int
int function(cef_value_t* self, int value) nothrow set_int;

Sets the underlying value as type int. Returns true (1) if the value was set successfully.

set_list
int function(cef_value_t* self, cef_list_value_t* value) nothrow set_list;

Sets the underlying value as type list. Returns true (1) if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged.

set_null
int function(cef_value_t* self) nothrow set_null;

Sets the underlying value as type null. Returns true (1) if the value was set successfully.

set_string
int function(cef_value_t* self, const(cef_string_t)* value) nothrow set_string;

Sets the underlying value as type string. Returns true (1) if the value was set successfully.

Meta