Skip to content

iox::mepoo::MemoryInfo🔗

Stores properties of the memory to be used when we distinguish between different types of memory on e.g. different devices with different characteristics.

#include <memory_info.hpp>

Public Functions🔗

Name
MemoryInfo(const MemoryInfo & ) =default
MemoryInfo(MemoryInfo && ) =default
MemoryInfo & operator=(const MemoryInfo & ) =default
MemoryInfo & operator=(MemoryInfo && ) =default
MemoryInfo(uint32_t deviceId =DEFAULT_DEVICE_ID, uint32_t memoryType =DEFAULT_MEMORY_TYPE)
creates a MemoryInfo object

Public Attributes🔗

Name
constexpr uint32_t DEFAULT_DEVICE_ID
constexpr uint32_t DEFAULT_MEMORY_TYPE
uint32_t deviceId
uint32_t memoryType

Public Functions Documentation🔗

function MemoryInfo🔗

MemoryInfo(
    const MemoryInfo & 
) =default

function MemoryInfo🔗

MemoryInfo(
    MemoryInfo && 
) =default

function operator=🔗

MemoryInfo & operator=(
    const MemoryInfo & 
) =default

function operator=🔗

MemoryInfo & operator=(
    MemoryInfo && 
) =default

function MemoryInfo🔗

MemoryInfo(
    uint32_t deviceId =DEFAULT_DEVICE_ID,
    uint32_t memoryType =DEFAULT_MEMORY_TYPE
)

creates a MemoryInfo object

Parameters:

  • deviceId specifies the device where the memory is located
  • memoryType encodes additional information about the memory

Public Attributes Documentation🔗

variable DEFAULT_DEVICE_ID🔗

static constexpr uint32_t DEFAULT_DEVICE_ID {0u};

variable DEFAULT_MEMORY_TYPE🔗

static constexpr uint32_t DEFAULT_MEMORY_TYPE {0u};

variable deviceId🔗

uint32_t deviceId {DEFAULT_DEVICE_ID};

variable memoryType🔗

uint32_t memoryType {DEFAULT_MEMORY_TYPE};

Updated on 31 May 2022 at 15:29:16 CEST