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

#include <create_object_visitor.hpp>

Inheritance diagram for msgpack::detail::create_object_visitor:
Inheritance graph
[legend]
Collaboration diagram for msgpack::detail::create_object_visitor:
Collaboration graph
[legend]

Public Member Functions

 create_object_visitor (unpack_reference_func f, void *user_data, unpack_limit const &limit)
 
 create_object_visitor (create_object_visitor &&other)
 
create_object_visitoroperator= (create_object_visitor &&other)
 
void init ()
 
msgpack::object const & data () const
 
msgpack::zone const & zone () const
 
msgpack::zonezone ()
 
void set_zone (msgpack::zone &zone)
 
bool referenced () const
 
void set_referenced (bool referenced)
 
bool visit_nil ()
 
bool visit_boolean (bool v)
 
bool visit_positive_integer (uint64_t v)
 
bool visit_negative_integer (int64_t v)
 
bool visit_float32 (float v)
 
bool visit_float64 (double v)
 
bool visit_str (const char *v, uint32_t size)
 
bool visit_bin (const char *v, uint32_t size)
 
bool visit_ext (const char *v, uint32_t size)
 
bool start_array (uint32_t num_elements)
 
bool start_array_item ()
 
bool end_array_item ()
 
bool end_array ()
 
bool start_map (uint32_t num_kv_pairs)
 
bool start_map_key ()
 
bool end_map_key ()
 
bool start_map_value ()
 
bool end_map_value ()
 
bool end_map ()
 
void parse_error (size_t, size_t)
 
void insufficient_bytes (size_t, size_t)
 

Public Attributes

unpack_reference_func m_func
 
void * m_user_data
 
unpack_limit m_limit
 
msgpack::object m_obj
 
std::vector< msgpack::object * > m_stack
 
msgpack::zonem_zone
 
bool m_referenced
 

Constructor & Destructor Documentation

◆ create_object_visitor() [1/2]

msgpack::detail::create_object_visitor::create_object_visitor ( unpack_reference_func  f,
void *  user_data,
unpack_limit const &  limit 
)
inline

References m_obj, m_stack, and MSGPACK_EMBED_STACK_SIZE.

Referenced by operator=().

◆ create_object_visitor() [2/2]

msgpack::detail::create_object_visitor::create_object_visitor ( create_object_visitor &&  other)
inline

References m_obj, m_stack, and MSGPACK_NULLPTR.

Member Function Documentation

◆ data()

msgpack::object const& msgpack::detail::create_object_visitor::data ( ) const
inline

References m_obj.

◆ end_array()

bool msgpack::detail::create_object_visitor::end_array ( )
inline

References m_stack.

◆ end_array_item()

bool msgpack::detail::create_object_visitor::end_array_item ( )
inline

References m_stack.

◆ end_map()

bool msgpack::detail::create_object_visitor::end_map ( )
inline

References m_stack.

◆ end_map_key()

bool msgpack::detail::create_object_visitor::end_map_key ( )
inline

References m_stack.

◆ end_map_value()

bool msgpack::detail::create_object_visitor::end_map_value ( )
inline

References m_stack.

◆ init()

void msgpack::detail::create_object_visitor::init ( )
inline

References m_obj, and m_stack.

◆ insufficient_bytes()

void msgpack::detail::create_object_visitor::insufficient_bytes ( size_t  ,
size_t   
)
inline

◆ operator=()

create_object_visitor& msgpack::detail::create_object_visitor::operator= ( create_object_visitor &&  other)
inline

◆ parse_error()

void msgpack::detail::create_object_visitor::parse_error ( size_t  ,
size_t   
)
inline

◆ referenced()

bool msgpack::detail::create_object_visitor::referenced ( ) const
inline

References m_referenced.

Referenced by set_referenced().

◆ set_referenced()

void msgpack::detail::create_object_visitor::set_referenced ( bool  referenced)
inline

References m_referenced, and referenced().

Referenced by visit_bin(), visit_ext(), and visit_str().

◆ set_zone()

void msgpack::detail::create_object_visitor::set_zone ( msgpack::zone zone)
inline

References m_zone, and zone().

◆ start_array()

bool msgpack::detail::create_object_visitor::start_array ( uint32_t  num_elements)
inline

◆ start_array_item()

bool msgpack::detail::create_object_visitor::start_array_item ( )
inline

◆ start_map()

bool msgpack::detail::create_object_visitor::start_map ( uint32_t  num_kv_pairs)
inline

◆ start_map_key()

bool msgpack::detail::create_object_visitor::start_map_key ( )
inline

◆ start_map_value()

bool msgpack::detail::create_object_visitor::start_map_value ( )
inline

◆ visit_bin()

bool msgpack::detail::create_object_visitor::visit_bin ( const char *  v,
uint32_t  size 
)
inline

◆ visit_boolean()

bool msgpack::detail::create_object_visitor::visit_boolean ( bool  v)
inline

◆ visit_ext()

bool msgpack::detail::create_object_visitor::visit_ext ( const char *  v,
uint32_t  size 
)
inline

◆ visit_float32()

bool msgpack::detail::create_object_visitor::visit_float32 ( float  v)
inline

◆ visit_float64()

bool msgpack::detail::create_object_visitor::visit_float64 ( double  v)
inline

◆ visit_negative_integer()

bool msgpack::detail::create_object_visitor::visit_negative_integer ( int64_t  v)
inline

◆ visit_nil()

bool msgpack::detail::create_object_visitor::visit_nil ( )
inline

◆ visit_positive_integer()

bool msgpack::detail::create_object_visitor::visit_positive_integer ( uint64_t  v)
inline

◆ visit_str()

bool msgpack::detail::create_object_visitor::visit_str ( const char *  v,
uint32_t  size 
)
inline

◆ zone() [1/2]

msgpack::zone& msgpack::detail::create_object_visitor::zone ( )
inline

References m_zone.

◆ zone() [2/2]

msgpack::zone const& msgpack::detail::create_object_visitor::zone ( ) const
inline

References m_zone.

Referenced by set_zone(), visit_bin(), visit_ext(), and visit_str().

Member Data Documentation

◆ m_func

unpack_reference_func msgpack::detail::create_object_visitor::m_func

Referenced by visit_bin(), visit_ext(), and visit_str().

◆ m_limit

unpack_limit msgpack::detail::create_object_visitor::m_limit

◆ m_obj

msgpack::object msgpack::detail::create_object_visitor::m_obj

Referenced by create_object_visitor(), data(), and init().

◆ m_referenced

bool msgpack::detail::create_object_visitor::m_referenced

Referenced by referenced(), and set_referenced().

◆ m_stack

std::vector<msgpack::object*> msgpack::detail::create_object_visitor::m_stack

◆ m_user_data

void* msgpack::detail::create_object_visitor::m_user_data

Referenced by visit_bin(), visit_ext(), and visit_str().

◆ m_zone

msgpack::zone* msgpack::detail::create_object_visitor::m_zone

Referenced by set_zone(), start_array(), start_map(), and zone().


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