CASM  1.1.0
A Clusters Approach to Statistical Mechanics
jsonParser.cc File Reference
#include "casm/casm_io/json/jsonParser.hh"
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/path.hpp>
#include "casm/misc/CASM_math.hh"

Go to the source code of this file.

Namespaces

 CASM
 Main CASM namespace.
 

Functions

jsonParser & CASM::to_json (bool value, jsonParser &json)
 To JSON for basic types. More...
 
jsonParser & CASM::to_json (int value, jsonParser &json)
 
jsonParser & CASM::to_json (unsigned int value, jsonParser &json)
 
jsonParser & CASM::to_json (long int value, jsonParser &json)
 
jsonParser & CASM::to_json (unsigned long int value, jsonParser &json)
 
jsonParser & CASM::to_json (double value, jsonParser &json)
 
jsonParser & CASM::to_json (const std::string &value, jsonParser &json)
 
jsonParser & CASM::to_json (const char *value, jsonParser &json)
 
jsonParser & CASM::to_json (const jsonParser &value, jsonParser &json)
 
void CASM::to_json (fs::path file_path, jsonParser &json)
 Create a jsonParser by reading a file. More...
 
template<>
bool CASM::from_json< bool > (const jsonParser &json)
 
template<>
int CASM::from_json< int > (const jsonParser &json)
 
template<>
unsigned int CASM::from_json< unsigned int > (const jsonParser &json)
 
template<>
long int CASM::from_json< long int > (const jsonParser &json)
 
template<>
unsigned long int CASM::from_json< unsigned long int > (const jsonParser &json)
 
template<>
double CASM::from_json< double > (const jsonParser &json)
 
template<>
std::string CASM::from_json< std::string > (const jsonParser &json)
 
template<>
jsonParser CASM::from_json< jsonParser > (const jsonParser &json)
 
void CASM::from_json (bool &value, const jsonParser &json)
 From JSON for basic types. More...
 
void CASM::from_json (int &value, const jsonParser &json)
 
void CASM::from_json (unsigned int &value, const jsonParser &json)
 
void CASM::from_json (long int &value, const jsonParser &json)
 
void CASM::from_json (unsigned long int &value, const jsonParser &json)
 
void CASM::from_json (double &value, const jsonParser &json)
 
void CASM::from_json (std::string &value, const jsonParser &json)
 
void CASM::from_json (jsonParser &value, const jsonParser &json)
 
void CASM::from_json (fs::path &value, const jsonParser &json)
 
std::istream & CASM::operator>> (std::istream &stream, jsonParser &json)
 
std::ostream & CASM::operator<< (std::ostream &stream, const jsonParser &json)
 
fs::path CASM::find_diff (const jsonParser &A, const jsonParser &B)
 Return the location at which jsonParser 'A' != 'B' as a fs::path. More...
 
fs::path CASM::find_diff (const jsonParser &A, const jsonParser &B, double tol)
 
template<bool IsConst>
void CASM::swap (jsonParserIterator< IsConst > &a, jsonParserIterator< IsConst > &b)
 
template void CASM::swap< true > (jsonParserIterator< true > &, jsonParserIterator< true > &)
 
template void CASM::swap< false > (jsonParserIterator< false > &, jsonParserIterator< false > &)