summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5DataType.cpp')
-rw-r--r--c++/src/H5DataType.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/c++/src/H5DataType.cpp b/c++/src/H5DataType.cpp
index e8c00eb..a7de20b 100644
--- a/c++/src/H5DataType.cpp
+++ b/c++/src/H5DataType.cpp
@@ -68,6 +68,22 @@ void DataType::copy( const DataType& like_type )
}
}
+// Makes a copy of the type on the right hand side and stores the new
+// id in the left hand side object.
+DataType& DataType::operator=( const DataType& rhs )
+{
+ copy(rhs);
+ return(*this);
+}
+
+// Makes a copy of the predefined type and stores the new
+// id in the left hand side object.
+DataType& DataType::operator=( const PredType& rhs )
+{
+ copy(rhs);
+ return(*this);
+}
+
// Determines whether two datatypes refer to the same actual datatype.
bool DataType::operator==(const DataType& compared_type ) const
{