#include "PhysicsTools/Utilities/interface/Variables.h"
#include "PhysicsTools/Utilities/interface/Numerical.h"
#include "PhysicsTools/Utilities/interface/Fraction.h"
#include "PhysicsTools/Utilities/interface/Functions.h"
#include "PhysicsTools/Utilities/interface/Operations.h"
#include <ostream>
Go to the source code of this file.
Namespaces | |
namespace | funct |
Defines | |
#define | PARENTHESES(TMPL1, TMPL2, OP) |
#define | PARENTHESES_1(TMPL1, TMPL2, OP) |
#define | PARENTHESES_FRACT(TMPL, OP) |
#define | PRINT_BINARY_OPERATOR(TMPL, OP) |
#define | PRINT_FUNCTION(FUN, NAME) |
#define | PRINT_UNARY_OPERATOR(TMPL, OP) |
Functions | |
template<typename A, int n> | |
std::ostream & | funct::operator<< (std::ostream &cout, const funct::SumStruct< funct::MinusStruct< A >, funct::Numerical< n > > &f) |
template<typename A, int n> | |
std::ostream & | funct::operator<< (std::ostream &cout, const funct::SumStruct< A, funct::Numerical< n > > &f) |
template<typename A, typename B> | |
std::ostream & | funct::operator<< (std::ostream &cout, const funct::SumStruct< funct::MinusStruct< A >, B > &f) |
template<typename A, typename B> | |
std::ostream & | funct::operator<< (std::ostream &cout, const funct::SumStruct< funct::MinusStruct< A >, funct::MinusStruct< B > > &f) |
template<typename A, typename B> | |
std::ostream & | funct::operator<< (std::ostream &cout, const funct::SumStruct< A, funct::MinusStruct< B > > &f) |
template<int n, int m> | |
std::ostream & | funct::operator<< (std::ostream &cout, const funct::MinusStruct< funct::FractionStruct< n, m > > &) |
template<int n, int m> | |
std::ostream & | funct::operator<< (std::ostream &cout, const funct::FractionStruct< n, m > &) |
template<int n> | |
std::ostream & | funct::operator<< (std::ostream &cout, const Numerical< n > &) |
funct::PARENTHESES (PowerStruct, RatioStruct,"^") | |
funct::PARENTHESES (PowerStruct, ProductStruct,"^") | |
funct::PARENTHESES (PowerStruct, SumStruct,"^") | |
funct::PARENTHESES (RatioStruct, RatioStruct,"/") | |
funct::PARENTHESES (RatioStruct, ProductStruct,"/") | |
funct::PARENTHESES (RatioStruct, SumStruct,"/") | |
funct::PARENTHESES (ProductStruct, RatioStruct," ") | |
funct::PARENTHESES (ProductStruct, SumStruct," ") | |
funct::PARENTHESES_1 (MinusStruct, SumStruct,"-") | |
funct::PARENTHESES_FRACT (PowerStruct,"^") | |
funct::PARENTHESES_FRACT (RatioStruct,"/") | |
funct::PRINT_BINARY_OPERATOR (PowerStruct,"^") | |
funct::PRINT_BINARY_OPERATOR (RatioStruct,"/") | |
funct::PRINT_BINARY_OPERATOR (ProductStruct," ") | |
funct::PRINT_BINARY_OPERATOR (SumStruct," + ") | |
funct::PRINT_FUNCTION (AbsStruct,"abs") | |
funct::PRINT_FUNCTION (SgnStruct,"sgn") | |
funct::PRINT_FUNCTION (TanStruct,"tan") | |
funct::PRINT_FUNCTION (CosStruct,"cos") | |
funct::PRINT_FUNCTION (SinStruct,"sin") | |
funct::PRINT_FUNCTION (LogStruct,"log") | |
funct::PRINT_FUNCTION (ExpStruct,"exp") | |
funct::PRINT_FUNCTION (SqrtStruct,"sqrt") | |
funct::PRINT_UNARY_OPERATOR (MinusStruct,"-") |
#define PARENTHESES | ( | TMPL1, | |||
TMPL2, | |||||
OP | ) |
Value:
template<typename A, typename B, typename C> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL1<funct::TMPL2<A, B>, C> & f) { \ return cout << "( " << f._1 << " )" << OP << f._2; \ } \ \ template<typename A, typename B, typename C> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL1<C, funct::TMPL2<A, B> > & f) { \ return cout << f._1 << OP << "( " << f._2 << " )"; \ } \ \ template<typename A, typename B, typename C, typename D> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL1<funct::TMPL2<A, B>, \ funct::TMPL2<C, D> > & f) { \ return cout << "( " << f._1 << " )" << OP << "( " << f._2 << " )"; \ } \ \ struct __useless_ignoreme
Definition at line 100 of file FunctionsIO.h.
#define PARENTHESES_1 | ( | TMPL1, | |||
TMPL2, | |||||
OP | ) |
Value:
template<typename A, typename B> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL1<funct::TMPL2<A, B> > & f) { \ return cout << OP << "( " << f._ << " )"; \ } \ struct __useless_ignoreme
Definition at line 154 of file FunctionsIO.h.
#define PARENTHESES_FRACT | ( | TMPL, | |||
OP | ) |
Value:
template<int n, int m, typename A> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL<funct::FractionStruct<n, m>, A> & f ) { \ return cout << "( " << f._1 << " )" << OP << f._2; \ } \ \ template<int n, int m, typename A> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL<A, funct::FractionStruct<n, m> > & f) { \ return cout << f._1 << OP << "( " << f._2 << " )"; } \ \ template<int n, int m, int k, int l> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL<funct::FractionStruct<n, m>, \ funct::FractionStruct<k, l> > & f) { \ return cout << "( " << f._1 << " )" << OP << "( " << f._2 << " )"; \ } \ \ template<int n, int m, typename A> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL<funct::MinusStruct<funct::FractionStruct<n, m> >, A> & f) { \ return cout << "( " << f._1 << " )" << OP << f._2; \ } \ \ template<int n, int m, typename A> \ std::ostream& operator<<(std::ostream& cout, \ const funct::TMPL<A, funct::MinusStruct<funct::FractionStruct<n, m> > > & f) { \ return cout << f._1 << OP << "( " << f._2 << " )"; \ } \ struct __useless_ignoreme
Definition at line 122 of file FunctionsIO.h.
#define PRINT_BINARY_OPERATOR | ( | TMPL, | |||
OP | ) |
#define PRINT_FUNCTION | ( | FUN, | |||
NAME | ) |
Value:
template<typename T> \ std::ostream& operator<<(std::ostream& cout, const funct::FUN<T> & f) { \ return cout << NAME << "(" << f._ << ")"; \ } \ \ struct __useless_ignoreme
Definition at line 28 of file FunctionsIO.h.
#define PRINT_UNARY_OPERATOR | ( | TMPL, | |||
OP | ) |
Value:
template<typename A> \ std::ostream& operator<<(std::ostream& cout, const funct::TMPL <A> & f) \ { return cout << OP << f._; } \ \ struct __useless_ignoreme
Definition at line 54 of file FunctionsIO.h.