Tidying
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Targets
|
|||||||
class TargetMemoryCache
|
class TargetMemoryCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TargetMemoryCache(const TargetMemorySegmentDescriptor& memorySegmentDescriptor);
|
explicit TargetMemoryCache(const TargetMemorySegmentDescriptor& memorySegmentDescriptor);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches data from the cache.
|
* Fetches data from the cache.
|
||||||
@@ -21,7 +21,7 @@ namespace Targets
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
TargetMemoryBuffer fetch(TargetMemoryAddress startAddress, TargetMemorySize bytes) const;
|
[[nodiscard]] TargetMemoryBuffer fetch(TargetMemoryAddress startAddress, TargetMemorySize bytes) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the cache currently holds data within the given address range.
|
* Checks if the cache currently holds data within the given address range.
|
||||||
@@ -31,7 +31,7 @@ namespace Targets
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
bool contains(TargetMemoryAddress startAddress, TargetMemorySize bytes) const;
|
[[nodiscard]] bool contains(TargetMemoryAddress startAddress, TargetMemorySize bytes) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inserts data into the cache and performs any necessary bookkeeping.
|
* Inserts data into the cache and performs any necessary bookkeeping.
|
||||||
@@ -68,6 +68,6 @@ namespace Targets
|
|||||||
* An iterator to the intersecting segment, or populatedSegments::end() if none is found.
|
* An iterator to the intersecting segment, or populatedSegments::end() if none is found.
|
||||||
*/
|
*/
|
||||||
using SegmentIt = decltype(TargetMemoryCache::populatedSegments)::const_iterator;
|
using SegmentIt = decltype(TargetMemoryCache::populatedSegments)::const_iterator;
|
||||||
SegmentIt intersectingSegment(TargetMemoryAddress address) const;
|
[[nodiscard]] SegmentIt intersectingSegment(TargetMemoryAddress address) const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user