CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
DataFormatterTools.hh File Reference

Go to the source code of this file.

Classes

class  CASM::DataFormatterOperator< ValueType, ArgType, DataObject >
 DataFormatters that operate on the results of other DataFormatters. More...
 
class  CASM::DatumFormatterAlias< DataObject >
 Implements a DatumFormatter that is an alias for a combination of others. More...
 
class  CASM::ConstantValueFormatter< ValueType, DataObject >
 Prints a string value specified at construction. A header string can also be passed. More...
 
class  CASM::BaseValueFormatter< ValueType, DataObject >
 Base class for creating scalar DatumFormatter. More...
 
singleton  CASM::GenericDatumFormatter< ValueType, DataObject >
 A DatumFormatter that returns a value of specified type, via functions that may be specified at runtime. More...
 
class  CASM::Base1DDatumFormatter< Container, DataObject >
 Abstract base class for creating 1D DatumFormatter. More...
 
class  CASM::Generic1DDatumFormatter< Container, DataObject >
 A DatumFormatter that returns a 1D value of specified type, via functions that may be specified at runtime. More...
 

Namespaces

 CASM
 Main CASM namespace.
 

Typedefs

template<typename DataObject >
using CASM::StringAttribute = BaseValueFormatter< std::string, DataObject >
 Template alias for BaseValueFormatter returning std::string. More...
 
template<typename DataObject >
using CASM::StringAttributeDictionary = DataFormatterDictionary< DataObject, StringAttribute< DataObject > >
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
using CASM::BooleanAttribute = BaseValueFormatter< bool, DataObject >
 Template alias for BaseValueFormatter returning bool. More...
 
template<typename DataObject >
using CASM::BooleanAttributeDictionary = DataFormatterDictionary< DataObject, BooleanAttribute< DataObject > >
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
using CASM::IntegerAttribute = BaseValueFormatter< Index, DataObject >
 Template alias for BaseValueFormatter returning Index. More...
 
template<typename DataObject >
using CASM::IntegerAttributeDictionary = DataFormatterDictionary< DataObject, IntegerAttribute< DataObject > >
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
using CASM::ScalarAttribute = BaseValueFormatter< double, DataObject >
 Template alias for BaseValueFormatter returning double. More...
 
template<typename DataObject >
using CASM::ScalarAttributeDictionary = DataFormatterDictionary< DataObject, ScalarAttribute< DataObject > >
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
using CASM::VectorXdAttribute = Base1DDatumFormatter< Eigen::VectorXd, DataObject >
 Template alias for BaseValueFormatter returning Eigen::VectorXd. More...
 
template<typename DataObject >
using CASM::VectorXdAttributeDictionary = DataFormatterDictionary< DataObject, VectorXdAttribute< DataObject > >
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 

Functions

template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_add ()
 Makes a DataFormatterOperator that adds two or more numbers. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_sub ()
 Makes a DataFormatterOperator that subtracts two numbers. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_mult ()
 Makes a DataFormatterOperator that returns the product of two or more numbers. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_div ()
 Makes a DataFormatterOperator that divides two numbers. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_max ()
 Makes a DataFormatterOperator that returns the maximum of two or more numbers. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_min ()
 Makes a DataFormatterOperator that returns the minimum of two or more numbers. More...
 
template<typename DataObject >
DataFormatterOperator< long,
double, DataObject > 
CASM::format_operator_imax ()
 Makes a DataFormatterOperator that returns the index (from 0) of the maximum of two or more numbers. More...
 
template<typename DataObject >
DataFormatterOperator< long,
double, DataObject > 
CASM::format_operator_imin ()
 Makes a DataFormatterOperator that returns the index (from 0) of the minimum of two or more numbers. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_exp ()
 Makes a DataFormatterOperator that returns the exponential of a number. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
std::string, DataObject > 
CASM::format_operator_re ()
 Makes a DataFormatterOperator that checks if a string matches a regular expression. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
std::string, DataObject > 
CASM::format_operator_rs ()
 Makes a DataFormatterOperator that checks if a string contains a regular expression. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_sq ()
 Makes a DataFormatterOperator that returns the square of a number. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_sqrt ()
 Makes a DataFormatterOperator that returns the square root of a number. More...
 
template<typename DataObject >
DataFormatterOperator< double,
double, DataObject > 
CASM::format_operator_neg ()
 Makes a DataFormatterOperator that returns the negative of a number. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
bool, DataObject > 
CASM::format_operator_and ()
 Makes a DataFormatterOperator that returns the boolean AND for a sequence of boolean values. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
bool, DataObject > 
CASM::format_operator_or ()
 Makes a DataFormatterOperator that returns the boolean OR for a sequence of boolean values. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
bool, DataObject > 
CASM::format_operator_xor ()
 Makes a DataFormatterOperator that returns the boolean NOT for a single boolean value. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
bool, DataObject > 
CASM::format_operator_not ()
 
template<typename DataObject >
DataFormatterOperator< bool,
double, DataObject > 
CASM::format_operator_eq ()
 Makes a DataFormatterOperator for equality comparison of two numbers. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
double, DataObject > 
CASM::format_operator_lt ()
 Makes a DataFormatterOperator for less-than comparison of two numbers. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
double, DataObject > 
CASM::format_operator_le ()
 Makes a DataFormatterOperator for less-than-or-equal comparison of two numbers. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
double, DataObject > 
CASM::format_operator_gt ()
 Makes a DataFormatterOperator for greater-than comparison of two numbers. More...
 
template<typename DataObject >
DataFormatterOperator< bool,
double, DataObject > 
CASM::format_operator_ge ()
 Makes a DataFormatterOperator for greater-than-or-equal comparison of two numbers. More...
 
template<typename DataObject >
DataFormatterDictionary
< DataObject > 
CASM::make_operator_dictionary ()
 Dictionary of all DatumFormatterOperator. More...
 
template<typename DataObject >
DatumFormatterAlias< DataObject > CASM::datum_formatter_alias (const std::string &_name, const std::string &_command, const DataFormatterDictionary< DataObject > &_dict, const std::string &_help="")
 Make a DatumFormatterAlias. More...
 
template<typename DataObject >
DatumFormatterAlias< DataObject > CASM::datum_formatter_alias (const std::string &_name, const BaseDatumFormatter< DataObject > &_inside, const std::string &_help="")
 Make a DatumFormatterAlias. More...
 
template<typename DataObject >
StringAttributeDictionary
< DataObject > 
CASM::make_string_dictionary ()
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
BooleanAttributeDictionary
< DataObject > 
CASM::make_boolean_dictionary ()
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
IntegerAttributeDictionary
< DataObject > 
CASM::make_integer_dictionary ()
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
ScalarAttributeDictionary
< DataObject > 
CASM::make_scalar_dictionary ()
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
VectorXdAttributeDictionary
< DataObject > 
CASM::make_vectorxd_dictionary ()
 Template to be specialized for constructing dictionaries for particular DataObject. More...
 
template<typename DataObject >
DataFormatterDictionary
< DataObject > 
CASM::make_attribute_dictionary ()
 Dictionary of all AttributeFormatter (i.e. BaseValueFormatter<V, DataObject>) More...