stk::util::ParallelIndex< K, P, D > Class Template Reference

#include <ParallelIndex.hpp>

List of all members.


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

Definition at line 46 of file ParallelIndex.hpp.

Public Types

typedef K Key
typedef P Proc
typedef D Decomp
typedef std::pair< Key, ProcKeyProc

Public Member Functions

 ParallelIndex (ParallelMachine comm, const std::vector< Key > &local)
 Construct with locally-submitted keys.
 ~ParallelIndex ()
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.


Member Function Documentation

template<class K = uint64_t, class P = unsigned, class D = ParallelIndexDecomp<K, P>>
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.


The documentation for this class was generated from the following file:
Generated on Tue Jul 13 09:27:33 2010 for Sierra Toolkit by  doxygen 1.4.7