Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
Public Member Functions | |
virtual | ~ContainerInterface ()=default |
T | get (size_t offset) const |
Get the element at the given absolute offset (in bytes) | |
T & | get (size_t offset) |
Get a reference to the element at the given absolute offset (in bytes) | |
virtual size_t | size () const =0 |
virtual size_t | nbytes () const =0 |
Get the size in bytes. | |
virtual void | resize (const std::vector< size_t > &shape)=0 |
Resize container. | |
virtual std::unique_ptr< ContainerInterface > | copy () const =0 |
Expected to generate a deep copy of the underlying data. | |
Public Attributes | |
char * | m_data_ptr |
|
virtualdefault |
|
pure virtual |
Expected to generate a deep copy of the underlying data.
Implemented in Euclid::NdArray::NdArray< T >::ContainerWrapper< Container >.
|
inline |
Get a reference to the element at the given absolute offset (in bytes)
Definition at line 524 of file NdArray.h.
References Euclid::NdArray::NdArray< T >::ContainerInterface::m_data_ptr.
|
inline |
Get the element at the given absolute offset (in bytes)
Definition at line 519 of file NdArray.h.
References Euclid::NdArray::NdArray< T >::ContainerInterface::m_data_ptr.
|
pure virtual |
Get the size in bytes.
Implemented in Euclid::NdArray::NdArray< T >::ContainerWrapper< Container >.
|
pure virtual |
Resize container.
Implemented in Euclid::NdArray::NdArray< T >::ContainerWrapper< Container >.
|
pure virtual |
Implemented in Euclid::NdArray::NdArray< T >::ContainerWrapper< Container >.
char* Euclid::NdArray::NdArray< T >::ContainerInterface::m_data_ptr |
Owned by the specific implementation ContainerWrapper, but exposed here to avoid indirections
Definition at line 514 of file NdArray.h.
Referenced by Euclid::NdArray::NdArray< T >::ContainerInterface::get(), and Euclid::NdArray::NdArray< T >::ContainerInterface::get().