CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
src
opt
hdf5
include
h5_dataset.h
Go to the documentation of this file.
1
// -*- C++ -*-
12
#ifndef __cxz_h5_dataset_h__
13
#define __cxz_h5_dataset_h__
14
15
#include "
h5_types.h
"
16
#include "
h5_content_base.h
"
17
18
namespace
CNORXZ
19
{
20
namespace
hdf5
21
{
25
class
Dataset
:
public
ContentBase
26
{
27
public
:
28
DEFAULT_MEMBERS
(
Dataset
);
34
Dataset
(
const
String
&
name
,
const
ContentBase
*
_parent
);
35
37
~Dataset
();
38
39
virtual
ContentType
type
()
const
override
final
;
40
virtual
bool
ro
()
const
override
final
;
41
virtual
Dataset
&
open
()
override
final
;
42
virtual
Dataset
&
close
()
override
final
;
43
virtual
String
path
()
const
override
final
;
44
virtual
String
filename
()
const
override
final
;
45
virtual
bool
exists
()
const
override
final
;
46
51
Dataset
&
init
(
const
RangePtr
&
dataRange
,
hid_t
type
);
52
56
template
<
typename
T
>
57
Dataset
&
init
(
const
ArrayBase
<
T
>& data);
58
62
const
RangePtr
&
dataRange
()
const
;
63
64
protected
:
65
RangePtr
mDataRange
;
66
hid_t
mType
;
67
hid_t
mFilespace
;
69
};
70
75
template
<
typename
T
>
76
class
SDataset
:
public
Dataset
77
{
78
public
:
79
DEFAULT_MEMBERS
(
SDataset
);
85
SDataset
(
const
String
&
name
,
const
ContentBase
*
_parent
);
86
90
MArray<T>
read()
const
;
91
98
template
<
class
I,
typename
M>
99
MArray<T>
read(
const
IndexInterface<I,M>
&
beg
,
const
IndexInterface<I,M>
& end)
const
;
100
101
private
:
102
103
template
<
class
I,
typename
M>
104
Vector<hsize_t>
mkFPos(
const
IndexInterface<I,M>
&
beg
)
const
;
105
};
106
}
107
}
108
109
#endif
CNORXZ::ArrayBase
Definition
array_base.h:190
CNORXZ::IndexInterface
Definition
index_base.h:48
CNORXZ::MArray
Definition
marray.h:26
CNORXZ::hdf5::ContentBase
Definition
h5_content_base.h:41
CNORXZ::hdf5::ContentBase::name
const String & name() const
Definition
h5_content_base.cc:24
CNORXZ::hdf5::Dataset
Definition
h5_dataset.h:26
CNORXZ::hdf5::Dataset::filename
virtual String filename() const override final
Definition
h5_dataset.cc:77
CNORXZ::hdf5::Dataset::close
virtual Dataset & close() override final
Definition
h5_dataset.cc:61
CNORXZ::hdf5::Dataset::exists
virtual bool exists() const override final
Definition
h5_dataset.cc:82
CNORXZ::hdf5::Dataset::Dataset
Dataset(const String &name, const ContentBase *_parent)
Definition
h5_dataset.cc:18
CNORXZ::hdf5::Dataset::init
Dataset & init(const RangePtr &dataRange, hid_t type)
Definition
h5_dataset.cc:87
CNORXZ::hdf5::Dataset::mDataRange
RangePtr mDataRange
Definition
h5_dataset.h:65
CNORXZ::hdf5::Dataset::DEFAULT_MEMBERS
DEFAULT_MEMBERS(Dataset)
CNORXZ::hdf5::Dataset::mFilespace
hid_t mFilespace
Definition
h5_dataset.h:67
CNORXZ::hdf5::Dataset::path
virtual String path() const override final
Definition
h5_dataset.cc:72
CNORXZ::hdf5::Dataset::dataRange
const RangePtr & dataRange() const
Definition
h5_dataset.cc:108
CNORXZ::hdf5::Dataset::type
virtual ContentType type() const override final
Definition
h5_dataset.cc:31
CNORXZ::hdf5::Dataset::~Dataset
~Dataset()
Definition
h5_dataset.cc:26
CNORXZ::hdf5::Dataset::ro
virtual bool ro() const override final
Definition
h5_dataset.cc:36
CNORXZ::hdf5::Dataset::mType
hid_t mType
Definition
h5_dataset.h:66
CNORXZ::hdf5::Dataset::open
virtual Dataset & open() override final
Definition
h5_dataset.cc:41
CNORXZ::hdf5::SDataset
Definition
h5_dataset.h:77
CNORXZ::hdf5::SDataset::DEFAULT_MEMBERS
DEFAULT_MEMBERS(SDataset)
h5_content_base.h
Abstract content base class declaration.
h5_types.h
Declaration of hdf5 related library types.
CNORXZ::hdf5::ContentType
ContentType
Definition
h5_content_base.h:29
CNORXZ
Definition
aindex.cc.h:18
CNORXZ::String
std::string String
Definition
types.h:42
CNORXZ::RangePtr
Sptr< RangeBase > RangePtr
Definition
types.h:157
CNORXZ::Vector
std::vector< T, Allocator< T > > Vector
Definition
types.h:310
CNORXZ::rangeCast
Sptr< Range > rangeCast(const RangePtr r)
Definition
range_base.cc.h:53
Generated by
1.10.0