Public Member Functions | |
TypeInfo ("dataIO") | |
Type info. More... | |
dataIO (const IOPattern &iop) | |
dataIO (const dataIO &)=default | |
dataIO (dataIO &&)=default | |
dataIO & | operator= (const dataIO &)=default |
dataIO & | operator= (dataIO &&)=default |
virtual | ~dataIO ()=default |
create_vCtor (dataIO, IOPattern,(const IOPattern &iop),(iop)) | |
bool | writeData (iOstream &os, span< T > data) |
Write data to the end of file from all processors. More... | |
bool | readData (iIstream &is, std::vector< T > &data) |
bool | writeData (iOstream &os, span< word > data) |
Static Public Member Functions | |
static uniquePtr< dataIO > | create (const IOPattern &iop) |
Protected Member Functions | |
virtual bool | gatherData (span< T > data)=0 |
gather data from all processors and put the results in buffer_ More... | |
Protected Attributes | |
IOPattern | ioPattern_ |
std::vector< T > | buffer_ |
span< T > | bufferSpan_ |
Definition at line 67 of file dataIO.hpp.
Definition at line 86 of file dataIO.hpp.
|
virtualdefault |
|
protectedpure virtual |
gather data from all processors and put the results in buffer_
Implemented in dataIORegular< T >.
TypeInfo | ( | "dataIO< T >" | ) |
Type info.
Write data to the end of file from all processors.
This method should be called from all processors.
first gather data from all processors (if any)
Definition at line 193 of file dataIO.cpp.
References pFlow::endl(), fatalErrorInFunction, IOstream::name(), and pFlow::writeDataAsciiBinary().
bool readData | ( | iIstream & | is, |
std::vector< T > & | data | ||
) |
Definition at line 245 of file dataIO.cpp.
References pFlow::readDataAsciiBinary().
|
static |
Definition at line 263 of file dataIO.cpp.
References pFlow::angleBracketsNames2(), fatalError, fatalExit, pFlow::pFlowProcessors(), and pFlow::printKeys().
Referenced by pFlow::readStdVector(), and pFlow::writeSpan().
first gather data from all processors (if any)
Definition at line 215 of file dataIO.cpp.
References pFlow::endl(), fatalErrorInFunction, fatalExit, IOstream::name(), notImplementedFunction, and pFlow::writeDataASCII().
|
protected |
Definition at line 71 of file dataIO.hpp.
|
protected |
Definition at line 73 of file dataIO.hpp.
|
protected |
Definition at line 75 of file dataIO.hpp.
Referenced by dataIORegular< T >::gatherData().