Wrapper class for allocating/freeing communicators. More...
Public Member Functions | |
| communicator (const communicator &)=delete | |
| No copy construct. More... | |
| void | operator= (const communicator &)=delete |
| No copy assignment. More... | |
| communicator () noexcept | |
| Default construct (a placeholder communicator) More... | |
| communicator (communicator &&c) | |
| Move construct, takes ownership. More... | |
| communicator (const label parent, const labelUList &subRanks, const bool doPstream=true) | |
| Allocate a communicator based on given parent. More... | |
| ~communicator () | |
| Free allocated communicator and group. More... | |
| bool | good () const noexcept |
| True if communicator is non-negative (ie, was allocated) More... | |
| label | comm () const noexcept |
| The communicator label. More... | |
| void | reset () |
| Free allocated communicator and group. More... | |
| void | reset (label parent, const labelUList &subRanks) |
| Allocate with subRanks of parent communicator. More... | |
| void | reset (communicator &&c) |
| Take ownership, free allocated communicator and group. More... | |
| void | operator= (communicator &&c) |
| Move assignment, takes ownership. More... | |
| operator label () const noexcept | |
| Cast to label - the same as comm() More... | |
Wrapper class for allocating/freeing communicators.
Definition at line 440 of file UPstream.H.
|
delete |
No copy construct.
|
inlinenoexcept |
Default construct (a placeholder communicator)
Definition at line 459 of file UPstream.H.
|
inline |
Move construct, takes ownership.
Definition at line 464 of file UPstream.H.
References Foam::constant::universal::c.
|
inline |
Allocate a communicator based on given parent.
| parent | The parent communicator |
| subRanks | The sub-ranks of parent to use (ignore negative values) |
| doPstream | Call allocatePstreamCommunicator |
Definition at line 470 of file UPstream.H.
|
inline |
Free allocated communicator and group.
Definition at line 487 of file UPstream.H.
References UPstream::freeCommunicator().

|
delete |
No copy assignment.
|
inlinenoexcept |
True if communicator is non-negative (ie, was allocated)
Definition at line 492 of file UPstream.H.
|
inlinenoexcept |
The communicator label.
Definition at line 497 of file UPstream.H.
|
inline |
Free allocated communicator and group.
Definition at line 502 of file UPstream.H.
References UPstream::freeCommunicator().
Referenced by UPstream::communicator::operator=().


|
inline |
Allocate with subRanks of parent communicator.
Definition at line 507 of file UPstream.H.
References UPstream::allocateCommunicator(), UPstream::freeCommunicator(), and UPstream::parent().

|
inline |
Take ownership, free allocated communicator and group.
Definition at line 516 of file UPstream.H.
References Foam::constant::universal::c, and UPstream::freeCommunicator().

|
inline |
Move assignment, takes ownership.
Definition at line 526 of file UPstream.H.
References Foam::constant::universal::c, and UPstream::communicator::reset().

|
inlinenoexcept |
Cast to label - the same as comm()
Definition at line 531 of file UPstream.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.