CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
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 486 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

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 489 of file jsonParser.hh.


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