H5std_string
for the buffer. chunks.cpp, compound.cpp, create.cpp, extend_ds.cpp, h5group.cpp, readdata.cpp, and writedata.cpp.
H5::DataSet::DataSet | ( | H5Object & | obj, | |
const void * | ref, | |||
H5R_type_t | ref_type = H5R_OBJECT | |||
) |
Given a reference, ref, to an hdf5 dataset, creates a DataSet object.
obj | - IN: Dataset reference object is in or location of object that the dataset is located within. | |
ref | - IN: Reference pointer | |
ref_type | - IN: Reference type - default to H5R_OBJECT |
H5::DataSetIException |
obj
can be DataSet, Group, H5File, or named DataType, that is a datatype that has been named by DataType::commit. References H5::Exception::getDetailMsg().
H5::DataSet::DataSet | ( | H5File & | h5file, | |
const void * | ref, | |||
H5R_type_t | ref_type = H5R_OBJECT | |||
) |
Given a reference, ref, to an hdf5 dataset, creates a DataSet object.
h5file | - IN: Location referenced object is in | |
ref | - IN: Reference pointer | |
ref_type | - IN: Reference type - default to H5R_OBJECT |
H5::DataSetIException |
References H5::Exception::getDetailMsg().
H5::DataSet::DataSet | ( | Attribute & | attr, | |
const void * | ref, | |||
H5R_type_t | ref_type = H5R_OBJECT | |||
) |
Given a reference, ref, to an hdf5 dataset, creates a DataSet object.
attr | - IN: Specifying location where the referenced object is in | |
ref | - IN: Reference pointer | |
ref_type | - IN: Reference type - default to H5R_OBJECT |
H5::ReferenceException |
References H5::Exception::getDetailMsg().
H5::DataSet::DataSet | ( | const DataSet & | original | ) |
Copy constructor: makes a copy of the original DataSet object.
original | - IN: DataSet instance to copy |
References getId(), and H5::IdComponent::incRefCount().
H5::DataSet::DataSet | ( | const hid_t | existing_id | ) |
Creates an DataSet object using the id of an existing dataset.
existing_id | - IN: Id of an existing dataset |
void H5::DataSet::close | ( | ) | [virtual] |
Closes this dataset.
H5::DataSetIException |
Implements H5::IdComponent.
References H5::IdComponent::getCounter().
Referenced by p_setId(), and ~DataSet().
void H5::DataSet::extend | ( | const hsize_t * | size | ) | const |
Extends a dataset with unlimited dimension.
size | - IN: Array containing the new magnitude of each dimension |
H5::DataSetIException |
This is an overloaded member function, provided for convenience. It differs from the above function in that it only takes the the last three arguments.
buf | - IN/OUT: Memory buffer to fill selection within | |
buf_type | - IN: Datatype of the elements in buffer | |
space | - IN: Dataspace describing memory buffer & containing selection to use |
H5::DataSetIException |
void H5::DataSet::fillMemBuf | ( | const void * | fill, | |
DataType & | fill_type, | |||
void * | buf, | |||
DataType & | buf_type, | |||
DataSpace & | space | |||
) |
Fills a selection in memory with a value.
fill | - IN: Pointer to fill value to use - default NULL | |
fill_type | - IN: Datatype of the fill value | |
buf | - IN/OUT: Memory buffer to fill selection within | |
buf_type | - IN: Datatype of the elements in buffer | |
space | - IN: Dataspace describing memory buffer & containing selection to use |
H5::DataSetIException |
DSetCreatPropList H5::DataSet::getCreatePlist | ( | ) | const |
Gets the dataset creation property list.
H5::DataSetIException |
size_t H5::DataSet::getInMemDataSize | ( | ) | const [virtual] |
Gets the size in memory of the dataset's data.
H5::DataSetIException |
Implements H5::AbstractDs.
H5G_obj_t H5::DataSet::getObjType | ( | void * | ref, | |
H5R_type_t | ref_type = H5R_OBJECT | |||
) | const |
Retrieves the type of object that an object reference points to.
ref_type | - IN: Type of reference to query, valid values are:
| |
ref | - IN: Reference to query |
H5::DataSetIException |
References H5::Exception::getDetailMsg().
haddr_t H5::DataSet::getOffset | ( | ) | const |
Returns the address of this dataset in the file.
H5::DataSetIException |
DataSpace H5::DataSet::getRegion | ( | void * | ref, | |
H5R_type_t | ref_type = H5R_DATASET_REGION | |||
) | const |
Retrieves a dataspace with the region pointed to selected.
ref | - IN: Reference to get region of | |
ref_type | - IN: Type of reference to get region of - default to H5R_DATASET_REGION |
H5::DataSetIException |
References H5::Exception::getDetailMsg().
DataSpace H5::DataSet::getSpace | ( | ) | const [virtual] |
Gets a copy of the dataspace of this dataset.
H5::DataSetIException |
Implements H5::AbstractDs.
void H5::DataSet::getSpaceStatus | ( | H5D_space_status_t & | status | ) | const |
Determines whether space has been allocated for a dataset.
status | - OUT: Space allocation status |
H5::DataSetIException |
hsize_t H5::DataSet::getStorageSize | ( | ) | const [virtual] |
Returns the amount of storage required for a dataset.
H5::DataSetIException |
Implements H5::AbstractDs.
Returns the number of bytes required to store VL data.
H5::DataSetIException |
int H5::DataSet::iterateElems | ( | void * | buf, | |
const DataType & | type, | |||
const DataSpace & | space, | |||
H5D_operator_t | op, | |||
void * | op_data = NULL | |||
) |
Iterates over all selected elements in a dataspace.
buf | - IN/OUT: Pointer to the buffer in memory containing the elements to iterate over | |
type | - IN: Datatype for the elements stored in buf | |
space | - IN: Dataspace for buf. Also contains the selection to iterate over. | |
op | - IN: Function pointer to the routine to be called for each element in buf iterated over | |
op_data | - IN/OUT: Pointer to any user-defined data associated with the operation |
H5::DataSetIException |
void H5::DataSet::p_setId | ( | const hid_t | new_id | ) | [protected, virtual] |
Sets the identifier of this dataset to a new value.
H5::IdComponentException | when the attempt to close the HDF5 object fails |
Implements H5::IdComponent.
References close(), H5::Exception::getDetailMsg(), and H5::IdComponent::inMemFunc().
void H5::DataSet::read | ( | H5std_string & | strg, | |
const DataType & | mem_type, | |||
const DataSpace & | mem_space = DataSpace::ALL , |
|||
const DataSpace & | file_space = DataSpace::ALL , |
|||
const DSetMemXferPropList & | xfer_plist = DSetMemXferPropList::DEFAULT | |||
) | const |
This is an overloaded member function, provided for convenience. It takes a reference to a H5std_string
for the buffer.
buf | - IN: Buffer for read data | |
mem_type | - IN: Memory datatype | |
mem_space | - IN: Memory dataspace | |
file_space | - IN: Dataset's dataspace in the file | |
xfer_plist | - IN: Transfer property list for this I/O operation |
H5::DataSetIException |
void H5::DataSet::read | ( | void * | buf, | |
const DataType & | mem_type, | |||
const DataSpace & | mem_space = DataSpace::ALL , |
|||
const DataSpace & | file_space = DataSpace::ALL , |
|||
const DSetMemXferPropList & | xfer_plist = DSetMemXferPropList::DEFAULT | |||
) | const |
Reads raw data from the specified dataset.
buf | - IN: Buffer for read data | |
mem_type | - IN: Memory datatype | |
mem_space | - IN: Memory dataspace | |
file_space | - IN: Dataset's dataspace in the file | |
xfer_plist | - IN: Transfer property list for this I/O operation |
H5::DataSetIException |
void H5::DataSet::vlenReclaim | ( | void * | buf, | |
const DataType & | type, | |||
const DataSpace & | space = DataSpace::ALL , |
|||
const DSetMemXferPropList & | xfer_plist = DSetMemXferPropList::DEFAULT | |||
) | [static] |
Reclaims VL datatype memory buffers.
type | - IN: Datatype, which is the datatype stored in the buffer | |
space | - IN: Selection for the memory buffer to free the VL datatypes within | |
xfer_plist | - IN: Property list used to create the buffer | |
buf | - IN: Pointer to the buffer to be reclaimed |
H5::DataSetIException |
void H5::DataSet::vlenReclaim | ( | const DataType & | type, | |
const DataSpace & | space, | |||
const DSetMemXferPropList & | xfer_plist, | |||
void * | buf | |||
) | [static] |
Reclaims VL datatype memory buffers.
type | - IN: Datatype, which is the datatype stored in the buffer | |
space | - IN: Selection for the memory buffer to free the VL datatypes within | |
xfer_plist | - IN: Property list used to create the buffer | |
buf | - IN: Pointer to the buffer to be reclaimed |
H5::DataSetIException |
void H5::DataSet::write | ( | const void * | buf, | |
const DataType & | mem_type, | |||
const DataSpace & | mem_space = DataSpace::ALL , |
|||
const DataSpace & | file_space = DataSpace::ALL , |
|||
const DSetMemXferPropList & | xfer_plist = DSetMemXferPropList::DEFAULT | |||
) | const |
Writes raw data from an application buffer to a dataset.
buf | - IN: Buffer containing data to be written | |
mem_type | - IN: Memory datatype | |
mem_space | - IN: Memory dataspace | |
file_space | - IN: Dataset's dataspace in the file | |
xfer_plist | - IN: Transfer property list for this I/O operation |
H5::DataSetIException |