Alexandria 2.31.4
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.
|
inline |
|
inline |
|
pure virtual |
Get the size in bytes.
|
pure virtual |
Resize container.
|
pure virtual |
char* Euclid::NdArray::NdArray< T >::ContainerInterface::m_data_ptr |
Owned by the specific implementation ContainerWrapper, but exposed here to avoid indirections