null_visitor.hpp
Go to the documentation of this file.
//
// MessagePack for C++ deserializing routine
//
// Copyright (C) 2017 KONDO Takatoshi
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MSGPACK_V2_NULL_VISITOR_HPP
#define MSGPACK_V2_NULL_VISITOR_HPP
#include "msgpack/v2/null_visitor_decl.hpp"
namespace msgpack {
MSGPACK_API_VERSION_NAMESPACE(v2) {
struct null_visitor {
bool visit_nil() {
return true;
}
bool visit_boolean(bool /*v*/) {
return true;
}
bool visit_positive_integer(uint64_t /*v*/) {
return true;
}
bool visit_negative_integer(int64_t /*v*/) {
return true;
}
bool visit_float32(float /*v*/) {
return true;
}
bool visit_float64(double /*v*/) {
return true;
}
bool visit_str(const char* /*v*/, uint32_t /*size*/) {
return true;
}
bool visit_bin(const char* /*v*/, uint32_t /*size*/) {
return true;
}
bool visit_ext(const char* /*v*/, uint32_t /*size*/) {
return true;
}
bool start_array(uint32_t /*num_elements*/) {
return true;
}
bool start_array_item() {
return true;
}
bool end_array_item() {
return true;
}
bool end_array() {
return true;
}
bool start_map(uint32_t /*num_kv_pairs*/) {
return true;
}
bool start_map_key() {
return true;
}
bool end_map_key() {
return true;
}
bool start_map_value() {
return true;
}
bool end_map_value() {
return true;
}
bool end_map() {
return true;
}
void parse_error(size_t /*parsed_offset*/, size_t /*error_offset*/) {
}
void insufficient_bytes(size_t /*parsed_offset*/, size_t /*error_offset*/) {
}
bool referenced() const {
return false;
}
void set_referenced(bool /*referenced*/) {
}
};
} // MSGPACK_API_VERSION_NAMESPACE(v2)
} // namespace msgpack
#endif // MSGPACK_V2_NULL_VISITOR_HPP
msgpack::null_visitor::visit_float32
bool visit_float32(float)
Definition: null_visitor.hpp:34
msgpack::null_visitor::referenced
bool referenced() const
Definition: null_visitor.hpp:83
msgpack::null_visitor::parse_error
void parse_error(size_t, size_t)
Definition: null_visitor.hpp:79
msgpack::null_visitor::end_map_value
bool end_map_value()
Definition: null_visitor.hpp:73
v2
msgpack::null_visitor::start_array
bool start_array(uint32_t)
Definition: null_visitor.hpp:49
null_visitor_decl.hpp
msgpack::null_visitor::end_map
bool end_map()
Definition: null_visitor.hpp:76
msgpack
Definition: adaptor_base.hpp:15
msgpack::null_visitor::start_map_value
bool start_map_value()
Definition: null_visitor.hpp:70
msgpack::null_visitor::start_array_item
bool start_array_item()
Definition: null_visitor.hpp:52
msgpack::null_visitor::set_referenced
void set_referenced(bool)
Definition: null_visitor.hpp:86
msgpack::null_visitor::visit_boolean
bool visit_boolean(bool)
Definition: null_visitor.hpp:25
msgpack::null_visitor::end_map_key
bool end_map_key()
Definition: null_visitor.hpp:67
msgpack::null_visitor::visit_bin
bool visit_bin(const char *, uint32_t)
Definition: null_visitor.hpp:43
msgpack::null_visitor::start_map
bool start_map(uint32_t)
Definition: null_visitor.hpp:61
msgpack::null_visitor::visit_nil
bool visit_nil()
Definition: null_visitor.hpp:22
msgpack::null_visitor::visit_positive_integer
bool visit_positive_integer(uint64_t)
Definition: null_visitor.hpp:28
msgpack::null_visitor::visit_str
bool visit_str(const char *, uint32_t)
Definition: null_visitor.hpp:40
MSGPACK_API_VERSION_NAMESPACE
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
msgpack::null_visitor::start_map_key
bool start_map_key()
Definition: null_visitor.hpp:64
msgpack::null_visitor
Definition: null_visitor.hpp:21
msgpack::null_visitor::visit_ext
bool visit_ext(const char *, uint32_t)
Definition: null_visitor.hpp:46
msgpack::null_visitor::visit_negative_integer
bool visit_negative_integer(int64_t)
Definition: null_visitor.hpp:31
msgpack::null_visitor::visit_float64
bool visit_float64(double)
Definition: null_visitor.hpp:37
msgpack::null_visitor::end_array
bool end_array()
Definition: null_visitor.hpp:58
msgpack::null_visitor::end_array_item
bool end_array_item()
Definition: null_visitor.hpp:55
msgpack::null_visitor::insufficient_bytes
void insufficient_bytes(size_t, size_t)
Definition: null_visitor.hpp:81