mxnet
Classes | Namespaces | Macros
json.h File Reference

Lightweight JSON Reader/Writer that read save into C++ data structs. This includes STL composites and structures. More...

#include <vector>
#include <iostream>
#include <sstream>
#include <cctype>
#include <string>
#include <algorithm>
#include <map>
#include <list>
#include <utility>
#include "./base.h"
#include "./logging.h"
#include "./type_traits.h"
#include <typeindex>
#include <typeinfo>
#include <unordered_map>
Include dependency graph for json.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dmlc::JSONReader
 Lightweight JSON Reader to read any STL compositions and structs. The user need to know the schema of the. More...
 
class  dmlc::JSONWriter
 Lightweight json to write any STL compositions. More...
 
class  dmlc::JSONObjectReadHelper
 Helper class to read JSON into a class or struct object. More...
 

Namespaces

 dmlc
 namespace for dmlc
 

Macros

#define DMLC_JSON_ENABLE_ANY_VAR_DEF(KeyName)
 
#define DMLC_JSON_ENABLE_ANY(Type, KeyName)
 Macro to enable save/load JSON of dmlc:: whose actual type is Type. Any type will be saved as json array [KeyName, content]. More...
 

Detailed Description

Lightweight JSON Reader/Writer that read save into C++ data structs. This includes STL composites and structures.

Copyright (c) 2015 by Contributors

Macro Definition Documentation

#define DMLC_JSON_ENABLE_ANY (   Type,
  KeyName 
)
Value:
::dmlc::json::AnyJSONManager::Global()->EnableType<Type>(#KeyName) \
#define DMLC_STR_CONCAT(__x, __y)
Definition: base.h:153
#define DMLC_JSON_ENABLE_ANY_VAR_DEF(KeyName)
Definition: json.h:371

Macro to enable save/load JSON of dmlc:: whose actual type is Type. Any type will be saved as json array [KeyName, content].

Parameters
TypeThe type to be registered.
KeyNameThe Type key assigned to the type, must be same during load.
#define DMLC_JSON_ENABLE_ANY_VAR_DEF (   KeyName)
Value:
static DMLC_ATTRIBUTE_UNUSED ::dmlc::json::AnyJSONManager& \
__make_AnyJSONType ## _ ## KeyName ## __