LocalMemorySlot Class Reference
HiCR
|
HiCR::LocalMemorySlot Class Reference
#include <localMemorySlot.hpp>
Inheritance diagram for HiCR::LocalMemorySlot:

Public Member Functions | |
LocalMemorySlot (void *const pointer, const size_t size, std::shared_ptr< HiCR::MemorySpace > memorySpace=nullptr) | |
virtual | ~LocalMemorySlot ()=default |
__INLINE__ void *& | getPointer () noexcept |
__INLINE__ size_t | getSize () const noexcept |
__INLINE__ std::shared_ptr< HiCR::MemorySpace > | getMemorySpace () const noexcept |
__INLINE__ size_t | getMessagesRecv () const noexcept |
__INLINE__ size_t | getMessagesSent () const noexcept |
Friends | |
class | HiCR::CommunicationManager |
Detailed Description
This class represents an abstract definition for a Local Memory Slot resource in HiCR that:
- Represents a contiguous segment within a memory space in the local system, with a starting address and a size
Constructor & Destructor Documentation
◆ LocalMemorySlot()
|
inline |
Default constructor for a LocalMemorySlot class
- Parameters
-
[in] pointer The pointer corresponding to an address in a given memory space [in] size The size (in bytes) of the memory slot, assumed to be contiguous [in] memorySpace Pointer to the memory space that this memory slot belongs to. NULL, if the memory slot is global (remote)
◆ ~LocalMemorySlot()
|
virtualdefault |
Default destructor
Reimplemented in HiCR::backend::hwloc::LocalMemorySlot, HiCR::backend::lpf::LocalMemorySlot, HiCR::backend::mpi::LocalMemorySlot, HiCR::backend::ascend::LocalMemorySlot, and HiCR::backend::opencl::LocalMemorySlot.
Member Function Documentation
◆ getMemorySpace()
|
inlinenoexcept |
Getter function for the memory slot's associated memory space
- Returns
- The memory slot's associated memory space
◆ getMessagesRecv()
|
inlinenoexcept |
Getter function for the memory slot's received message counter
- Returns
- The memory slot's received message counter
◆ getMessagesSent()
|
inlinenoexcept |
Getter function for the memory slot's sent message counter
- Returns
- The memory slot's sent message counter
◆ getPointer()
|
inlinenoexcept |
Getter function for the memory slot's pointer
- Returns
- The memory slot's internal pointer
◆ getSize()
|
inlinenoexcept |
Getter function for the memory slot's size
- Returns
- The memory slot's size
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/core/localMemorySlot.hpp
Generated by