15 #ifndef __H5DataSpace_H
16 #define __H5DataSpace_H
34 DataSpace(
int rank,
const hsize_t * dims,
const hsize_t * maxdims = NULL);
52 void extentCopy(
const DataSpace& dest_space)
const;
57 void getSelectBounds(hsize_t* start, hsize_t* end)
const;
60 hssize_t getSelectElemNpoints()
const;
63 void getSelectElemPointlist(hsize_t startpoint, hsize_t numpoints, hsize_t *buf)
const;
66 void getSelectHyperBlocklist(hsize_t startblock, hsize_t numblocks, hsize_t *buf)
const;
69 hssize_t getSelectHyperNblocks()
const;
72 hssize_t getSelectNpoints()
const;
75 int getSimpleExtentDims(hsize_t *dims, hsize_t *maxdims = NULL)
const;
78 int getSimpleExtentNdims()
const;
82 hssize_t getSimpleExtentNpoints()
const;
85 H5S_class_t getSimpleExtentType()
const;
88 bool isSimple()
const;
91 void offsetSimple(
const hssize_t* offset)
const;
94 void selectAll()
const;
98 void selectElements(H5S_seloper_t op,
const size_t num_elements,
const hsize_t *coord)
const;
101 void selectHyperslab(H5S_seloper_t op,
const hsize_t *count,
const hsize_t *start,
const hsize_t *stride = NULL,
const hsize_t *block = NULL)
const;
104 void selectNone()
const;
107 bool selectValid()
const;
110 void setExtentNone()
const;
113 void setExtentSimple(
int rank,
const hsize_t *current_size,
const hsize_t *maximum_size = NULL)
const;
116 virtual H5std_string
fromClass ()
const {
return(
"DataSpace"); }
119 virtual hid_t getId()
const;
127 #ifndef DOXYGEN_SHOULD_SKIP_THIS
131 virtual void p_setId(
const hid_t new_id);
133 #endif // DOXYGEN_SHOULD_SKIP_THIS
138 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146 friend void f_DataSpace_setId(
DataSpace *dspace, hid_t new_id);
148 #endif // DOXYGEN_SHOULD_SKIP_THIS
153 #endif // __H5DataSpace_H
virtual hid_t getId() const
Get the id of this dataspace.
Definition: H5DataSpace.cpp:625
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:32
void selectNone() const
Resets the selection region to include no elements.
Definition: H5DataSpace.cpp:555
virtual void close()
Closes this dataspace.
Definition: H5DataSpace.cpp:664
int getSimpleExtentNdims() const
Returns the dimensionality of a dataspace.
Definition: H5DataSpace.cpp:265
void copy(const DataSpace &like_space)
Makes a copy of an existing dataspace.
Definition: H5DataSpace.cpp:157
bool isSimple() const
Determines whether this dataspace is a simple dataspace.
Definition: H5DataSpace.cpp:202
void getSelectElemPointlist(hsize_t startpoint, hsize_t numpoints, hsize_t *buf) const
Gets the list of element points currently selected.
Definition: H5DataSpace.cpp:473
void incRefCount() const
Increment reference counter for the id of this object.
Definition: H5IdComponent.cpp:53
void selectAll() const
Selects the entire dataspace.
Definition: H5DataSpace.cpp:539
void offsetSimple(const hssize_t *offset) const
Sets the offset of this simple dataspace.
Definition: H5DataSpace.cpp:228
Definition: H5Exception.h:109
bool selectValid() const
Verifies that the selection is within the extent of the dataspace.
Definition: H5DataSpace.cpp:574
void selectElements(H5S_seloper_t op, const size_t num_elements, const hsize_t *coord) const
Selects array elements to be included in the selection for this dataspace.
Definition: H5DataSpace.cpp:521
Class DataSpace inherits from IdComponent and provides wrappers for the HDF5's dataspaces.
Definition: H5DataSpace.h:25
void setExtentSimple(int rank, const hsize_t *current_size, const hsize_t *maximum_size=NULL) const
Sets or resets the size of an existing dataspace.
Definition: H5DataSpace.cpp:361
hssize_t getSelectElemNpoints() const
Returns the number of element points in the current selection.
Definition: H5DataSpace.cpp:450
virtual ~DataSpace()
Properly terminates access to this dataspace.
Definition: H5DataSpace.cpp:689
hssize_t getSelectHyperNblocks() const
Returns number of hyperslab blocks.
Definition: H5DataSpace.cpp:412
void getSelectHyperBlocklist(hsize_t startblock, hsize_t numblocks, hsize_t *buf) const
Gets the list of hyperslab blocks currently selected.
Definition: H5DataSpace.cpp:432
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:256
void setExtentNone() const
Removes the extent from a dataspace.
Definition: H5DataSpace.cpp:378
void getSelectBounds(hsize_t *start, hsize_t *end) const
Gets the bounding box containing the current selection.
Definition: H5DataSpace.cpp:496
Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier.
Definition: H5IdComponent.h:27
DataSpace(H5S_class_t type=H5S_SCALAR)
Creates a new dataspace given a dataspace type.
Definition: H5DataSpace.cpp:94
DataSpace & operator=(const DataSpace &rhs)
Assignment operator.
Definition: H5DataSpace.cpp:187
static const DataSpace & ALL
Default DataSpace objects.
Definition: H5DataSpace.h:28
hssize_t getSelectNpoints() const
Returns the number of elements in a dataspace selection.
Definition: H5DataSpace.cpp:394
int getSimpleExtentDims(hsize_t *dims, hsize_t *maxdims=NULL) const
Retrieves dataspace dimension size and maximum size.
Definition: H5DataSpace.cpp:247
Definition: H5AbstractDs.cpp:34
H5S_class_t getSimpleExtentType() const
Returns the current class of a dataspace.
Definition: H5DataSpace.cpp:306
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5DataSpace.h:116
static void deleteConstants()
hssize_t getSimpleExtentNpoints() const
Returns the number of elements in a dataspace.
Definition: H5DataSpace.cpp:287
void selectHyperslab(H5S_seloper_t op, const hsize_t *count, const hsize_t *start, const hsize_t *stride=NULL, const hsize_t *block=NULL) const
Selects a hyperslab region to add to the current selected region.
Definition: H5DataSpace.cpp:602
void extentCopy(const DataSpace &dest_space) const
Copies the extent of a dataspace.
Definition: H5DataSpace.cpp:324
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
and the Board of Trustees of the University of Illinois
|