diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-08-04 20:18:02 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-08-04 20:18:02 (GMT) |
commit | 914f990f22fffb5afbf55cda856ab9a6e9db3b60 (patch) | |
tree | 1f3c1977e708bb22bd7e083b583484d85e3a8b79 /c++/src/H5CompType.h | |
parent | 6401dec6c2933c0418689134670d59be139b1419 (diff) | |
download | hdf5-914f990f22fffb5afbf55cda856ab9a6e9db3b60.zip hdf5-914f990f22fffb5afbf55cda856ab9a6e9db3b60.tar.gz hdf5-914f990f22fffb5afbf55cda856ab9a6e9db3b60.tar.bz2 |
[svn-r11200] Purpose: Code improvement
Description:
Changed CompType::getMemberClass to use H5Tget_member_class
instead of going around unneccesarily.
Changed "int member_num" to "unsigned member_num" of several
member functions of CompType, per the C library change.
Platforms tested:
Linux 2.4 (heping)
Linux 2.4 w/PGI (colonelk)
AIX 5.1 (copper)
Diffstat (limited to 'c++/src/H5CompType.h')
-rw-r--r-- | c++/src/H5CompType.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/c++/src/H5CompType.h b/c++/src/H5CompType.h index ae38398..d018c13 100644 --- a/c++/src/H5CompType.h +++ b/c++/src/H5CompType.h @@ -37,7 +37,7 @@ class H5_DLLCPP CompType : public DataType { H5T_class_t getMemberClass( unsigned member_num ) const; // Returns the dimensionality of the specified member. - int getMemberDims( int member_num, size_t* dims, int* perm ) const; + int getMemberDims( unsigned member_num, size_t* dims, int* perm ) const; // Returns the index of a member in this compound data type. int getMemberIndex(const char* name) const; @@ -51,35 +51,35 @@ class H5_DLLCPP CompType : public DataType { // Returns the generic datatype of the specified member in // this compound datatype. - DataType getMemberDataType( int member_num ) const; + DataType getMemberDataType( unsigned member_num ) const; // Returns the array datatype of the specified member in // this compound datatype. - ArrayType getMemberArrayType( int member_num ) const; + ArrayType getMemberArrayType( unsigned member_num ) const; // Returns the compound datatype of the specified member in // this compound datatype. - CompType getMemberCompType( int member_num ) const; + CompType getMemberCompType( unsigned member_num ) const; // Returns the enumeration datatype of the specified member in // this compound datatype. - EnumType getMemberEnumType( int member_num ) const; + EnumType getMemberEnumType( unsigned member_num ) const; // Returns the integer datatype of the specified member in // this compound datatype. - IntType getMemberIntType( int member_num ) const; + IntType getMemberIntType( unsigned member_num ) const; // Returns the floating-point datatype of the specified member in // this compound datatype. - FloatType getMemberFloatType( int member_num ) const; + FloatType getMemberFloatType( unsigned member_num ) const; // Returns the string datatype of the specified member in // this compound datatype. - StrType getMemberStrType( int member_num ) const; + StrType getMemberStrType( unsigned member_num ) const; // Returns the variable length datatype of the specified member in // this compound datatype. - VarLenType getMemberVarLenType( int member_num ) const; + VarLenType getMemberVarLenType( unsigned member_num ) const; // Returns the number of members in this compound datatype. int getNmembers() const; |