OpenFOAM logo
Open Source CFD Toolkit

OPstream Class Reference

Inheritance diagram for OPstream:

Inheritance graph
[legend]
Collaboration diagram for OPstream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OPstream (const int toProcNo, const label bufSize=0, const bool bufferedTransfer=true, streamFormat format=BINARY, versionNumber version=currentVersion)
 Construct given process index to send to and optional buffer size,.
 ~OPstream ()
ios_base::fmtflags flags () const
 Return flags of output stream.
Ostreamwrite (const token &)
 Write next token to stream.
Ostreamwrite (const char)
 Write character.
Ostreamwrite (const char *)
 Write character string.
Ostreamwrite (const word &)
 Write word.
Ostreamwrite (const string &)
 Write string.
Ostreamwrite (const label)
 Write label.
Ostreamwrite (const floatScalar)
 Write floatScalar.
Ostreamwrite (const doubleScalar)
 Write doubleScalar.
Ostreamwrite (const char *, std::streamsize)
 Write binary block.
void indent ()
 Add indentation characters.
void flush ()
 Flush stream.
void endl ()
 Add '
' and flush stream.
int width () const
 Get width of output field.
int width (const int)
 Set width of output field (and return old width).
int precision () const
 Get precision of output field.
int precision (const int)
 Set precision of output field (and return old precision).
bool bufferedTransfer () const
 Get the data transfer option of the stream.
bool bufferedTransfer (const bool bfrdTransfer)
 Set the buffering option of the stream.
ios_base::fmtflags flags (const ios_base::fmtflags)
 Set flags of stream.
void print (Ostream &) const
 Print description of IOstream to Ostream.

Static Public Member Functions

bool write (const int toProcNo, const char *buf, const std::streamsize bufSize, const bool bufferedTransfer=true)
 Write given buffer to given processor.

Constructor & Destructor Documentation

OPstream const int  toProcNo,
const label  bufSize = 0,
const bool  bufferedTransfer = true,
streamFormat  format = BINARY,
versionNumber  version = currentVersion
 

Construct given process index to send to and optional buffer size,.

write format and IO version

~OPstream  ) 
 


Member Function Documentation

bool bufferedTransfer const bool  bfrdTransfer  )  [inline]
 

Set the buffering option of the stream.

Definition at line 202 of file OPstream.H.

bool bufferedTransfer  )  const [inline]
 

Get the data transfer option of the stream.

Definition at line 196 of file OPstream.H.

void endl  )  [inline, virtual]
 

Add '
' and flush stream.

Implements Ostream.

Definition at line 168 of file OPstream.H.

ios_base::fmtflags flags const ios_base::fmtflags   )  [inline]
 

Set flags of stream.

Definition at line 213 of file OPstream.H.

ios_base::fmtflags flags  )  const [inline, virtual]
 

Return flags of output stream.

Implements IOstream.

Definition at line 112 of file OPstream.H.

void flush  )  [inline, virtual]
 

Flush stream.

Implements Ostream.

Definition at line 164 of file OPstream.H.

void indent  )  [inline, virtual]
 

Add indentation characters.

Implements Ostream.

Definition at line 157 of file OPstream.H.

int precision const   int  )  [inline]
 

Set precision of output field (and return old precision).

Definition at line 190 of file OPstream.H.

int precision  )  const [inline, virtual]
 

Get precision of output field.

Implements Ostream.

Definition at line 184 of file OPstream.H.

void print Ostream  )  const [virtual]
 

Print description of IOstream to Ostream.

Reimplemented from IOstream.

int width const   int  )  [inline]
 

Set width of output field (and return old width).

Definition at line 178 of file OPstream.H.

int width  )  const [inline, virtual]
 

Get width of output field.

Implements Ostream.

Definition at line 172 of file OPstream.H.

Ostream& write const char *  ,
std::streamsize 
[virtual]
 

Write binary block.

Implements Ostream.

Ostream& write const   doubleScalar  )  [virtual]
 

Write doubleScalar.

Implements Ostream.

Ostream& write const   floatScalar  )  [virtual]
 

Write floatScalar.

Implements Ostream.

Ostream& write const   label  )  [virtual]
 

Write label.

Implements Ostream.

Ostream& write const string  )  [virtual]
 

Write string.

Implements Ostream.

Ostream& write const word  )  [virtual]
 

Write word.

Implements Ostream.

Ostream& write const char *   )  [virtual]
 

Write character string.

Implements Ostream.

Ostream& write const   char  )  [virtual]
 

Write character.

Implements Ostream.

Ostream& write const token  )  [virtual]
 

Write next token to stream.

Implements Ostream.

bool write const int  toProcNo,
const char *  buf,
const std::streamsize  bufSize,
const bool  bufferedTransfer = true
[static]
 

Write given buffer to given processor.


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org