diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-01-15 15:53:33 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-01-15 15:53:33 (GMT) |
commit | 0d68aa89cede07df85eca611510a6271fbbb1d8a (patch) | |
tree | bdef31cdbdb77168e26bd4e2ed0eb12665dada44 /c++/src/H5ArrayType.h | |
parent | c09393ed0a2624cc04556249ef5549c2485efe8f (diff) | |
download | hdf5-0d68aa89cede07df85eca611510a6271fbbb1d8a.zip hdf5-0d68aa89cede07df85eca611510a6271fbbb1d8a.tar.gz hdf5-0d68aa89cede07df85eca611510a6271fbbb1d8a.tar.bz2 |
[svn-r28905] Purpose: Fix user reported problem
Description:
User Adam Rosenberger reported a failure when using the member function
AbstractDs::getArrayType(). This problem was caused by missing
initialization of the ArrayType's members in some cases.
Solution:
- Added ArrayType::setArrayInfo() to retrieve rank and dimensions of
an array and store them in memory for easy access.
- Re-factored a few functions to use the new function.
- We'll give him 1.8.16 patch
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5ArrayType.h')
-rw-r--r-- | c++/src/H5ArrayType.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c++/src/H5ArrayType.h b/c++/src/H5ArrayType.h index 6577a6e..c0f4b38 100644 --- a/c++/src/H5ArrayType.h +++ b/c++/src/H5ArrayType.h @@ -31,6 +31,9 @@ class H5_DLLCPP ArrayType : public DataType { // specified base type. ArrayType(const DataType& base_type, int ndims, const hsize_t* dims); + // Stores the rank and dimensions in memory. + void setArrayInfo(); + // Returns the number of dimensions of this array datatype. int getArrayNDims(); |