|
Alexandria
2.25.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) More... | |
| T & | get (size_t offset) |
| Get a reference to the element at the given absolute offset (in bytes) More... | |
| virtual size_t | size () const =0 |
| size_t | nbytes () const |
| Get the size in bytes. More... | |
| virtual void | resize (const std::vector< size_t > &shape)=0 |
| Resize container. More... | |
| virtual std::unique_ptr< ContainerInterface > | copy () const =0 |
| Expected to generate a deep copy of the underlying data. More... | |
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 522 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 517 of file NdArray.h.
References Euclid::NdArray::NdArray< T >::ContainerInterface::m_data_ptr.
|
inline |
Get the size in bytes.
Definition at line 530 of file NdArray.h.
References Euclid::NdArray::NdArray< T >::ContainerInterface::size().

|
pure virtual |
Resize container.
Implemented in Euclid::NdArray::NdArray< T >::ContainerWrapper< Container >.
|
pure virtual |
Implemented in Euclid::NdArray::NdArray< T >::ContainerWrapper< Container >.
Referenced by Euclid::NdArray::NdArray< T >::ContainerInterface::nbytes().
| char* Euclid::NdArray::NdArray< T >::ContainerInterface::m_data_ptr |
Owned by the specific implementation ContainerWrapper, but exposed here to avoid indirections
Definition at line 512 of file NdArray.h.
Referenced by Euclid::NdArray::NdArray< T >::ContainerInterface::get().