27 #ifndef util_ParallelIndex_hpp
28 #define util_ParallelIndex_hpp
33 #include <util/Basics.hpp>
34 #include <util/Parallel.hpp>
48 typedef uint64_type key_type ;
50 typedef std::pair< key_type , key_type > KeyProc ;
53 bool operator()(
const KeyProc & lhs ,
const KeyProc & rhs )
const
54 {
return lhs < rhs ; }
56 bool operator()(
const KeyProc & lhs ,
const key_type rhs )
const
57 {
return lhs.first < rhs ; }
62 ParallelIndex( ParallelMachine ,
const std::vector<key_type> & );
67 void query( std::vector<KeyProc> & )
const ;
72 void query(
const std::vector<key_type> & , std::vector<KeyProc> & )
const ;
79 ParallelMachine m_comm ;
80 std::vector<KeyProc> m_key_proc ;
void query(std::vector< KeyProc > &) const