MessagePack for C++
Public Member Functions | List of all members
msgpack::object_handle Class Reference

The class holds object and zone. More...

#include <object.hpp>

Public Member Functions

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

Detailed Description

The class holds object and zone.

Constructor & Destructor Documentation

msgpack::object_handle::object_handle ( )
inline

Constructor that creates nil object and null zone.

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

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

Parameters
objobject
zzone

Member Function Documentation

const msgpack::object& msgpack::object_handle::get ( ) const
inline

Get object reference.

Returns
object
void msgpack::object_handle::set ( msgpack::object const &  obj)
inline
msgpack::unique_ptr<msgpack::zone>& msgpack::object_handle::zone ( )
inline

Get unique_ptr reference of zone.

Returns
unique_ptr reference of zone

Referenced by msgpack::unpacker::next(), msgpack::unpack(), and msgpack::unpacker::visitor().

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

Get unique_ptr const reference of zone.

Returns
unique_ptr const reference of zone

References msgpack::move().


The documentation for this class was generated from the following file: