10 class TypeTrait<std::vector<T>> {
12 using Type = std::vector<T>;
15 return TypeTrait<typename std::remove_const<T>::type>
::create();
40 static void *
ptr(std::vector<T> &data) {
41 return reinterpret_cast<void *
>(data.data());
44 static const void *
cptr(
const std::vector<T> &data) {
45 return reinterpret_cast<const void *
>(data.data());
data space object pool
Definition: pool.hpp:42
const Simple & getSimple(size_t size)
reference of Simple data spaces
dataspace base class
Definition: dataspace.hpp:41
simple multidimensional dataspace
Definition: simple.hpp:43
static const Dataspace & get(const std::vector< T > &value, DataspacePool &pool)
Definition: vector.hpp:36
static const void * cptr(const std::vector< T > &data)
Definition: vector.hpp:44
static Simple create(const std::vector< T > &value)
Definition: vector.hpp:32
static void * ptr(std::vector< T > &data)
Definition: vector.hpp:40
type trait for dataspace construction
Definition: type_trait.hpp:54
Datatype TypeClass
subtype of Datatype which will be used
Definition: type_trait.hpp:58
static TypeClass create(const T &=T())
create the new type instance
static const TypeClass & get(const T &=T())
reference to const static type instance
Type
Definition: type.hpp:43
top-level namespace of the entire library
Definition: attribute.hpp:45
std::vector< hsize_t > Dimensions
Definition: types.hpp:32