CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::jsonConstructor< ReturnType > Struct Template Reference

#include <jsonParser.hh>

Detailed Description

template<typename ReturnType>
struct CASM::jsonConstructor< ReturnType >

Helper struct for constructing objects that need additional data.

jsonParser::get<T>(Args&&...args)

is equivalent to:

This struct can be specialized to create new jsonConstructor<T>::from_json as needed.

Definition at line 548 of file jsonParser.hh.

Static Public Member Functions

static ReturnType from_json (const jsonParser &json)
 Default from_json is equivalent to. More...
 

Member Function Documentation

◆ from_json()

template<typename ReturnType >
static ReturnType CASM::jsonConstructor< ReturnType >::from_json ( const jsonParser json)
inlinestatic

Default from_json is equivalent to.

CASM::from_json<ReturnType>(json)

Definition at line 551 of file jsonParser.hh.


The documentation for this struct was generated from the following files: