nlib
MpObject.h File Reference

Object created when MessagePack, JSON, or CSV is read. More...

#include <map>
#include <string>
#include <utility>
#include <vector>
#include "nn/nlib/Config.h"
#include "nn/nlib/Swap.h"
#include "nn/nlib/Cstring.h"
#include "nn/nlib/Nlist.h"

Go to the source code of this file.

Classes

struct  nn::nlib::msgpack::nil
 Class that corresponds to nil in MessagePack and null in JSON. More...
 
class  nn::nlib::msgpack::MpObject
 Object created when MessagePack or JSON is read. More...
 
struct  nn::nlib::msgpack::MpObjectKv
 A pair consisting of an MpObject-type key and value. Used to store an associative array. More...
 

Namespaces

 nn::nlib
 Implements common features and features that are highly platform-dependent. Also refer to nlib Platform APIs. nlib_ns is an alias.
 
 nn::nlib::msgpack
 The library used to implement the MessagePack serializer, the JSON parser/writer, and the CSV parser.
 

Functions

template<class T >
bool nn::nlib::msgpack::operator== (const nil &lhs, const T &rhs) noexcept
 Returns false if rhs is a non-nil object.
 
template<class T >
bool nn::nlib::msgpack::operator== (const T &lhs, const nil &rhs) noexcept
 Returns false if lhs is a non-nil object.
 
bool nn::nlib::msgpack::operator== (const nil &lhs, const nil &rhs) noexcept
 Returns true.
 
template<class T >
bool nn::nlib::msgpack::operator!= (const nil &rhs, const T &lhs) noexcept
 Returns true if rhs is a non-nil object.
 
template<class T >
bool nn::nlib::msgpack::operator!= (const T &rhs, const nil &lhs) noexcept
 Returns true if lhs is a non-nil object.
 
bool nn::nlib::msgpack::operator!= (const nil &rhs, const nil &lhs) noexcept
 Returns false.
 
bool nn::nlib::msgpack::operator== (const MpObjectKv &lhs, const MpObjectKv &rhs) noexcept
 Recursively compares lhs and rhs and returns true if they are equal.
 
bool nn::nlib::msgpack::operator!= (const MpObject &lhs, const MpObject &rhs) noexcept
 Recursively compares lhs and rhs and returns false if they are equal.
 
bool nn::nlib::msgpack::operator!= (const MpObjectKv &lhs, const MpObjectKv &rhs) noexcept
 Recursively compares lhs and rhs and returns false if they are equal.
 
MpObject

Free function that handles MpObject.

template<class T >
errno_t nn::nlib::msgpack::Box (MpObject *obj, const T &v)
 This function template can be specialized to define boxing the user type. More...
 
template<class T >
errno_t nn::nlib::msgpack::Unbox (const MpObject *obj, T *v)
 This function template can be specialized to define unboxing the user type. More...
 
bool nn::nlib::msgpack::operator== (const MpObject &lhs, const MpObject &rhs)
 The two MpObjects are recursively compared. Returns true if they are equivalent. More...
 

Detailed Description

Object created when MessagePack, JSON, or CSV is read.

Definition in file MpObject.h.