CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
DataFormatterOperator

Detailed Description

Operators on other DatumFormatters.

Classes

class  CASM::DataFormatterOperator< ValueType, ArgType, DataObject >
 DataFormatters that operate on the results of other DataFormatters. 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,
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...
 

Function Documentation

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_add ( )

Makes a DataFormatterOperator that adds two or more numbers.

Definition at line 106 of file DataFormatterTools.hh.

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.

Definition at line 316 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_div ( )

Makes a DataFormatterOperator that divides two numbers.

Definition at line 154 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<bool, double, DataObject> CASM::format_operator_eq ( )

Makes a DataFormatterOperator for equality comparison of two numbers.

Definition at line 377 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_exp ( )

Makes a DataFormatterOperator that returns the exponential of a number.

Definition at line 221 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<bool, double, DataObject> CASM::format_operator_ge ( )

Makes a DataFormatterOperator for greater-than-or-equal comparison of two numbers.

Definition at line 437 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<bool, double, DataObject> CASM::format_operator_gt ( )

Makes a DataFormatterOperator for greater-than comparison of two numbers.

Definition at line 422 of file DataFormatterTools.hh.

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.

Definition at line 195 of file DataFormatterTools.hh.

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.

Definition at line 208 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<bool, double, DataObject> CASM::format_operator_le ( )

Makes a DataFormatterOperator for less-than-or-equal comparison of two numbers.

Definition at line 407 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<bool, double, DataObject> CASM::format_operator_lt ( )

Makes a DataFormatterOperator for less-than comparison of two numbers.

Definition at line 392 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_max ( )

Makes a DataFormatterOperator that returns the maximum of two or more numbers.

Definition at line 169 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_min ( )

Makes a DataFormatterOperator that returns the minimum of two or more numbers.

Definition at line 182 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_mult ( )

Makes a DataFormatterOperator that returns the product of two or more numbers.

Definition at line 136 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_neg ( )

Makes a DataFormatterOperator that returns the negative of a number.

Definition at line 301 of file DataFormatterTools.hh.

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.

Definition at line 334 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<bool, std::string, DataObject> CASM::format_operator_re ( )

Makes a DataFormatterOperator that checks if a string matches a regular expression.

Ex: re('input_string','regex_pattern')"

Definition at line 239 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<bool, std::string, DataObject> CASM::format_operator_rs ( )

Makes a DataFormatterOperator that checks if a string contains a regular expression.

Ex: rs('input_string','regex_pattern')

Definition at line 256 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_sq ( )

Makes a DataFormatterOperator that returns the square of a number.

Definition at line 271 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_sqrt ( )

Makes a DataFormatterOperator that returns the square root of a number.

Definition at line 286 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<double, double, DataObject> CASM::format_operator_sub ( )

Makes a DataFormatterOperator that subtracts two numbers.

Definition at line 121 of file DataFormatterTools.hh.

template<typename DataObject >
DataFormatterOperator<bool, bool, DataObject> CASM::format_operator_xor ( )

Makes a DataFormatterOperator that returns the boolean NOT for a single boolean value.

Definition at line 352 of file DataFormatterTools.hh.