Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <NpyCommon.h>
Public Member Functions | |
MappedContainer (const boost::filesystem::path &path, size_t data_offset, size_t n_elements, const std::vector< std::string > &attr_names, boost::iostreams::mapped_file &&input, size_t max_size) | |
size_t | size () const |
size_t | nbytes () const |
T * | data () |
void | resize (const std::vector< size_t > &shape) |
Private Attributes | |
boost::filesystem::path | m_path |
size_t | m_data_offset |
size_t | m_n_elements |
size_t | m_max_size |
std::vector< std::string > | m_attr_names |
boost::iostreams::mapped_file | m_mapped |
T * | m_data |
A memory mapped container that can be used by NdArray. Builds on top of boost::iostream::mapped_file
T | Contained value type |
Definition at line 239 of file NpyCommon.h.
|
inline |
Definition at line 241 of file NpyCommon.h.
|
inline |
Definition at line 259 of file NpyCommon.h.
References Euclid::NdArray::MappedContainer< T >::m_data.
|
inline |
Definition at line 255 of file NpyCommon.h.
References Euclid::NdArray::MappedContainer< T >::m_max_size.
|
inline |
Definition at line 263 of file NpyCommon.h.
References std::accumulate(), std::vector< T >::begin(), std::copy(), std::vector< T >::end(), Euclid::NdArray::MappedContainer< T >::m_attr_names, Euclid::NdArray::MappedContainer< T >::m_data_offset, Euclid::NdArray::MappedContainer< T >::m_mapped, Euclid::NdArray::MappedContainer< T >::m_max_size, Euclid::NdArray::MappedContainer< T >::m_n_elements, Euclid::NdArray::MappedContainer< T >::m_path, and std::stringstream::str().
|
inline |
Definition at line 251 of file NpyCommon.h.
References Euclid::NdArray::MappedContainer< T >::m_n_elements.
|
private |
Definition at line 288 of file NpyCommon.h.
Referenced by Euclid::NdArray::MappedContainer< T >::resize().
|
private |
Definition at line 290 of file NpyCommon.h.
Referenced by Euclid::NdArray::MappedContainer< T >::data().
|
private |
Definition at line 287 of file NpyCommon.h.
Referenced by Euclid::NdArray::MappedContainer< T >::resize().
|
private |
Definition at line 289 of file NpyCommon.h.
Referenced by Euclid::NdArray::MappedContainer< T >::resize().
|
private |
Definition at line 287 of file NpyCommon.h.
Referenced by Euclid::NdArray::MappedContainer< T >::nbytes(), and Euclid::NdArray::MappedContainer< T >::resize().
|
private |
Definition at line 287 of file NpyCommon.h.
Referenced by Euclid::NdArray::MappedContainer< T >::resize(), and Euclid::NdArray::MappedContainer< T >::size().
|
private |
Definition at line 286 of file NpyCommon.h.
Referenced by Euclid::NdArray::MappedContainer< T >::resize().