Skip to content

DevOwnerPolicy

#include <storage.hh>
struct DevOwnerPolicy

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

Inherits: StoragePolicy< DevOwnerPolicy >, OwnerTag

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
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 DevOwnerPolicy inline
NCA_HD const char * storage_repr const inline
NCA_H void allocate inline
NCA_H void copy inline

inline

inline NCA_H DevOwnerPolicy()

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


const inline

inline NCA_HD const char * storage_repr() const

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


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

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

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

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

Name Description
MemType

using MemType = DevTag

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