CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::simpleformatter Namespace Reference

Classes

class  DataFormatter
 
struct  DatumFormatterOptions
 
class  BaseDatumEvaluator
 
class  DatumEvaluator
 
class  VectorizedDatumEvaluator
 
class  DatumEvaluatorEntry
 
class  DatumEvaluatorDictionary
 

Typedefs

template<typename ObjectType >
using EvaluatorPtrType = std::unique_ptr< BaseDatumEvaluator< ObjectType > >
 
template<typename ObjectType , typename InputType >
using MakeEvaluatorPtrFunction = std::function< EvaluatorPtrType< ObjectType >(InputType const &)>
 

Functions

std::vector< std::string > const & errors () const
 Access error messages from caught exceptions that occur during evaluation. More...
 
int error_index insert_error (std::string what)
 
std::unique_ptr< DatumEvaluatorDictEntry< DataObject > > make_dict_entry_ptr (std::string _name, std::string _description, MakeEvaluatorPtrFunction< ObjectType > _make_evaluator_f)
 

Typedef Documentation

◆ EvaluatorPtrType

template<typename ObjectType >
using CASM::simpleformatter::EvaluatorPtrType = typedef std::unique_ptr<BaseDatumEvaluator<ObjectType> >

Definition at line 20 of file SimpleFormatterDict.hh.

◆ MakeEvaluatorPtrFunction

template<typename ObjectType , typename InputType >
using CASM::simpleformatter::MakeEvaluatorPtrFunction = typedef std::function<EvaluatorPtrType<ObjectType>(InputType const &)>

Definition at line 23 of file SimpleFormatterDict.hh.

Function Documentation

◆ errors()

std::vector<std::string> const& CASM::simpleformatter::errors ( ) const

Access error messages from caught exceptions that occur during evaluation.

Definition at line 529 of file SimpleFormatter.hh.

◆ insert_error()

int error_index CASM::simpleformatter::insert_error ( std::string  what)

Insert an error string into a vector of unique error messages, return position of error message

Definition at line 572 of file SimpleFormatter.hh.

◆ make_dict_entry_ptr()

std::unique_ptr<DatumEvaluatorDictEntry<DataObject> > CASM::simpleformatter::make_dict_entry_ptr ( std::string  _name,
std::string  _description,
MakeEvaluatorPtrFunction< ObjectType >  _make_evaluator_f 
)