|
| | madness::io_redirect::io_redirect (const long task_number, std::string filename, bool debug=false) |
| |
| | madness::io_redirect_cout::io_redirect_cout () |
| |
| | madness::io_redirect::~io_redirect () |
| |
| | madness::io_redirect_cout::~io_redirect_cout () |
| |
| 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.
|
| |
MADNESS is built from several libraries, such as the parallel runtime and the multiresolution analysis tools. The files and submodules listed here detail the API and implementation of these libraries.
- Todo:
- Add additional details to this section, if needed.
The MADNESS framework provides several container classes for convenience. They are described herein.
◆ io_redirect()
| madness::io_redirect::io_redirect |
( |
const long |
task_number, |
|
|
std::string |
filename, |
|
|
bool |
debug = false |
|
) |
| |
|
inline |
◆ io_redirect_cout()
| madness::io_redirect_cout::io_redirect_cout |
( |
| ) |
|
|
inline |
◆ ~io_redirect()
| madness::io_redirect::~io_redirect |
( |
| ) |
|
|
inline |
◆ ~io_redirect_cout()
| madness::io_redirect_cout::~io_redirect_cout |
( |
| ) |
|
|
inline |
◆ operator<<() [1/5]
| std::ostream & madness::operators::operator<< |
( |
std::ostream & |
s, |
|
|
const std::complex< T > & |
c |
|
) |
| |
Easy printing of complex numbers.
- Template Parameters
-
| T | The "real" type of the complex number. |
- Parameters
-
| [in,out] | s | The output stream. |
| [in] | c | The complex number. |
- Returns
- The output stream (for chaining).
References c.
◆ operator<<() [2/5]
| std::ostream & madness::operators::operator<< |
( |
std::ostream & |
s, |
|
|
const std::list< T > & |
c |
|
) |
| |
Easy printing of lists.
- Template Parameters
-
| T | Type stored in the list. |
- Parameters
-
| [in,out] | s | The output stream. |
| [in] | c | The list. |
- Returns
- The output stream (for chaining).
References c.
◆ operator<<() [3/5]
| std::ostream & madness::operators::operator<< |
( |
std::ostream & |
s, |
|
|
const std::pair< T, U > & |
p |
|
) |
| |
Easy printing of pairs.
- Template Parameters
-
| T | Type 1 of the pair. |
| U | Type 2 of the pair. |
- Parameters
-
| [in,out] | s | The output stream. |
| [in] | p | The pair. |
- Returns
- The output stream (for chaining).
References p().
◆ operator<<() [4/5]
| std::ostream & madness::operators::operator<< |
( |
std::ostream & |
s, |
|
|
const std::vector< T > & |
c |
|
) |
| |
Easy printing of vectors.
- Template Parameters
-
| T | Type stored in the vector. |
- Parameters
-
| [in,out] | s | The output stream. |
| [in] | c | The vector. |
- Returns
- The output stream (for chaining).
References c.
◆ operator<<() [5/5]
| 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.
STL I/O already does char (thus the enable_if business).
- Template Parameters
-
| T | Type of data in the array. |
| N | Size of the array. |
- Parameters
-
| [in,out] | s | The output stream. |
| [in] | v | The array. |
- Returns
- The output stream (for chaining).
References N, and v.
◆ debug
◆ ofile
| std::ofstream madness::io_redirect::ofile |
◆ stream_buffer_cout [1/2]
| std::streambuf* madness::io_redirect::stream_buffer_cout |
◆ stream_buffer_cout [2/2]
| std::streambuf* madness::io_redirect_cout::stream_buffer_cout |
◆ stream_buffer_cout_default
| std::streambuf * madness::io_redirect::stream_buffer_cout_default = nullptr |
|
static |