Wildmeshing Toolkit
json_macros.hpp File Reference
#include <nlohmann/json_fwd.hpp>
Include dependency graph for json_macros.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WMTK_NLOHMANN_JSON_FRIEND_DECLARATION(Type)
 
#define WMTK_NLOHMANN_JSON_FRIEND_TO_JSON_PROTOTYPE(Type)    void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t)
 
#define WMTK_NLOHMANN_JSON_FRIEND_FROM_JSON_PROTOTYPE(Type)    void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t)
 
#define WMTK_NLOHMANN_ASSIGN_TYPE_TO_JSON(...)    { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) }
 
#define WMTK_NLOHMANN_ASSIGN_TYPE_FROM_JSON(...)    { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
 

Macro Definition Documentation

◆ WMTK_NLOHMANN_ASSIGN_TYPE_FROM_JSON

#define WMTK_NLOHMANN_ASSIGN_TYPE_FROM_JSON (   ...)     { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }

Definition at line 21 of file json_macros.hpp.

◆ WMTK_NLOHMANN_ASSIGN_TYPE_TO_JSON

#define WMTK_NLOHMANN_ASSIGN_TYPE_TO_JSON (   ...)     { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) }

Definition at line 18 of file json_macros.hpp.

◆ WMTK_NLOHMANN_JSON_FRIEND_DECLARATION

#define WMTK_NLOHMANN_JSON_FRIEND_DECLARATION (   Type)
Value:
friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t);\
friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t);
void from_json(const nlohmann::json &j, RegularSpaceOptions &o)
void to_json(nlohmann::json &j, RegularSpaceOptions &o)
nlohmann::json json
Definition: input.cpp:9

Definition at line 6 of file json_macros.hpp.

◆ WMTK_NLOHMANN_JSON_FRIEND_FROM_JSON_PROTOTYPE

#define WMTK_NLOHMANN_JSON_FRIEND_FROM_JSON_PROTOTYPE (   Type)     void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t)

Definition at line 15 of file json_macros.hpp.

◆ WMTK_NLOHMANN_JSON_FRIEND_TO_JSON_PROTOTYPE

#define WMTK_NLOHMANN_JSON_FRIEND_TO_JSON_PROTOTYPE (   Type)     void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t)

Definition at line 12 of file json_macros.hpp.