SNABSuite  0.x
Spiking Neural Architecture Benchmark Suite
Namespaces | Macros | Functions
read_json.hpp File Reference
#include <cypress/cypress.hpp>
#include <fstream>
#include <limits>
#include <map>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 SNAB
 

Macros

#define SNABSUITE_UTIL_READ_JSON_HPP
 

Functions

template<typename T >
std::map< std::string, T > SNAB::json_to_map (const cypress::Json &obj)
 
template<typename T >
std::vector< T > SNAB::read_check (std::map< std::string, T > &input, const std::vector< std::string > &names, const std::vector< T > &defaults)
 
cypress::Json SNAB::read_config (const std::string &name, const std::string &backend)
 
bool SNAB::check_json_for_parameters (const std::vector< std::string > &parameters, const cypress::Json &json, const std::string name)
 
cypress::Json SNAB::extract_backend (const cypress::Json &config, const std::string &backend)
 
template<typename T >
std::vector< T > SNAB::json_array_to_vector (const cypress::Json &json)
 
template<typename T , int n>
std::array< T, n > SNAB::json_array_to_array (const cypress::Json &json)
 
template<typename T >
std::vector< std::vector< T > > SNAB::json_2Darray_to_vector (const cypress::Json &json)
 
template<typename T , int n>
std::vector< std::vector< std::array< T, n > > > SNAB::json_3Darray_to_vector (const cypress::Json &json)
 
bool SNAB::replace_arrays_by_value (cypress::Json &json, const size_t &index=0, std::string name="", bool warn=true)
 

Macro Definition Documentation

#define SNABSUITE_UTIL_READ_JSON_HPP

Definition at line 22 of file read_json.hpp.