test
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 T >
std::ostream & funct::operator<< (std::ostream &cout, const funct::SqrtStruct< T > &f)
 
template<typename T >
std::ostream & funct::operator<< (std::ostream &cout, const funct::ExpStruct< T > &f)
 
template<typename T >
std::ostream & funct::operator<< (std::ostream &cout, const funct::LogStruct< T > &f)
 
template<typename T >
std::ostream & funct::operator<< (std::ostream &cout, const funct::SinStruct< T > &f)
 
template<typename T >
std::ostream & funct::operator<< (std::ostream &cout, const funct::CosStruct< T > &f)
 
template<typename T >
std::ostream & funct::operator<< (std::ostream &cout, const funct::TanStruct< T > &f)
 
template<typename T >
std::ostream & funct::operator<< (std::ostream &cout, const funct::SgnStruct< T > &f)
 
template<typename T >
std::ostream & funct::operator<< (std::ostream &cout, const funct::AbsStruct< T > &f)
 
template<typename A , typename B >
std::ostream & funct::operator<< (std::ostream &cout, const funct::SumStruct< A, B > &f)
 
template<typename A , typename B >
std::ostream & funct::operator<< (std::ostream &cout, const funct::ProductStruct< A, B > &f)
 
template<typename A , typename B >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< A, B > &f)
 
template<typename A , typename B >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< A, B > &f)
 
template<typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::MinusStruct< A > &f)
 
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)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::ProductStruct< funct::SumStruct< A, B >, C > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::ProductStruct< C, funct::SumStruct< A, B > > &f)
 
template<typename A , typename B , typename C , typename D >
std::ostream & funct::operator<< (std::ostream &cout, const funct::ProductStruct< funct::SumStruct< A, B >, funct::SumStruct< C, D > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::ProductStruct< funct::RatioStruct< A, B >, C > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::ProductStruct< C, funct::RatioStruct< A, B > > &f)
 
template<typename A , typename B , typename C , typename D >
std::ostream & funct::operator<< (std::ostream &cout, const funct::ProductStruct< funct::RatioStruct< A, B >, funct::RatioStruct< C, D > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::SumStruct< A, B >, C > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< C, funct::SumStruct< A, B > > &f)
 
template<typename A , typename B , typename C , typename D >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::SumStruct< A, B >, funct::SumStruct< C, D > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< C, funct::ProductStruct< A, B > > &f)
 
template<typename A , typename B , typename C , typename D >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::ProductStruct< A, B >, funct::ProductStruct< C, D > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::ProductStruct< A, B >, C > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< C, funct::RatioStruct< A, B > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::RatioStruct< A, B >, C > &f)
 
template<typename A , typename B , typename C , typename D >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::RatioStruct< A, B >, funct::RatioStruct< C, D > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::SumStruct< A, B >, C > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< C, funct::SumStruct< A, B > > &f)
 
template<typename A , typename B , typename C , typename D >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::SumStruct< A, B >, funct::SumStruct< C, D > > &f)
 
template<typename A , typename B , typename C , typename D >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::ProductStruct< A, B >, funct::ProductStruct< C, D > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::ProductStruct< A, B >, C > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< C, funct::ProductStruct< A, B > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< C, funct::RatioStruct< A, B > > &f)
 
template<typename A , typename B , typename C >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::RatioStruct< A, B >, C > &f)
 
template<typename A , typename B , typename C , typename D >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::RatioStruct< A, B >, funct::RatioStruct< C, D > > &f)
 
template<int n, int m, int k, int l>
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::FractionStruct< n, m >, funct::FractionStruct< k, l > > &f)
 
template<int n, int m, typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< A, funct::FractionStruct< n, m > > &f)
 
template<int n, int m, typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< A, funct::MinusStruct< funct::FractionStruct< n, m > > > &f)
 
template<int n, int m, typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::FractionStruct< n, m >, A > &f)
 
template<int n, int m, typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::RatioStruct< funct::MinusStruct< funct::FractionStruct< n, m > >, A > &f)
 
template<int n, int m, typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< A, funct::MinusStruct< funct::FractionStruct< n, m > > > &f)
 
template<int n, int m, typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< A, funct::FractionStruct< n, m > > &f)
 
template<int n, int m, typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::MinusStruct< funct::FractionStruct< n, m > >, A > &f)
 
template<int n, int m, typename A >
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::FractionStruct< n, m >, A > &f)
 
template<int n, int m, int k, int l>
std::ostream & funct::operator<< (std::ostream &cout, const funct::PowerStruct< funct::FractionStruct< n, m >, funct::FractionStruct< k, l > > &f)
 
template<typename A , typename B >
std::ostream & funct::operator<< (std::ostream &cout, const funct::MinusStruct< funct::SumStruct< A, B > > &f)
 

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:188
double f[11][100]
return(e1-e2)*(e1-e2)+dp *dp
tuple cout
Definition: gather_cfg.py:145

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:188
double f[11][100]
return(e1-e2)*(e1-e2)+dp *dp
tuple cout
Definition: gather_cfg.py:145

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:188
double f[11][100]
return(e1-e2)*(e1-e2)+dp *dp
tuple cout
Definition: gather_cfg.py:145

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:145

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]
return(e1-e2)*(e1-e2)+dp *dp
tuple cout
Definition: gather_cfg.py:145

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:145

Definition at line 54 of file FunctionsIO.h.