Collection of communication structures. More...
#include <UPstream.H>
Public Member Functions | |
| commsStructList () noexcept | |
| Construct empty with invalid communicator. | |
| commsStructList (int comm, bool flat=false) noexcept | |
| Construct empty with given communicator. | |
| bool | good () const noexcept |
| True if communicator is non-negative (ie, was assigned). | |
| int | comm () const noexcept |
| The communicator internal index. | |
| bool | linear () const noexcept |
| Linear (flat) communication instead of tree communication. | |
| void | linear (bool on) |
| Change communication type (linear vs tree communication). Resets existing structure. | |
| void | clear () |
| Clear the list. | |
| bool | empty () const noexcept |
| True if the list is empty. | |
| label | size () const noexcept |
| The number of entries. | |
| void | init (int communicator) |
| Reset communicator index, fill tree with empty entries. | |
| void | init (int communicator, bool flat) |
| Reset communicator index, fill tree with empty entries. Specify flat vs tree communication. | |
| void | reset (int communicator) |
| Reset communicator index, clear tree entries. | |
| void | reset (int communicator, bool flat) |
| Reset communicator index, clear tree entries. Specify flat vs tree communication. | |
| const UPstream::commsStruct & | get (int proci) const |
| Get existing or create (demand-driven) entry. | |
| const UPstream::commsStruct & | operator[] (int proci) const |
| Get existing or create (demand-driven) entry. | |
| void | printGraph (Ostream &os, int proci=0) const |
| Print un-directed graph in graphviz dot format. | |
| Ostream & | writeList (Ostream &os) const |
| Write the communication tree. | |
Static Public Member Functions | |
| static const commsStructList & | null () |
| An empty structure. Used for placeholders etc. | |
Friends | |
| Ostream & | operator<< (Ostream &os, const commsStructList &rhs) |
| Write the communication tree. | |
Collection of communication structures.
Definition at line 362 of file UPstream.H.
|
inlinenoexcept |
Construct empty with invalid communicator.
Definition at line 388 of file UPstream.H.
References Foam::noexcept.
Referenced by operator<<.

|
inlineexplicitnoexcept |
Construct empty with given communicator.
Definition at line 397 of file UPstream.H.
References comm(), and Foam::noexcept.

|
static |
An empty structure. Used for placeholders etc.
Definition at line 403 of file UPstreamCommsStruct.C.
Referenced by UPstream::whichCommunication().

|
inlinenoexcept |
True if communicator is non-negative (ie, was assigned).
Definition at line 417 of file UPstream.H.
References Foam::noexcept.
|
inlinenoexcept |
The communicator internal index.
Definition at line 422 of file UPstream.H.
References Foam::noexcept.
Referenced by commsStructList().

|
inlinenoexcept |
Linear (flat) communication instead of tree communication.
Definition at line 427 of file UPstream.H.
References Foam::noexcept.
| void linear | ( | bool | on | ) |
Change communication type (linear vs tree communication). Resets existing structure.
Definition at line 418 of file UPstreamCommsStruct.C.
|
inline |
Clear the list.
Definition at line 438 of file UPstream.H.
|
inlinenoexcept |
True if the list is empty.
Definition at line 443 of file UPstream.H.
References Foam::noexcept.
Referenced by Foam::printGraph_impl().

|
inlinenoexcept |
The number of entries.
Definition at line 448 of file UPstream.H.
References Foam::noexcept.
Referenced by printGraph(), and Foam::printGraph_impl().

| void init | ( | int | communicator | ) |
Reset communicator index, fill tree with empty entries.
Definition at line 450 of file UPstreamCommsStruct.C.
References UPstream::nProcs().

| void init | ( | int | communicator, |
| bool | flat ) |
Reset communicator index, fill tree with empty entries. Specify flat vs tree communication.
Definition at line 461 of file UPstreamCommsStruct.C.
References UPstream::init().

| void reset | ( | int | communicator | ) |
Reset communicator index, clear tree entries.
Definition at line 435 of file UPstreamCommsStruct.C.
| void reset | ( | int | communicator, |
| bool | flat ) |
Reset communicator index, clear tree entries. Specify flat vs tree communication.
Definition at line 442 of file UPstreamCommsStruct.C.
| const Foam::UPstream::commsStruct & get | ( | int | proci | ) | const |
Get existing or create (demand-driven) entry.
Definition at line 469 of file UPstreamCommsStruct.C.
References UPstream::nProcs(), reset(), and resize().
Referenced by operator[]().


|
inline |
Get existing or create (demand-driven) entry.
Definition at line 480 of file UPstream.H.
References get().

| void printGraph | ( | Ostream & | os, |
| int | proci = 0 ) const |
Print un-directed graph in graphviz dot format.
Definition at line 300 of file UPstreamCommsStruct.C.
References os(), Foam::printGraph_impl(), and size().

Write the communication tree.
Definition at line 493 of file UPstream.H.
References os().

|
friend |
Write the communication tree.
Definition at line 504 of file UPstream.H.
References commsStructList(), os(), and Foam::rhs().