CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::jsonMake< ValueType > Struct Template Reference

#include <jsonParser.hh>

Detailed Description

template<typename ValueType>
struct CASM::jsonMake< ValueType >

Helper struct for constructing objects that need additional data.

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

is equivalent to:

This struct can be specialized to create new jsonMake<T>::make_from_json as needed.

Definition at line 564 of file jsonParser.hh.

Static Public Member Functions

static std::unique_ptr< ValueType > make_from_json (const jsonParser &json)
 Default make_from_json is equivalent to. More...
 

Member Function Documentation

◆ make_from_json()

template<typename ValueType >
static std::unique_ptr<ValueType> CASM::jsonMake< ValueType >::make_from_json ( const jsonParser json)
inlinestatic

Default make_from_json is equivalent to.

CASM::make_from_json<ValueType>(json)

Definition at line 567 of file jsonParser.hh.


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