rheolef  6.5
Classes | Namespaces | Constant Groups | Macros | Functions | Variables
diststream.h File Reference
#include "rheolef/distributed.h"
#include "rheolef/dis_macros.h"
#include "rheolef/catchmark.h"
Include dependency graph for diststream.h:

Go to the source code of this file.

Classes

class  rheolef::odiststream
 

Namespaces

 rheolef
 irheostream, orheostream - large data streams
 

Constant Groups

 rheolef
 irheostream, orheostream - large data streams
 

Macros

#define define_sequential_odiststream_raw_macro(arg)
 
#define define_sequential_odiststream_macro(T)   define_sequential_odiststream_raw_macro(const T& x)
 
#define define_distributed_odiststream_macro(T)
 
#define define_sequential_idiststream_macro(T)
 
#define define_distributed_idiststream_macro(T)
 

Functions

template<class T >
odiststream & rheolef::operator<< (odiststream &s, T x)
 
 rheolef::idiststream (std::istream &is, const communicator &comm=communicator())
 
 rheolef::idiststream (std::string filename, std::string suffix="", const communicator &comm=communicator())
 
 rheolef::~idiststream ()
 
void rheolef::open (std::string filename, std::string suffix="", const communicator &comm=communicator())
 
void rheolef::close ()
 
const communicator & rheolef::comm () const
 
bool rheolef::good () const
 
 rheolef::operator bool () const
 
static size_type rheolef::io_proc ()
 
bool rheolef::nop ()
 
std::istream & rheolef::is ()
 
bool rheolef::do_load ()
 
bool rheolef::dis_scatch (idiststream &ips, const communicator &comm, std::string ch)
 
bool rheolef::dis_scatch (idiststream &ips, std::string ch)
 
idiststream & rheolef::operator>> (idiststream &ids, const catchmark &m)
 
odiststream & rheolef::operator<< (odiststream &ods, const catchmark &m)
 
int rheolef::dis_system (const std::string &command, const communicator &comm)
 
bool rheolef::dis_file_exists (const std::string &filename, const communicator &comm)
 

Variables

define_sequential_odiststream_macro(char)
define_sequential_odiststream_macro(int)
define_sequential_odiststream_macro(unsigned
int)
define_sequential_odiststream_macro(long
int)
define_sequential_odiststream_macro(long
unsigned int)
define_sequential_odiststream_macro(float)
define_sequential_odiststream_macro(double)
define_sequential_odiststream_macro(long
double)
define_sequential_odiststream_macro(char
*const
) define_sequential_odiststream_macro(st 
rheolef::idiststream )()
 
std::istream * rheolef::_ptr_is
 
bool rheolef::_use_alloc
 
communicator rheolef::_comm
 

Macro Definition Documentation

#define define_sequential_odiststream_raw_macro (   arg)
Value:
inline \
odiststream& \
operator << (odiststream& s, arg) { \
if (s.nop()) return s; s.os() << x; return s; \
}

Definition at line 60 of file diststream.h.

#define define_sequential_odiststream_macro (   T)    define_sequential_odiststream_raw_macro(const T& x)

Definition at line 66 of file diststream.h.

#define define_distributed_odiststream_macro (   T)
Value:
inline \
odiststream& \
operator << (odiststream& s, const T& x) { \
s.os() << x; return s; \
}

Definition at line 69 of file diststream.h.

#define define_sequential_idiststream_macro (   T)
Value:
inline \
idiststream& \
operator >> (idiststream& s, T& x) \
{ \
if (s.do_load()) { (s.is()) >> x; } \
mpi::broadcast (mpi::communicator(), x, s.io_proc()); \
return s; \
}

Definition at line 155 of file diststream.h.

#define define_distributed_idiststream_macro (   T)
Value:
inline \
idiststream& \
operator >> (idiststream& s, T& x) \
{ \
s.is() >> x; \
return s; \
}

Definition at line 174 of file diststream.h.