52 Index nativeIndexOfPeer;
53 Index myOwnNativeIndex;
55 using PeerBlackList = std::vector<PeerBlackListedEntry>;
56 using PeerBlackLists = std::map<ProcessRank, PeerBlackList>;
64 {
return nativeBlackListedIndices_.count(
nativeIdx) > 0; }
67 { nativeBlackListedIndices_.insert(
nativeIdx); }
69 Index nativeToDomestic(Index
nativeIdx)
const
71 auto it = nativeToDomesticMap_.find(
nativeIdx);
72 if (it == nativeToDomesticMap_.end())
77 void setPeerList(ProcessRank peerRank,
const PeerBlackList& peerBlackList)
78 { peerBlackLists_[peerRank] = peerBlackList; }
80 template <
class DomesticOverlap>
107 std::cout <<
"my own blacklisted indices:\n";
108 auto idxIt = nativeBlackListedIndices_.begin();
109 const auto&
idxEndIt = nativeBlackListedIndices_.end();
111 std::cout <<
" (native index: " << *
idxIt
112 <<
", domestic index: " << nativeToDomestic(*
idxIt) <<
")\n";
113 std::cout <<
"blacklisted indices of the peers in my own domain:\n";
118 std::cout <<
" peer " << peerRank <<
":\n";
122 std::cout <<
" (native index: " <<
idx2It->myOwnNativeIndex
123 <<
", native peer index: " <<
idx2It->nativeIndexOfPeer <<
")\n";
129 template <
class DomesticOverlap>
154 template <
class DomesticOverlap>
173 std::set<Index> nativeBlackListedIndices_;
174 std::map<Index, Index> nativeToDomesticMap_;
180 PeerBlackLists peerBlackLists_;
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
Definition blacklist.hh:51