diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-04-24 20:30:27 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-04-24 20:30:27 (GMT) |
commit | c036aa157516f80a14918904673e0d380041a821 (patch) | |
tree | 8e9f4ff9c54f00b02d2f47e3062e364fe7cc3c4d /c++/src/H5ArrayType.h | |
parent | d490c837eb601c4a7eee8fba62ce8ba9adb0e9a1 (diff) | |
download | hdf5-c036aa157516f80a14918904673e0d380041a821.zip hdf5-c036aa157516f80a14918904673e0d380041a821.tar.gz hdf5-c036aa157516f80a14918904673e0d380041a821.tar.bz2 |
[svn-r29784] Purpose: Code improvement
Description:
- Removed ArrayType::rank and ArrayType::dimensions and modified the methods
ArrayType::getArrayNDims and ArrayType::getArrayDims to always call the
C functions to get the rank and dimensions.
- Overloaded ArrayType::getArrayNDims and ArrayType::getArrayDims to provide
const version and marked the non-const version deprecated.
Merged from trunk r29782.
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 | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/c++/src/H5ArrayType.h b/c++/src/H5ArrayType.h index ddbb5e2..eee430e 100644 --- a/c++/src/H5ArrayType.h +++ b/c++/src/H5ArrayType.h @@ -34,14 +34,13 @@ class H5_DLLCPP ArrayType : public DataType { // Assignment operator ArrayType& operator=(const ArrayType& rhs); - // Stores the rank and dimensions in memory. - void setArrayInfo(); - // Returns the number of dimensions of this array datatype. - int getArrayNDims(); + int getArrayNDims() const; + int getArrayNDims(); // deprecated // Returns the sizes of dimensions of this array datatype. - int getArrayDims(hsize_t* dims); + int getArrayDims(hsize_t* dims) const; + int getArrayDims(hsize_t* dims); // deprecated ///\brief Returns this class name. virtual H5std_string fromClass () const { return("ArrayType"); } @@ -57,10 +56,6 @@ class H5_DLLCPP ArrayType : public DataType { // Default constructor ArrayType(); - - private: - int rank; // Rank of the array - hsize_t* dimensions; // Sizes of the array dimensions }; #ifndef H5_NO_NAMESPACE } |