CMS 3D CMS Logo

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

Macro Definition Documentation

◆ PARENTHESES

#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 97 of file FunctionsIO.h.

◆ PARENTHESES_1

#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 145 of file FunctionsIO.h.

◆ PARENTHESES_FRACT

#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, \
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 115 of file FunctionsIO.h.

◆ PRINT_BINARY_OPERATOR

#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

Definition at line 46 of file FunctionsIO.h.

◆ PRINT_FUNCTION

#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 27 of file FunctionsIO.h.

◆ PRINT_UNARY_OPERATOR

#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.

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
gather_cfg.cout
cout
Definition: gather_cfg.py:144
funct::FractionStruct
Definition: Fraction.h:11
funct::MinusStruct
Definition: Minus.h:7
A
funct::operator<<
std::ostream & operator<<(std::ostream &cout, const funct::MinusStruct< funct::SumStruct< A, B > > &f)
Definition: FunctionsIO.h:166
gen::C
C
Definition: PomwigHadronizer.cc:76