Cypress  1.0
C++ Spiking Neural Network Simulation Framework
Classes | Namespaces | Functions
to_json.hpp File Reference
#include <cypress/core/backend.hpp>
#include <cypress/core/network.hpp>
#include <cypress/core/network_base_objects.hpp>
#include <cypress/util/json.hpp>
#include <thread>
Include dependency graph for to_json.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cypress::ToJson
 

Namespaces

 cypress
 

Functions

void cypress::to_json (Json &j, const Network &netw)
 Automatic conversion of a Network object to JSON. Now you can uses Json(network) as you would do with STL containers. More...
 
void cypress::from_json (const Json &j, Network &netw)
 With the method you can just use Network netw = json.get<Network>() as you can do with STL containers. More...
 
void cypress::from_json (const Json &json, NetworkRuntime &runtime)
 Read in NetworkRuntime from json: json["sim"] == runtime.sim;. More...
 
void cypress::to_json (Json &json, const NetworkRuntime &runtime)
 NetworkRuntime to json conversion: json["sim"] == runtime.sim;. More...
 
template<typename T >
void cypress::to_json (Json &j, const Matrix< T > &mat)
 Automatic conversion of the internal matrix type to json. Use Json(mat). More...
 
template<typename T >
void cypress::from_json (const Json &j, Matrix< T > &mat)
 Conversion from json to internal matrix type. Use json.get<Matrix<T>> as you would do with a STL container. More...