Skip to content

OwnerPolicy

#include <storage.hh>
struct OwnerPolicy

Defined 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.

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
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
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

inline

inline NCA_H OwnerPolicy()

Defined in src/lib/ncarray/storage.hh:206


const inline

inline NCA_HD const char * storage_repr() const

Defined in src/lib/ncarray/storage.hh:208


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

Return Name Description
std::unique_ptr< std::uint8_t[], HostDeleter > m_storage

std::unique_ptr< std::uint8_t[], HostDeleter > m_storage

Defined in src/lib/ncarray/storage.hh:222

Name Description
MemType

using MemType = HostTag

Defined in src/lib/ncarray/storage.hh:203