9 #ifndef _fei_SharedIDs_hpp_
10 #define _fei_SharedIDs_hpp_
45 void addSharedID(
const T& ID,
size_t numSharingProcs,
const int* sharingProcs)
47 typename map_type::iterator iter =
sharedIDs_.find(ID);
49 iter =
sharedIDs_.insert(std::make_pair(ID,std::set<int>())).first;
51 for(
size_t i=0; i<numSharingProcs; ++i) {
52 iter->second.insert(sharingProcs[i]);
77 #endif // _fei_SharedIDs_hpp_
std::vector< int > & getOwningProcs()
std::map< T, std::set< int > > map_type
map_type & getSharedIDs()
SharedIDs(const SharedIDs< T > &src)
const map_type & getSharedIDs() const
std::vector< int > owningProcs_
void addSharedID(const T &ID, size_t numSharingProcs, const int *sharingProcs)
const std::vector< int > & getOwningProcs() const