diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-04-24 15:52:09 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-04-24 15:52:09 (GMT) |
commit | 32bdd82cc8f5a4fa6821a5b755f99178e0f379d4 (patch) | |
tree | 7c9c2510b3832250f94692293b97d286f76c82d5 /c++/src/H5ArrayType.h | |
parent | 4f831405cb0130769fd85e7e6d88e560a45833ff (diff) | |
download | hdf5-32bdd82cc8f5a4fa6821a5b755f99178e0f379d4.zip hdf5-32bdd82cc8f5a4fa6821a5b755f99178e0f379d4.tar.gz hdf5-32bdd82cc8f5a4fa6821a5b755f99178e0f379d4.tar.bz2 |
[svn-r29782] 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.
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 } |