Class ParallelSet is a utility class for storing collections of integer keys in parallel.
#include <ibtk/ParallelSet.h>
◆ ParallelSet() [1/2]
| IBTK::ParallelSet::ParallelSet |
( |
| ) |
|
|
default |
◆ ParallelSet() [2/2]
| IBTK::ParallelSet::ParallelSet |
( |
const ParallelSet & |
from | ) |
|
|
default |
- Parameters
-
| from | The value to copy to this object. |
◆ ~ParallelSet()
| virtual IBTK::ParallelSet::~ParallelSet |
( |
| ) |
|
|
virtualdefault |
◆ operator=()
- Parameters
-
| that | The value to assign to this object. |
- Returns
- A reference to this object.
◆ addItem()
| void IBTK::ParallelSet::addItem |
( |
int |
key | ) |
|
- Note
- This method is not collective (i.e., it does not have to be called by all MPI tasks); however, it is necessary to call the collective function ParallelSet::communicateData() to finalize all parallel communication.
-
The underling set data structure is not updated until the collective method communicateData() is called, even for serial runs.
◆ removeItem()
| void IBTK::ParallelSet::removeItem |
( |
int |
key | ) |
|
- Note
- This method is not collective (i.e., it does not have to be called by all MPI tasks); however, it is necessary to call the collective function ParallelSet::communicateData() to finalize all parallel communication.
-
The underling set data structure is not updated until the collective method communicateData() is called, even for serial runs.
◆ communicateData()
| void IBTK::ParallelSet::communicateData |
( |
| ) |
|
◆ getSet()
| const std::set<int>& IBTK::ParallelSet::getSet |
( |
| ) |
const |
◆ d_set
| std::set<int> IBTK::ParallelSet::d_set |
|
private |
◆ d_pending_additions
| std::vector<int> IBTK::ParallelSet::d_pending_additions |
|
private |
◆ d_pending_removals
| std::vector<int> IBTK::ParallelSet::d_pending_removals |
|
private |
The documentation for this class was generated from the following file: