DevOwnerPolicy
DevOwnerPolicy
Section titled “DevOwnerPolicy”#include <storage.hh>struct DevOwnerPolicyDefined in src/lib/ncarray/storage.hh:226
Inherits:
StoragePolicy< DevOwnerPolicy >,OwnerTag
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
DevOwnerPolicy |
function |
Declared here |
storage_repr |
function |
Declared here |
allocate |
function |
Declared here |
copy |
function |
Declared here |
m_storage |
variable |
Declared here |
MemType |
typedef |
Declared here |
StoragePolicy |
function |
Inherited from StoragePolicy |
StoragePolicy |
function |
Inherited from StoragePolicy |
data |
function |
Inherited from StoragePolicy |
itemsize |
function |
Inherited from StoragePolicy |
dtype |
function |
Inherited from StoragePolicy |
read_only |
function |
Inherited from StoragePolicy |
storage_repr |
function |
Inherited from StoragePolicy |
m_dtype |
variable |
Inherited from StoragePolicy |
m_data |
variable |
Inherited from StoragePolicy |
m_read_only |
variable |
Inherited from StoragePolicy |
MemType |
typedef |
Inherited from StoragePolicy |
Inherited from StoragePolicy
Section titled “Inherited from StoragePolicy”| Kind | Name | Description |
|---|---|---|
function |
StoragePolicy |
Defaulted constructor. |
function |
StoragePolicy inline |
|
function |
data const inline |
|
function |
itemsize const inline |
|
function |
dtype const inline |
|
function |
read_only const inline |
|
function |
storage_repr const inline |
The repr functions return a string to identify the storage policy when writing out string representations of the array. |
variable |
m_dtype |
|
variable |
m_data |
|
variable |
m_read_only |
|
typedef |
MemType |
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
NCA_H |
DevOwnerPolicy inline |
|
NCA_HD const char * |
storage_repr const inline |
|
NCA_H void |
allocate inline |
|
NCA_H void |
copy inline |
DevOwnerPolicy
Section titled “DevOwnerPolicy”inline
inline NCA_H DevOwnerPolicy()Defined in src/lib/ncarray/storage.hh:235
storage_repr
Section titled “storage_repr”const inline
inline NCA_HD const char * storage_repr() constDefined in src/lib/ncarray/storage.hh:240
allocate
Section titled “allocate”inline
inline NCA_H void allocate(ssize_t nbytes)Defined in src/lib/ncarray/storage.hh:242
inline
inline NCA_H void copy(void * src, ssize_t nbytes)Defined in src/lib/ncarray/storage.hh:254
Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
std::unique_ptr< std::uint8_t[], DevDeleter > |
m_storage |
m_storage
Section titled “m_storage”std::unique_ptr< std::uint8_t[], DevDeleter > m_storageDefined in src/lib/ncarray/storage.hh:264
Public Types
Section titled “Public Types”| Name | Description |
|---|---|
MemType |
MemType
Section titled “MemType”using MemType = DevTagDefined in src/lib/ncarray/storage.hh:229