CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::SimpleJSonSiteStructure< IsConst > Class Template Reference

#include <jsonStruc.hh>

Detailed Description

template<bool IsConst>
class CASM::SimpleJSonSiteStructure< IsConst >

Used to construct a BasicStructure from a 'properties.calc.json' object.

Definition at line 29 of file jsonStruc.hh.

Public Types

typedef CASM_TMP::ConstSwitch< IsConst, BasicStructureStrucType
 

Public Member Functions

 SimpleJSonSiteStructure (StrucType &_struc, const std::string &_prefix=std::string())
 
void from_json (const jsonParser &json) const
 

Private Member Functions

void _from_json (const BasicStructure &struc, const jsonParser &json) const
 

Private Attributes

StrucTypem_struc_ptr
 
std::string m_prefix
 
jsonParserto_json (jsonParser &json) const
 
void _from_json (BasicStructure &struc, const jsonParser &json) const
 

Member Typedef Documentation

◆ StrucType

template<bool IsConst>
typedef CASM_TMP::ConstSwitch<IsConst, BasicStructure> CASM::SimpleJSonSiteStructure< IsConst >::StrucType

Definition at line 31 of file jsonStruc.hh.

Constructor & Destructor Documentation

◆ SimpleJSonSiteStructure()

template<bool IsConst>
CASM::SimpleJSonSiteStructure< IsConst >::SimpleJSonSiteStructure ( StrucType _struc,
const std::string &  _prefix = std::string() 
)
inline

Definition at line 32 of file jsonStruc.hh.

Member Function Documentation

◆ _from_json() [1/2]

template<bool IsConst>
void CASM::SimpleJSonSiteStructure< IsConst >::_from_json ( BasicStructure struc,
const jsonParser json 
) const
private

Definition at line 81 of file jsonStruc.hh.

◆ _from_json() [2/2]

template<bool IsConst>
void CASM::SimpleJSonSiteStructure< IsConst >::_from_json ( const BasicStructure struc,
const jsonParser json 
) const
inlineprivate

Definition at line 42 of file jsonStruc.hh.

◆ from_json()

template<bool IsConst>
void CASM::SimpleJSonSiteStructure< IsConst >::from_json ( const jsonParser json) const
inline

Definition at line 37 of file jsonStruc.hh.

◆ to_json()

template<bool IsConst>
jsonParser & CASM::SimpleJSonSiteStructure< IsConst >::to_json ( jsonParser json) const

Definition at line 55 of file jsonStruc.hh.

Member Data Documentation

◆ m_prefix

template<bool IsConst>
std::string CASM::SimpleJSonSiteStructure< IsConst >::m_prefix
private

Definition at line 51 of file jsonStruc.hh.

◆ m_struc_ptr

template<bool IsConst>
StrucType* CASM::SimpleJSonSiteStructure< IsConst >::m_struc_ptr
private

Definition at line 50 of file jsonStruc.hh.


The documentation for this class was generated from the following file: