class any
Defined at line 32 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
any provides a type-safe container for values of any of dap type (boolean,
integer, number, array, variant, any, null, dap-structs).
Public Methods
void any ()
constructors
Defined at line 35 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
void any (const any & other)
Defined at line 88 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
void any (any && other)
Defined at line 95 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
template <typename T>
void any (const T & val)
Defined at line 84 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
void ~any ()
destructors
Defined at line 79 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
void reset ()
replaces the contained value with a null.
Defined at line 106 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
any & operator= (const any & rhs)
assignment
Defined at line 115 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
any & operator= (any && rhs)
Defined at line 125 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
template <typename T>
any & operator= (const T & val)
Defined at line 140 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
any & operator= (const std::nullptr_t & val)
Defined at line 155 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
template <typename T>
T & get ()
get() returns the contained value of the type T.
If the any does not contain a value of type T, then get() will assert.
Defined at line 161 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
template <typename T>
bool is ()
is() returns true iff the contained value is of type T.
Defined at line 169 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
template <>
bool is<std::nullptr_t> ()
Defined at line 173 of file ../../third_party/github.com/google/cppdap/src/include/dap/any.h
Friends
class Serializer
class Deserializer