h5cpp
0.5.0
A modern C++ wrapper for the HDF5 C library
|
Go to the documentation of this file.
133 data_(adapter.data_),
140 data_(adapter.data_),
153 data_ = adapter.data_;
154 size_ = adapter.size_;
164 data_ = adapter.data_;
165 size_ = adapter.size_;
199 class TypeTrait<ArrayAdapter<T>>
208 const static TypeClass &
get(
const ArrayAdapter<T> & = ArrayAdapter<T>()) {
217 namespace dataspace {
235 return Simple(adapter_dimensions,adapter_dimensions);
246 return reinterpret_cast<void*
>(adapter.
data());
251 return reinterpret_cast<const void*
>(adapter.
data());
static const void * cptr(const ArrayAdapter< T > &adapter)
Definition: array_adapter.hpp:249
static void * ptr(ArrayAdapter< T > &adapter)
Definition: array_adapter.hpp:244
ArrayAdapter()
default constructor
Definition: array_adapter.hpp:79
const T * data() const noexcept
Definition: array_adapter.hpp:125
ArrayAdapter(T *data, size_t size)
constructor
Definition: array_adapter.hpp:90
const static DataspaceType & get(const ArrayAdapter< T > &adapter, dataspace::DataspacePool &)
Definition: array_adapter.hpp:238
type trait for dataspace construction
Definition: type_trait.hpp:54
static TypeClass create(const T &=T())
create the new type instance
adapter for C-style arrays
Definition: array_adapter.hpp:57
simple multidimensional dataspace
Definition: simple.hpp:43
T * data() noexcept
Definition: array_adapter.hpp:120
Datatype TypeClass
subtype of Datatype which will be used
Definition: type_trait.hpp:58
const static TypeClass & get(const T &=T())
reference to const static type instance
ArrayAdapter< T > & operator=(const ArrayAdapter< T > &adapter)
copy assignment
Definition: array_adapter.hpp:148
std::vector< hsize_t > Dimensions
Definition: types.hpp:32
static DataspaceType create(const ArrayAdapter< T > &adapter)
Definition: array_adapter.hpp:232
size_t size() const noexcept
Definition: array_adapter.hpp:115
data space object pool
Definition: pool.hpp:41
Dimensions get_dimensions(const ArrayAdapter< T > adapter)
get dimensions for an array adapter instance
Definition: array_adapter.hpp:183
top-level namespace of the entire library
Definition: attribute.hpp:45