#include <PIO.h>
Inherits std::streambuf.
Public Types | |
| enum | StreamOutputType : uint8_t { null = 0 , out = 1 , log = 2 , err = 4 , out_log = 3 , err_log = 6 } |
Public Member Functions | |
| int | overflow (int ch) override |
| ParallelStreamBuffer (StreamOutputType type) | |
| void | reset () |
| void | setOutputStream (std::ofstream *stream) |
| void | setOutputType (StreamOutputType type) |
| int | sync () override |
| int | underflow () override |
| std::streamsize | xsputn (const char *text, std::streamsize n) override |
| virtual | ~ParallelStreamBuffer () |
Private Member Functions | |
| void | reserve (size_t size) |
Private Attributes | |
| char * | d_buffer |
| size_t | d_buffer_size |
| size_t | d_size |
| std::ofstream * | d_stream |
| StreamOutputType | d_type |
Class ParallelBuffer is a simple I/O stream utility that intercepts output from an ostream and redirects the output as necessary for parallel I/O. This class defines a stream buffer class for an ostream class.
| enum AMP::ParallelStreamBuffer::StreamOutputType : uint8_t |
|
explicit |
Create a parallel buffer class. The object will require further initialization to set up the I/O streams and prefix string.
| type | Output type |
|
virtual |
The destructor simply deallocates any internal data buffers. It does not modify the output streams.
|
override |
Write an overflow character into the parallel buffer (called from streambuf).
|
inlineprivate |
| void AMP::ParallelStreamBuffer::reset | ( | ) |
Clear the internal buffer's memory
| void AMP::ParallelStreamBuffer::setOutputStream | ( | std::ofstream * | stream | ) |
Set the output file stream
| stream | Output stream |
| void AMP::ParallelStreamBuffer::setOutputType | ( | StreamOutputType | type | ) |
Set the output stream type
| type | Output type |
|
override |
Synchronize the parallel buffer (called from streambuf).
|
override |
Read an overflow character from the parallel buffer (called from streambuf). This is not implemented. It is needed by the MSVC++ stream implementation.
|
override |
Write the specified number of characters into the output stream (called from streambuf).
|
private |
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:42. Comments on this page |