17 #ifndef PREGION_MGR_UTIL_HPP 18 #define PREGION_MGR_UTIL_HPP 33 const IntPtrPair & c1,
const IntPtrPair & c2)
const {
34 return (c1.first < c2.first) &&
35 (c1.second < c2.second);
42 MapInterval::const_iterator ci_end = from.Extents_.end();
43 for (MapInterval::const_iterator ci =
44 from.Extents_.begin(); ci != ci_end; ++ ci)
45 insertExtent(ci->first.first, ci->first.second, ci->second);
49 { Extents_[std::make_pair(first,last)] = id; }
52 MapInterval::iterator ci = Extents_.find(
53 std::make_pair(first,last));
54 if (ci != Extents_.end()) Extents_.erase(ci);
57 uint32_t
findExtent(intptr_t first, intptr_t last)
const {
58 MapInterval::const_iterator ci = Extents_.find(
59 std::make_pair(first,last));
60 if (ci != Extents_.end())
return ci->second;
std::map< IntPtrPair, uint32_t, CmpIntPtr > MapInterval
Definition: pregion_mgr_util.hpp:38
Definition: pregion_mgr_util.hpp:27
Definition: pregion_mgr_util.hpp:30
void deleteExtent(intptr_t first, intptr_t last, uint32_t id)
Definition: pregion_mgr_util.hpp:51
const uint32_t kInvalidPRegion_
Definition: pregion_configs.hpp:33
bool operator()(const IntPtrPair &c1, const IntPtrPair &c2) const
Definition: pregion_mgr_util.hpp:32
PRegionExtentMap()=default
uint32_t findExtent(intptr_t first, intptr_t last) const
Definition: pregion_mgr_util.hpp:57
PRegionExtentMap(const PRegionExtentMap &from)
Definition: pregion_mgr_util.hpp:41
void insertExtent(intptr_t first, intptr_t last, uint32_t id)
Definition: pregion_mgr_util.hpp:48
Definition: atlas_alloc_cpp.hpp:21
std::pair< intptr_t, intptr_t > IntPtrPair
Definition: pregion_mgr_util.hpp:29