Public Types | |
| enum | states : int { CLOSED = 0 , READ , WRITE , ATOMIC_WRITE } |
| The file states. More... | |
Public Member Functions | |
| Impl () | |
| Default construct. | |
| const MPI_File & | handle () const noexcept |
| MPI_File & | handle () noexcept |
| const fileName & | name () const noexcept |
| fileName & | name () noexcept |
| int | state (states val) noexcept |
| bool | master () const noexcept |
| Is rank 0 ? (master rank). | |
| int | rank () const noexcept |
| Get the associated rank. | |
| void | rank (int val) noexcept |
| Set the associated rank. | |
| bool | is_open () const noexcept |
| bool | is_read () const noexcept |
| bool | is_atomic () const noexcept |
| bool | is_write () const noexcept |
| bool | checkReadable (const char *what) const |
| Assert is_read() or FatalError. | |
| bool | checkWritable (const char *what) const |
| Assert is_write() or FatalError. | |
Definition at line 33 of file UPstreamFile.C.
| enum states : int |
The file states.
| Enumerator | |
|---|---|
| CLOSED | |
| READ | |
| WRITE | |
| ATOMIC_WRITE | |
Definition at line 104 of file UPstreamFile.C.
|
inline |
|
inlinenoexcept |
Definition at line 122 of file UPstreamFile.C.
References Foam::noexcept.
|
inlinenoexcept |
Definition at line 123 of file UPstreamFile.C.
References Foam::noexcept.
|
inlinenoexcept |
Definition at line 126 of file UPstreamFile.C.
References Foam::noexcept.
Referenced by checkReadable(), and checkWritable().

|
inlinenoexcept |
Definition at line 127 of file UPstreamFile.C.
References Foam::noexcept.
|
inlinenoexcept |
Definition at line 130 of file UPstreamFile.C.
|
inlinenoexcept |
Is rank 0 ? (master rank).
Definition at line 140 of file UPstreamFile.C.
References Foam::noexcept.
|
inlinenoexcept |
|
inlinenoexcept |
Set the associated rank.
Definition at line 150 of file UPstreamFile.C.
|
inlinenoexcept |
Definition at line 156 of file UPstreamFile.C.
References Foam::noexcept.
|
inlinenoexcept |
Definition at line 159 of file UPstreamFile.C.
References Foam::noexcept, and READ.
Referenced by checkReadable().

|
inlinenoexcept |
Definition at line 165 of file UPstreamFile.C.
References ATOMIC_WRITE, and Foam::noexcept.
|
inlinenoexcept |
Definition at line 171 of file UPstreamFile.C.
References ATOMIC_WRITE, Foam::noexcept, and WRITE.
Referenced by checkWritable().

|
inline |
Assert is_read() or FatalError.
Definition at line 179 of file UPstreamFile.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, FOAM_UNLIKELY, is_read(), name(), and Foam::nl.

|
inline |
Assert is_write() or FatalError.
Definition at line 195 of file UPstreamFile.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, FOAM_UNLIKELY, is_write(), name(), and Foam::nl.
