ledger-core
Classes | Public Member Functions | List of all members
ledger::core::DynamicValue Struct Reference

Public Member Functions

 DynamicValue (const DynamicValue &rhs)
 
 DynamicValue (const char *x)
 
 DynamicValue (const std::string &x)
 
 DynamicValue (const std::vector< uint8_t > &x)
 
 DynamicValue (bool x)
 
 DynamicValue (int32_t x)
 
 DynamicValue (int64_t x)
 
 DynamicValue (double x)
 
 DynamicValue (const std::shared_ptr< DynamicArray > &x)
 
 DynamicValue (const std::shared_ptr< DynamicObject > &x)
 
template<class Archive >
void serialize (Archive &ar)
 
std::string dump () const
 
std::ostream & dump (std::ostream &ss, int depth) const
 
api::DynamicType getType () const
 Get the underlying type.
 
DynamicValueoperator= (const std::string &rhs)
 Change the value to a std::string by copying.
 
DynamicValueoperator= (std::string &&rhs)
 Change the value to a std::string by moving in.
 
DynamicValueoperator= (const std::vector< uint8_t > &rhs)
 Change the value to a std::vector<uint8_t> by copying.
 
DynamicValueoperator= (std::vector< uint8_t > &&rhs)
 Change the value to a std::vector<uint8_t> by moving in.
 
DynamicValueoperator= (bool rhs)
 Change the value to a bool by copying.
 
DynamicValueoperator= (int32_t rhs)
 Change the value to a int32_t by copying.
 
DynamicValueoperator= (int64_t rhs)
 Change the value to a int64_t by copying.
 
DynamicValueoperator= (double rhs)
 Change the value to a double by copying.
 
DynamicValueoperator= (const std::shared_ptr< DynamicArray > &rhs)
 Change the value to a DynamicArray by copying.
 
DynamicValueoperator= (const std::shared_ptr< DynamicObject > &rhs)
 Change the value to a DynamicObject by copying.
 
template<typename T >
optional< T > get () const
 Try to get the value as if it were of a given type.
 
template<>
void serialize (cereal::PortableBinaryOutputArchive &)
 
template<>
void serialize (cereal::PortableBinaryInputArchive &)
 
template<>
void serialize (cereal::BinaryOutputArchive &)
 
template<>
void serialize (cereal::BinaryInputArchive &)
 

The documentation for this struct was generated from the following files: