OwnerPolicy
OwnerPolicy
Section titled “OwnerPolicy”#include <storage.hh>struct OwnerPolicyDefined in src/lib/ncarray/storage.hh:200
Inherits:
StoragePolicy< OwnerPolicy >,OwnerTag
The OwnerPolicy dictates an array that manages its own buffer for the memory that backs the array.
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
OwnerPolicy |
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 |
OwnerPolicy inline |
|
NCA_HD const char * |
storage_repr const inline |
|
NCA_H void |
allocate inline |
|
NCA_H void |
copy inline |
OwnerPolicy
Section titled “OwnerPolicy”inline
inline NCA_H OwnerPolicy()Defined in src/lib/ncarray/storage.hh:206
storage_repr
Section titled “storage_repr”const inline
inline NCA_HD const char * storage_repr() constDefined in src/lib/ncarray/storage.hh:208
allocate
Section titled “allocate”inline
inline NCA_H void allocate(ssize_t nbytes)Defined in src/lib/ncarray/storage.hh:210
inline
inline NCA_H void copy(void * src, ssize_t nbytes)Defined in src/lib/ncarray/storage.hh:215
Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
std::unique_ptr< std::uint8_t[], HostDeleter > |
m_storage |
m_storage
Section titled “m_storage”std::unique_ptr< std::uint8_t[], HostDeleter > m_storageDefined in src/lib/ncarray/storage.hh:222
Public Types
Section titled “Public Types”| Name | Description |
|---|---|
MemType |
MemType
Section titled “MemType”using MemType = HostTagDefined in src/lib/ncarray/storage.hh:203