CASM  1.1.0
A Clusters Approach to Statistical Mechanics
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_rms ()
 Makes a DataFormatterOperator that returns the root-mean-square value of 0 or more elements. More...
 
template<typename DataObject >
DataFormatterOperator< double, double, DataObject > CASM::format_operator_pnorm ()
 Makes a DataFormatterOperator that returns the root-mean-square value of 0 or more elements. 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

◆ format_operator_add()

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

Makes a DataFormatterOperator that adds two or more numbers.

Definition at line 104 of file DataFormatterTools.hh.

◆ format_operator_and()

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 375 of file DataFormatterTools.hh.

◆ format_operator_div()

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

Makes a DataFormatterOperator that divides two numbers.

Definition at line 149 of file DataFormatterTools.hh.

◆ format_operator_eq()

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

Makes a DataFormatterOperator for equality comparison of two numbers.

Definition at line 433 of file DataFormatterTools.hh.

◆ format_operator_exp()

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

Makes a DataFormatterOperator that returns the exponential of a number.

Definition at line 264 of file DataFormatterTools.hh.

◆ format_operator_ge()

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 500 of file DataFormatterTools.hh.

◆ format_operator_gt()

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

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

Definition at line 483 of file DataFormatterTools.hh.

◆ format_operator_imax()

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 234 of file DataFormatterTools.hh.

◆ format_operator_imin()

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 249 of file DataFormatterTools.hh.

◆ format_operator_le()

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 466 of file DataFormatterTools.hh.

◆ format_operator_lt()

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

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

Definition at line 449 of file DataFormatterTools.hh.

◆ format_operator_max()

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 206 of file DataFormatterTools.hh.

◆ format_operator_min()

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 220 of file DataFormatterTools.hh.

◆ format_operator_mult()

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 134 of file DataFormatterTools.hh.

◆ format_operator_neg()

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

Makes a DataFormatterOperator that returns the negative of a number.

Definition at line 358 of file DataFormatterTools.hh.

◆ format_operator_or()

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 390 of file DataFormatterTools.hh.

◆ format_operator_pnorm()

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

Makes a DataFormatterOperator that returns the root-mean-square value of 0 or more elements.

Definition at line 182 of file DataFormatterTools.hh.

◆ format_operator_re()

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 283 of file DataFormatterTools.hh.

◆ format_operator_rms()

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

Makes a DataFormatterOperator that returns the root-mean-square value of 0 or more elements.

Definition at line 166 of file DataFormatterTools.hh.

◆ format_operator_rs()

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 306 of file DataFormatterTools.hh.

◆ format_operator_sq()

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

Makes a DataFormatterOperator that returns the square of a number.

Definition at line 326 of file DataFormatterTools.hh.

◆ format_operator_sqrt()

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 342 of file DataFormatterTools.hh.

◆ format_operator_sub()

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

Makes a DataFormatterOperator that subtracts two numbers.

Definition at line 117 of file DataFormatterTools.hh.

◆ format_operator_xor()

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 405 of file DataFormatterTools.hh.