Class DataSpace operates on HDF5 dataspaces. More...
#include <H5DataSpace.h>
Public Member Functions | |
| DataSpace (H5S_class_t type=H5S_SCALAR) | |
| Creates a new dataspace given a dataspace type. More... | |
| DataSpace (int rank, const hsize_t *dims, const hsize_t *maxdims=NULL) | |
| Creates a new simple dataspace. More... | |
| DataSpace & | operator= (const DataSpace &rhs) |
| Assignment operator. More... | |
| virtual void | close () |
| Closes this dataspace. More... | |
| void | copy (const DataSpace &like_space) |
| Makes a copy of an existing dataspace. More... | |
| void | extentCopy (DataSpace &dest_space) const |
| Copies the extent of a dataspace. More... | |
| void | getSelectBounds (hsize_t *start, hsize_t *end) const |
| Gets the bounding box containing the current selection. More... | |
| hssize_t | getSelectElemNpoints () const |
| Returns the number of element points in the current selection. More... | |
| void | getSelectElemPointlist (hsize_t startpoint, hsize_t numpoints, hsize_t *buf) const |
| Gets the list of element points currently selected. More... | |
| void | getSelectHyperBlocklist (hsize_t startblock, hsize_t numblocks, hsize_t *buf) const |
| Gets the list of hyperslab blocks currently selected. More... | |
| hssize_t | getSelectHyperNblocks () const |
| Returns number of hyperslab blocks. More... | |
| hssize_t | getSelectNpoints () const |
| Returns the number of elements in a dataspace selection. More... | |
| int | getSimpleExtentDims (hsize_t *dims, hsize_t *maxdims=NULL) const |
| Retrieves dataspace dimension size and maximum size. More... | |
| int | getSimpleExtentNdims () const |
| Returns the dimensionality of a dataspace. More... | |
| hssize_t | getSimpleExtentNpoints () const |
| Returns the number of elements in a dataspace. More... | |
| H5S_class_t | getSimpleExtentType () const |
| Returns the current class of a dataspace. More... | |
| bool | isSimple () const |
| Determines whether this dataspace is a simple dataspace. More... | |
| void | offsetSimple (const hssize_t *offset) const |
| Sets the offset of this simple dataspace. More... | |
| void | selectAll () const |
| Selects the entire dataspace. More... | |
| 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. More... | |
| 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. More... | |
| void | selectNone () const |
| Resets the selection region to include no elements. More... | |
| bool | selectValid () const |
| Verifies that the selection is within the extent of the dataspace. More... | |
| void | setExtentNone () const |
| Removes the extent from a dataspace. More... | |
| 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. More... | |
| virtual H5std_string | fromClass () const |
| Returns this class name. More... | |
| DataSpace (const hid_t space_id) | |
| Creates a DataSpace object using the id of an existing dataspace. More... | |
| DataSpace (const DataSpace &original) | |
| Copy constructor: makes a copy of the original DataSpace object. More... | |
| virtual hid_t | getId () const |
| Get the id of this dataspace. More... | |
| virtual | ~DataSpace () |
| Properly terminates access to this dataspace. More... | |
Public Member Functions inherited from H5::IdComponent | |
| void | incRefCount (const hid_t obj_id) const |
| Increment reference counter for a given id. More... | |
| void | incRefCount () const |
| Increment reference counter for the id of this object. More... | |
| void | decRefCount (const hid_t obj_id) const |
| Decrement reference counter for a given id. More... | |
| void | decRefCount () const |
| Decrement reference counter for the id of this object. More... | |
| int | getCounter (const hid_t obj_id) const |
| Returns the reference counter for a given id. More... | |
| int | getCounter () const |
| Returns the reference counter for the id of this object. More... | |
| IdComponent & | operator= (const IdComponent &rhs) |
| Assignment operator. More... | |
| void | setId (const hid_t new_id) |
| Sets the identifier of this object to a new value. More... | |
| IdComponent (const hid_t h5_id) | |
| Creates an IdComponent object using the id of an existing object. More... | |
| IdComponent (const IdComponent &original) | |
| Copy constructor: makes a copy of the original IdComponent object. More... | |
| H5std_string | inMemFunc (const char *func_name) const |
| Makes and returns string "<class-name>::<func_name>". More... | |
| virtual | ~IdComponent () |
| Noop destructor. More... | |
Static Public Attributes | |
| static const DataSpace | ALL |
| Constant for default dataspace. More... | |
Protected Member Functions | |
| virtual void | p_setId (const hid_t new_id) |
| Sets the identifier of this object to a new value. More... | |
Protected Member Functions inherited from H5::IdComponent | |
| IdComponent () | |
| Default constructor. More... | |
| H5std_string | p_get_file_name () const |
Additional Inherited Members | |
Static Public Member Functions inherited from H5::IdComponent | |
| static H5I_type_t | getHDFObjType (const hid_t obj_id) |
| Given an id, returns the type of the object. More... | |
Static Protected Member Functions inherited from H5::IdComponent | |
| static bool | p_valid_id (const hid_t obj_id) |
Class DataSpace operates on HDF5 dataspaces.
| H5::DataSpace::DataSpace | ( | H5S_class_t | type = H5S_SCALAR | ) |
Creates a new dataspace given a dataspace type.
| type | - IN: Type of the dataspace to be created, which currently can be either H5S_SCALAR or H5S_SIMPLE; default to H5S_SCALAR. |
| H5::DataSpaceIException |
| H5::DataSpace::DataSpace | ( | int | rank, |
| const hsize_t * | dims, | ||
| const hsize_t * | maxdims = NULL |
||
| ) |
Creates a new simple dataspace.
| rank | - IN: Number of dimensions of dataspace. |
| dims | - IN: An array of the size of each dimension. |
| maxdims | - IN: An array of the maximum size of each dimension. |
| H5::DataSpaceIException |
| H5::DataSpace::DataSpace | ( | const hid_t | existing_id | ) |
Creates a DataSpace object using the id of an existing dataspace.
| existing_id | - IN: Id of an existing dataspace |
| H5::DataSpaceIException |
| H5::DataSpace::DataSpace | ( | const DataSpace & | original | ) |
|
virtual |
Properly terminates access to this dataspace.
|
virtual |
| void H5::DataSpace::copy | ( | const DataSpace & | like_space | ) |
Makes a copy of an existing dataspace.
| like_space | - IN: Dataspace to be copied |
| H5::DataSpaceIException |
| void H5::DataSpace::extentCopy | ( | DataSpace & | dest_space | ) | const |
Copies the extent of a dataspace.
| dest_space | - IN: Dataspace to copy from |
| H5::DataSpaceIException |
|
inlinevirtual |
Returns this class name.
Reimplemented from H5::IdComponent.
|
virtual |
| void H5::DataSpace::getSelectBounds | ( | hsize_t * | start, |
| hsize_t * | end | ||
| ) | const |
Gets the bounding box containing the current selection.
| start | - IN: Starting coordinates of the bounding box |
| end | - IN: Ending coordinates of the bounding box, i.e., the coordinates of the diagonally opposite corner |
| H5::DataSpaceIException |
| hssize_t H5::DataSpace::getSelectElemNpoints | ( | ) | const |
Returns the number of element points in the current selection.
| H5::DataSpaceIException |
| void H5::DataSpace::getSelectElemPointlist | ( | hsize_t | startpoint, |
| hsize_t | numpoints, | ||
| hsize_t * | buf | ||
| ) | const |
Gets the list of element points currently selected.
| startpoint | - IN: Element point to start with |
| numpoints | - IN: Number of element points to get |
| buf | - IN: List of element points selected |
| H5::DataSpaceIException |
| void H5::DataSpace::getSelectHyperBlocklist | ( | hsize_t | startblock, |
| hsize_t | numblocks, | ||
| hsize_t * | buf | ||
| ) | const |
Gets the list of hyperslab blocks currently selected.
| startblock | - IN: Hyperslab block to start with |
| numblocks | - IN: Number of hyperslab blocks to get |
| buf | - IN: List of hyperslab blocks selected |
| H5::DataSpaceIException |
| hssize_t H5::DataSpace::getSelectHyperNblocks | ( | ) | const |
Returns number of hyperslab blocks.
| H5::DataSpaceIException |
| hssize_t H5::DataSpace::getSelectNpoints | ( | ) | const |
Returns the number of elements in a dataspace selection.
| H5::DataSpaceIException |
| int H5::DataSpace::getSimpleExtentDims | ( | hsize_t * | dims, |
| hsize_t * | maxdims = NULL |
||
| ) | const |
Retrieves dataspace dimension size and maximum size.
| dims | - IN: Name of the new member |
| maxdims | - IN: Pointer to the value of the new member |
DataSpace::getSimpleExtentNdims() | H5::DataSpaceIException |
| int H5::DataSpace::getSimpleExtentNdims | ( | ) | const |
Returns the dimensionality of a dataspace.
| H5::DataSpaceIException |
| hssize_t H5::DataSpace::getSimpleExtentNpoints | ( | ) | const |
Returns the number of elements in a dataspace.
| H5::DataSpaceIException |
| H5S_class_t H5::DataSpace::getSimpleExtentType | ( | ) | const |
Returns the current class of a dataspace.
| H5::DataSpaceIException |
| bool H5::DataSpace::isSimple | ( | ) | const |
Determines whether this dataspace is a simple dataspace.
true if the dataspace is a simple dataspace, and false, otherwise | H5::DataSpaceIException |
| void H5::DataSpace::offsetSimple | ( | const hssize_t * | offset | ) | const |
Sets the offset of this simple dataspace.
| offset | - IN: Offset to position the selection at |
| H5::DataSpaceIException |
Assignment operator.
| rhs | - IN: Reference to the existing dataspace |
| H5::DataSpaceIException |
|
protectedvirtual |
Sets the identifier of this object to a new value.
| H5::IdComponentException | when the attempt to close the HDF5 object fails |
Implements H5::IdComponent.
| void H5::DataSpace::selectAll | ( | ) | const |
Selects the entire dataspace.
| H5::DataSpaceIException |
| void H5::DataSpace::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.
| op | - IN: Operator specifying how the new selection is to be combined with the existing selection for the dataspace |
| num_elements | - IN: Number of elements to be selected |
| coord | - IN: A 2-dimensional array of 0-based values specifying the coordinates of the elements being selected |
| H5::DataSpaceIException |
| void H5::DataSpace::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.
| op | - IN: Operation to perform on current selection |
| count | - IN: Number of blocks included in the hyperslab |
| start | - IN: Offset of the start of hyperslab |
| stride | - IN: Hyperslab stride - default to NULL |
| block | - IN: Size of block in the hyperslab - default to NULL |
| H5::DataSpaceIException |
| void H5::DataSpace::selectNone | ( | ) | const |
Resets the selection region to include no elements.
| H5::DataSpaceIException |
| bool H5::DataSpace::selectValid | ( | ) | const |
Verifies that the selection is within the extent of the dataspace.
true if the selection is within the extent of the dataspace, and false, otherwise | H5::DataSpaceIException |
| void H5::DataSpace::setExtentNone | ( | ) | const |
Removes the extent from a dataspace.
| H5::DataSpaceIException |
| void H5::DataSpace::setExtentSimple | ( | int | rank, |
| const hsize_t * | current_size, | ||
| const hsize_t * | maximum_size = NULL |
||
| ) | const |
Sets or resets the size of an existing dataspace.
| rank | - IN: Rank of the dataspace |
| current_size | - IN: Array containing current size of dataspace |
| maximum_size | - IN: Array containing maximum size of dataspace |
| H5::DataSpaceIException |
|
static |
Constant for default dataspace.
1.8.5