CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Macros | Functions
FunctionsIO.h File Reference
#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

 funct
 

Macros

#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<int n>
std::ostream & funct::operator<< (std::ostream &cout, const Numerical< n > &)
 
template<int n, int m>
std::ostream & funct::operator<< (std::ostream &cout, const funct::FractionStruct< n, m > &)
 
template<int n, int m>
std::ostream & funct::operator<< (std::ostream &cout, const funct::MinusStruct< funct::FractionStruct< n, m > > &)
 
template<typename A , typename B >
std::ostream & funct::operator<< (std::ostream &cout, const funct::SumStruct< A, funct::MinusStruct< 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< funct::MinusStruct< A >, B > &f)
 
template<typename A , int n>
std::ostream & funct::operator<< (std::ostream &cout, const funct::SumStruct< A, funct::Numerical< n > > &f)
 
template<typename A , int n>
std::ostream & funct::operator<< (std::ostream &cout, const funct::SumStruct< funct::MinusStruct< A >, funct::Numerical< n > > &f)
 
 funct::PARENTHESES (ProductStruct, SumStruct," ")
 
 funct::PARENTHESES (ProductStruct, RatioStruct," ")
 
 funct::PARENTHESES (RatioStruct, SumStruct,"/")
 
 funct::PARENTHESES (RatioStruct, ProductStruct,"/")
 
 funct::PARENTHESES (RatioStruct, RatioStruct,"/")
 
 funct::PARENTHESES (PowerStruct, SumStruct,"^")
 
 funct::PARENTHESES (PowerStruct, ProductStruct,"^")
 
 funct::PARENTHESES (PowerStruct, RatioStruct,"^")
 
 funct::PARENTHESES_1 (MinusStruct, SumStruct,"-")
 
 funct::PARENTHESES_FRACT (RatioStruct,"/")
 
 funct::PARENTHESES_FRACT (PowerStruct,"^")
 
 funct::PRINT_BINARY_OPERATOR (SumStruct," + ")
 
 funct::PRINT_BINARY_OPERATOR (ProductStruct," ")
 
 funct::PRINT_BINARY_OPERATOR (RatioStruct,"/")
 
 funct::PRINT_BINARY_OPERATOR (PowerStruct,"^")
 
 funct::PRINT_FUNCTION (SqrtStruct,"sqrt")
 
 funct::PRINT_FUNCTION (ExpStruct,"exp")
 
 funct::PRINT_FUNCTION (LogStruct,"log")
 
 funct::PRINT_FUNCTION (SinStruct,"sin")
 
 funct::PRINT_FUNCTION (CosStruct,"cos")
 
 funct::PRINT_FUNCTION (TanStruct,"tan")
 
 funct::PRINT_FUNCTION (SgnStruct,"sgn")
 
 funct::PRINT_FUNCTION (AbsStruct,"abs")
 
 funct::PRINT_UNARY_OPERATOR (MinusStruct,"-")
 

Macro Definition Documentation

#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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
double f[11][100]
tuple cout
Definition: gather_cfg.py:121

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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
double f[11][100]
tuple cout
Definition: gather_cfg.py:121

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>, \
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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
double f[11][100]
tuple cout
Definition: gather_cfg.py:121

Definition at line 122 of file FunctionsIO.h.

#define PRINT_BINARY_OPERATOR (   TMPL,
  OP 
)
Value:
template<typename A, typename B> \
std::ostream& operator<<(std::ostream& cout, const funct::TMPL <A, B> & f) \
{ return cout << f._1 << OP << f._2; } \
\
struct __useless_ignoreme
double f[11][100]
tuple cout
Definition: gather_cfg.py:121

Definition at line 47 of file FunctionsIO.h.

#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
double f[11][100]
tuple cout
Definition: gather_cfg.py:121

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
double f[11][100]
tuple cout
Definition: gather_cfg.py:121

Definition at line 54 of file FunctionsIO.h.