MADNESS  version 0.9
Namespaces | Macros | Functions
print.h File Reference

Defines simple templates for printing to std::cout "a la Python". More...

#include <iostream>
#include <complex>
#include <list>
#include <vector>
#include <madness/world/typestuff.h>
#include <madness/world/enable_if.h>
Include dependency graph for print.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 madness
 Holds machinery to set up Functions/FuncImpls using various Factories and Interfaces.
 

Macros

#define ENDL   std::endl
 

Functions

template<typename T >
std::ostream & madness::operator<< (std::ostream &s, const std::complex< T > &c)
 Easy printing of complex numbers. More...
 
template<typename T , typename U >
std::ostream & madness::operator<< (std::ostream &s, const std::pair< T, U > &p)
 Easy printing of pairs. More...
 
template<typename T >
std::ostream & madness::operator<< (std::ostream &s, const std::list< T > &c)
 Easy printing of lists. More...
 
template<typename T >
std::ostream & madness::operator<< (std::ostream &s, const std::vector< T > &c)
 Easy printing of vectors. More...
 
template<typename T , std::size_t N>
disable_if< std::is_same< T,
char >, std::ostream & >::type 
madness::operator<< (std::ostream &s, const T(&v)[N])
 Easy printing of fixed dimension arrays. More...
 
template<class A >
void madness::print (const A &a)
 Print a single item to std::cout terminating with new line. More...
 
template<class A , class B >
void madness::print (const A &a, const B &b)
 Print two items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C >
void madness::print (const A &a, const B &b, const C &c)
 Print three items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D >
void madness::print (const A &a, const B &b, const C &c, const D &d)
 Print four items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e)
 Print five items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f)
 Print six items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F , class G >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g)
 Print seven items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F , class G , class H >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h)
 Print eight items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F , class G , class H , class I >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h, const I &i)
 Print nine items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F , class G , class H , class I , class J >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h, const I &i, const J &j)
 Print ten items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F , class G , class H , class I , class J , class K >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h, const I &i, const J &j, const K &k)
 Print eleven items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F , class G , class H , class I , class J , class K , class L >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h, const I &i, const J &j, const K &k, const L &l)
 Print twelve items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F , class G , class H , class I , class J , class K , class L , class M >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h, const I &i, const J &j, const K &k, const L &l, const M &m)
 Print thirteen items separated by spaces to std::cout terminating with new line. More...
 
template<class A , class B , class C , class D , class E , class F , class G , class H , class I , class J , class K , class L , class M , class N >
void madness::print (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h, const I &i, const J &j, const K &k, const L &l, const M &m, const N &n)
 Print fourteen items separated by spaces to std::cout terminating with new line. More...
 
void madness::print_justified (const char *s, int column=0, bool underline=true)
 Print a string justified on the left to start at the given column with optional underlining. More...
 
void madness::print_centered (const char *s, int column=40, bool underline=true)
 Print a string centered at the given column with optional underlining. More...
 

Detailed Description

Defines simple templates for printing to std::cout "a la Python".

Macro Definition Documentation

#define ENDL   std::endl