Chromium Embedded Framework (CEF)
122.1.5+gf09a9bc+chromium-122.0.6261.29
|
Class that wraps other data value types. More...
#include "include/cef_values.h"
Public Member Functions | |
virtual bool | IsValid ()=0 |
Returns true if the underlying data is valid. More... | |
virtual bool | IsOwned ()=0 |
Returns true if the underlying data is owned by another object. More... | |
virtual bool | IsReadOnly ()=0 |
Returns true if the underlying data is read-only. More... | |
virtual bool | IsSame (CefRefPtr< CefValue > that)=0 |
Returns true if this object and |that| object have the same underlying data. More... | |
virtual bool | IsEqual (CefRefPtr< CefValue > that)=0 |
Returns true if this object and |that| object have an equivalent underlying value but are not necessarily the same object. More... | |
virtual CefRefPtr< CefValue > | Copy ()=0 |
Returns a copy of this object. More... | |
virtual CefValueType | GetType ()=0 |
Returns the underlying value type. More... | |
virtual bool | GetBool ()=0 |
Returns the underlying value as type bool. More... | |
virtual int | GetInt ()=0 |
Returns the underlying value as type int. More... | |
virtual double | GetDouble ()=0 |
Returns the underlying value as type double. More... | |
virtual CefString | GetString ()=0 |
Returns the underlying value as type string. More... | |
virtual CefRefPtr< CefBinaryValue > | GetBinary ()=0 |
Returns the underlying value as type binary. More... | |
virtual CefRefPtr< CefDictionaryValue > | GetDictionary ()=0 |
Returns the underlying value as type dictionary. More... | |
virtual CefRefPtr< CefListValue > | GetList ()=0 |
Returns the underlying value as type list. More... | |
virtual bool | SetNull ()=0 |
Sets the underlying value as type null. More... | |
virtual bool | SetBool (bool value)=0 |
Sets the underlying value as type bool. More... | |
virtual bool | SetInt (int value)=0 |
Sets the underlying value as type int. More... | |
virtual bool | SetDouble (double value)=0 |
Sets the underlying value as type double. More... | |
virtual bool | SetString (const CefString &value)=0 |
Sets the underlying value as type string. More... | |
virtual bool | SetBinary (CefRefPtr< CefBinaryValue > value)=0 |
Sets the underlying value as type binary. More... | |
virtual bool | SetDictionary (CefRefPtr< CefDictionaryValue > value)=0 |
Sets the underlying value as type dict. More... | |
virtual bool | SetList (CefRefPtr< CefListValue > value)=0 |
Sets the underlying value as type list. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Static Public Member Functions | |
static CefRefPtr< CefValue > | Create () |
Creates a new object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
Class 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.
Returns a copy of this object.
The underlying data will also be copied.
|
pure virtual |
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 SetValue() method instead of passing the returned reference to SetBinary().
|
pure virtual |
Returns the underlying value as type bool.
|
pure virtual |
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 SetValue() method instead of passing the returned reference to SetDictionary().
|
pure virtual |
Returns the underlying value as type double.
|
pure virtual |
Returns the underlying value as type int.
|
pure virtual |
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 SetValue() method instead of passing the returned reference to SetList().
|
pure virtual |
Returns the underlying value as type string.
|
pure virtual |
Returns the underlying value type.
Returns true if this object and |that| object have an equivalent underlying value but are not necessarily the same object.
|
pure virtual |
Returns true if the underlying data is owned by another object.
|
pure virtual |
Returns true if the underlying data is read-only.
Some APIs may expose read-only objects.
Returns true if this object and |that| object have the same underlying data.
If true modifications to this object will also affect |that| object and vice-versa.
|
pure virtual |
Returns true if the underlying data is valid.
This will always be true for simple types. For complex types (binary, dictionary and list) the underlying data may become invalid if owned by another object (e.g. list or dictionary) and that other object is then modified or destroyed. This value object can be re-used by calling Set*() even if the underlying data is invalid.
|
pure virtual |
Sets the underlying value as type binary.
Returns true if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged.
|
pure virtual |
Sets the underlying value as type bool.
Returns true if the value was set successfully.
|
pure virtual |
Sets the underlying value as type dict.
Returns true if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged.
|
pure virtual |
Sets the underlying value as type double.
Returns true if the value was set successfully.
|
pure virtual |
Sets the underlying value as type int.
Returns true if the value was set successfully.
|
pure virtual |
Sets the underlying value as type list.
Returns true if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged.
|
pure virtual |
Sets the underlying value as type null.
Returns true if the value was set successfully.
|
pure virtual |
Sets the underlying value as type string.
Returns true if the value was set successfully.