///////////////////////////////////////////////////////////////////
Synopsis
Declared in <folly/json/dynamic.h>
struct const_dynamic_view;
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Returns the viewed boolean, or the default if absent or not a boolean. |
|
Traverses a dynamic by repeatedly applying operator[]. |
|
Returns the viewed double, or the default if absent or not a double. |
|
Tests whether this view is not backed by a dynamic. |
|
Returns the viewed integer, or the default if absent or not an integer. |
|
Resets the view to a default‐constructed state not backed by any dynamic. |
|
|
|
Returns a copy of the viewed dynamic, or a default if the view is empty. |
|
Tests whether this view is backed by a dynamic. |
Protected Member Functions
Name |
Description |
|
Constructs a view from a dynamic pointer. |
|
|
|
|
Accesses a value by type, returning a copy. |
Protected Data Members
Name |
Description |
Pointer to the viewed dynamic, or nullptr when the view is empty. |
Derived Classes
Name |
Description |
A mutable view of a dynamic that can extract values without copying. |
Created with MrDocs