|
Sierra Toolkit Version of the Day
|
Parallel cross-reference index for a collection of 'Key' keys. More...
#include <ParallelIndex.hpp>
Public Types | |
| typedef K | Key |
| typedef P | Proc |
| typedef D | Decomp |
| typedef std::pair< Key, Proc > | KeyProc |
Public Member Functions | |
| ParallelIndex (ParallelMachine comm, const std::vector< Key > &local) | |
| Construct with locally-submitted keys. | |
| void | query (std::vector< KeyProc > &global) const |
| Query which other processors submitted the same keys that the local processor submitted. | |
| void | query (const std::vector< Key > &local, std::vector< KeyProc > &global) const |
| Query which processors submitted the given keys. | |
Parallel cross-reference index for a collection of 'Key' keys.
Each processor constructs a ParallelIndex with its local collection of keys. The resulting ParallelIndex may be queried for
Definition at line 46 of file ParallelIndex.hpp.
| void stk::util::ParallelIndex< K, P, D >::query | ( | const std::vector< Key > & | local, |
| std::vector< KeyProc > & | global | ||
| ) | const [inline] |
Query which processors submitted the given keys.
The local processor is in the output if it submitted a queried key.
Definition at line 127 of file ParallelIndex.hpp.