|
template<typename T > |
std::ostream & | madness::operators::operator<< (std::ostream &s, const std::complex< T > &c) |
| Easy printing of complex numbers.
|
|
template<typename T > |
std::ostream & | madness::operators::operator<< (std::ostream &s, const std::list< T > &c) |
| Easy printing of lists.
|
|
template<typename T , typename U > |
std::ostream & | madness::operators::operator<< (std::ostream &s, const std::pair< T, U > &p) |
| Easy printing of pairs.
|
|
template<typename T > |
std::ostream & | madness::operators::operator<< (std::ostream &s, const std::vector< T > &c) |
| Easy printing of vectors.
|
|
template<typename T , std::size_t N> |
std::enable_if<!std::is_same< T, char >::value, std::ostream & >::type | madness::operators::operator<< (std::ostream &s, const T(&v)[N]) |
| Easy printing of fixed dimension arrays.
|
|
template<typename T , typename... Ts> |
void | madness::print (const T &t, const Ts &... ts) |
| Print items to std::cout (items separated by spaces) and terminate with a new line.
|
|
void | madness::print_centered (const char *s, int column=40, bool underline=true) |
| Print a string centered at the given column with optional underlining.
|
|
template<typename T , typename... Ts> |
void | madness::print_error (const T &t, const Ts &... ts) |
| Print items to std::cerr (items separated by spaces) and terminate with a new line.
|
|
void | madness::print_header1 (const std::string &s) |
| big section heading
|
|
void | madness::print_header2 (const std::string &s) |
| medium section heading
|
|
void | madness::print_header3 (const std::string &s) |
| small section heading
|
|
std::ostream & | madness::print_helper (std::ostream &out) |
| Helper function for print . Base case.
|
|
template<typename T , typename... Ts> |
std::ostream & | madness::print_helper (std::ostream &out, const T &t, const Ts &... ts) |
| Helper function for print . Prints the first item (t ) and recursively passes on the other items.
|
|
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.
|
|
void | madness::printf_msg_energy_time (const std::string msg, const double energy, const double time) |
|
Defines simple templates for printing to std::cout
"a la Python".