SyTen
output.cpp File Reference

Implementation for inc/util/output.h. More...

#include "inc/util/output.h"
#include "inc/util/macros.h"
+ Include dependency graph for output.cpp:

Namespaces

namespace  syten
 Syten namespace.
 

Functions

std::string syten::concatArg (int argc, char **argv)
 Concatenate elements argv[1…argv-1] into a string separated by spaces. More...
 
template<>
std::string syten::describe_scalar_type< double > ()
 Specialisation of describe_scalar_type() for doubles. More...
 
template<>
std::string syten::describe_scalar_type< float > ()
 Specialisation of describe_scalar_type() for floats. More...
 
template<>
std::string syten::describe_scalar_type< std::complex< double > > ()
 Specialisation of describe_scalar_type() for complex doubles. More...
 
template<>
std::string syten::describe_scalar_type< std::complex< float > > ()
 Specialisation of describe_scalar_type() for complex floats. More...
 
std::ostreamsyten::getErr (bool b)
 Returns std::cerr if b is true, otherwise a dummy output stream. More...
 
std::ostreamsyten::getOut (bool b)
 Returns std::cout if b is true, otherwise a dummy output stream. More...
 
void syten::progress (std::uint64_t i, bool quiet, std::string s="", bool use_error=true)
 Outputs a single character to std::cerr unless quiet. More...
 
template<typename T >
void syten::read (std::istream &in, std::complex< T > &x)
 Reads a complex scalar value from in and stores it in x, explicitly instantiated for std::complex<double> and std::complex<float>. More...
 
template void syten::read< double > (std::istream &in, std::complex< double > &x)
 Explicit instantiation of read() for complex doubles. More...
 
template void syten::read< float > (std::istream &in, std::complex< float > &x)
 Explicit instantiation of read() for complex floats. More...
 
std::string syten::stripChars (std::string const &input, std::string const &to_remove=" /:")
 Returns the string input with all characters contained in to_remove removed. More...
 
std::string syten::stripEnd (std::string const &a, std::string const &to_strip)
 Strips all occurences of to_strip from the end of a, if possible. More...
 

Variables

NOut syten::nout
 global NOut object (to be used as cout, eg) More...
 

Detailed Description

Implementation for inc/util/output.h.