Sierra Toolkit Version of the Day
stk::util::ParallelIndex< K, P, D > Class Template Reference

Parallel cross-reference index for a collection of 'Key' keys. More...

#include <ParallelIndex.hpp>

List of all members.

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. The local processor is in the output if it submitted a queried key.

Detailed Description

template<class K = uint64_t, class P = unsigned, class D = ParallelIndexDecomp<K, P>>
class stk::util::ParallelIndex< K, P, D >

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

  • which other processors input the same local keys or
  • which processors submitted an arbitrary set of keys.

Definition at line 46 of file ParallelIndex.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends