messagepack implementation for embedded systems (mbed / arduino)

Dependents:   hello_message_pack

Embed: (wiki syntax)

« Back to documentation index

object_handle Class Reference

object_handle Class Reference

#include <object.hpp>

Public Member Functions

 object_handle ()
 Constructor that creates nil object and null zone.
 object_handle (msgpack::object const &obj, msgpack::unique_ptr< msgpack::zone > z)
 Constructor that creates an object_handle holding object `obj` and zone `z`.
const msgpack::objectget () const
 Get object reference.
msgpack::unique_ptr
< msgpack::zone > & 
zone ()
 Get unique_ptr reference of zone.
const msgpack::unique_ptr
< msgpack::zone > & 
zone () const
 Get unique_ptr const reference of zone.

Detailed Description

The class holds object and zone

Definition at line 33 of file object.hpp.


Constructor & Destructor Documentation

Constructor that creates nil object and null zone.

Definition at line 36 of file object.hpp.

object_handle ( msgpack::object const &  obj,
msgpack::unique_ptr< msgpack::zone >  z 
)

Constructor that creates an object_handle holding object `obj` and zone `z`.

Parameters:
objobject
zzone

Definition at line 43 of file object.hpp.


Member Function Documentation

const msgpack::object& get (  ) const

Get object reference.

Returns:
object

Definition at line 54 of file object.hpp.

msgpack::unique_ptr<msgpack::zone>& zone (  )

Get unique_ptr reference of zone.

Returns:
unique_ptr reference of zone

Definition at line 61 of file object.hpp.

const msgpack::unique_ptr<msgpack::zone>& zone (  ) const

Get unique_ptr const reference of zone.

Returns:
unique_ptr const reference of zone

Definition at line 68 of file object.hpp.