#include <parallelIO.h>
|
int_type | overflow (int_type c) override |
|
std::streamsize | xsputn (const char *s, std::streamsize num) override |
|
int_type | uflow () override |
|
int_type | underflow () override |
|
std::streamsize | xsgetn (char *s, std::streamsize num) override |
|
Definition at line 37 of file parallelIO.h.
◆ Modes
◆ ParBuf()
olb::ParBuf::ParBuf |
( |
std::streambuf * | _originalBuf | ) |
|
◆ getMode()
◆ overflow()
std::streambuf::int_type olb::ParBuf::overflow |
( |
int_type | c | ) |
|
|
overrideprotected |
Definition at line 117 of file parallelIO.h.
118{
119 int_type returnVal =
c;
120 if (c != EOF) {
121#ifdef PARALLEL_MODE_MPI
123#endif
124 returnVal = originalBuf->sputc((char)c);
125#ifdef PARALLEL_MODE_MPI
126 }
129 }
130#endif
131 }
132 return returnVal;
133}
void bCast(T *sendBuf, int sendCount, int root=0, MPI_Comm comm=MPI_COMM_WORLD)
Broadcast data from one processor to multiple processors.
platform_constant int c[Q][D]
References olb::singleton::MpiManager::bCast(), olb::singleton::mpi(), and normal.
◆ setMode()
◆ uflow()
std::streambuf::int_type olb::ParBuf::uflow |
( |
| ) |
|
|
overrideprotected |
◆ underflow()
std::streambuf::int_type olb::ParBuf::underflow |
( |
| ) |
|
|
overrideprotected |
◆ xsgetn()
std::streamsize olb::ParBuf::xsgetn |
( |
char * | s, |
|
|
std::streamsize | num ) |
|
overrideprotected |
Definition at line 197 of file parallelIO.h.
198{
199 std::streamsize sizeRead=0;
200#ifdef PARALLEL_MODE_MPI
202#endif
203 sizeRead = originalBuf->sgetn(s, num);
204#ifdef PARALLEL_MODE_MPI
205 }
207 int intSizeRead = (int) sizeRead;
210 sizeRead = (std::streamsize) intSizeRead;
211 }
212#endif
213 return sizeRead;
214}
References olb::singleton::MpiManager::bCast(), olb::singleton::mpi(), and normal.
◆ xsputn()
std::streamsize olb::ParBuf::xsputn |
( |
const char * | s, |
|
|
std::streamsize | num ) |
|
overrideprotected |
Definition at line 148 of file parallelIO.h.
149{
150#ifdef PARALLEL_MODE_MPI
152#endif
153 return originalBuf->sputn(s,num);
154#ifdef PARALLEL_MODE_MPI
155 }
156 else {
157 return num;
158 }
159#endif
160}
References olb::singleton::mpi().
The documentation for this class was generated from the following file: