Rheolef  7.1
an efficient C++ finite element environment
odiststream

odiststream: see the diststream page for the full documentation More...

Public Types

typedef std::size_t size_type
 

Public Member Functions

 odiststream ()
 
 odiststream (std::string filename, std::string suffix="", io::mode_type mode=io::out, const communicator &comm=communicator())
 
 odiststream (std::string filename, io::mode_type mode, const communicator &comm=communicator())
 
 odiststream (std::string filename, std::string suffix, const communicator &comm)
 
 odiststream (std::string filename, const communicator &comm)
 
 odiststream (std::ostream &os, const communicator &comm=communicator())
 
 ~odiststream ()
 
void open (std::string filename, std::string suffix="", io::mode_type mode=io::out, const communicator &comm=communicator())
 This routine opens a physical output file. More...
 
void open (std::string filename, io::mode_type mode, const communicator &comm=communicator())
 
void open (std::string filename, std::string suffix, const communicator &comm)
 
void open (std::string filename, const communicator &comm)
 
void flush ()
 
void close ()
 
const communicator & comm () const
 
bool good () const
 
 operator bool () const
 
std::ostream & os ()
 
bool nop ()
 

Static Public Member Functions

static size_type io_proc ()
 

Protected Attributes

std::ostream * _ptr_os
 
bool _use_alloc
 
communicator _comm
 

Detailed Description

odiststream: see the diststream page for the full documentation

Definition at line 126 of file diststream.h.

Member Typedef Documentation

◆ size_type

typedef std::size_t size_type

Definition at line 128 of file diststream.h.

Constructor & Destructor Documentation

◆ odiststream() [1/6]

Definition at line 183 of file diststream.h.

◆ odiststream() [2/6]

odiststream ( std::string  filename,
std::string  suffix = "",
io::mode_type  mode = io::out,
const communicator &  comm = communicator() 
)

Definition at line 188 of file diststream.h.

◆ odiststream() [3/6]

odiststream ( std::string  filename,
io::mode_type  mode,
const communicator &  comm = communicator() 
)

Definition at line 194 of file diststream.h.

◆ odiststream() [4/6]

odiststream ( std::string  filename,
std::string  suffix,
const communicator &  comm 
)

Definition at line 200 of file diststream.h.

◆ odiststream() [5/6]

odiststream ( std::string  filename,
const communicator &  comm 
)

Definition at line 206 of file diststream.h.

◆ odiststream() [6/6]

odiststream ( std::ostream &  os,
const communicator &  comm = communicator() 
)

Definition at line 212 of file diststream.h.

◆ ~odiststream()

Definition at line 184 of file diststream.cc.

Member Function Documentation

◆ open() [1/4]

void open ( std::string  filename,
std::string  suffix = "",
io::mode_type  mode = io::out,
const communicator &  comm = communicator() 
)

This routine opens a physical output file.

Definition at line 143 of file diststream.cc.

◆ open() [2/4]

void open ( std::string  filename,
io::mode_type  mode,
const communicator &  comm = communicator() 
)

Definition at line 218 of file diststream.h.

◆ open() [3/4]

void open ( std::string  filename,
std::string  suffix,
const communicator &  comm 
)

Definition at line 224 of file diststream.h.

◆ open() [4/4]

void open ( std::string  filename,
const communicator &  comm 
)

Definition at line 230 of file diststream.h.

◆ flush()

void flush ( )

Definition at line 174 of file diststream.cc.

◆ close()

void close ( )

Definition at line 164 of file diststream.cc.

◆ comm()

const communicator& comm ( ) const

Definition at line 156 of file diststream.h.

◆ good()

bool good ( ) const

Definition at line 194 of file diststream.cc.

◆ operator bool()

operator bool ( ) const

Definition at line 158 of file diststream.h.

◆ io_proc()

odiststream::size_type io_proc ( )
static

Definition at line 78 of file diststream.cc.

◆ os()

std::ostream & os ( )

Definition at line 236 of file diststream.h.

◆ nop()

bool nop ( )

Definition at line 243 of file diststream.h.

Member Data Documentation

◆ _ptr_os

std::ostream* _ptr_os
protected

Definition at line 169 of file diststream.h.

◆ _use_alloc

bool _use_alloc
protected

Definition at line 170 of file diststream.h.

◆ _comm

communicator _comm
protected

Definition at line 171 of file diststream.h.


The documentation for this class was generated from the following files: