]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2432] Add API doc for equals() about incompatible types
authorMukund Sivaraman <muks@isc.org>
Tue, 1 Jan 2013 10:36:57 +0000 (16:06 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 1 Jan 2013 10:36:57 +0000 (16:06 +0530)
src/lib/dns/rrset_collection_base.h

index 2db50e7806382d0e094b761e5482f120a130e918..ead169dbae7c82ad3b1f872d6a34cbc23207a187 100644 (file)
@@ -64,6 +64,16 @@ protected:
     public:
         virtual const isc::dns::AbstractRRset& getValue() = 0;
         virtual IterPtr getNext() = 0;
+
+        /// \brief Check if another iterator is equal to this one.
+        ///
+        /// Returns \c true if this iterator is equal to \c other,
+        /// \c false otherwise. Note that if \c other is not the same
+        /// type as \c this, or cannot be compared meaningfully, the
+        /// method must return \c false.
+        ///
+        /// \param other The other iterator to compare against.
+        /// \returns \c true if equal, \c false otherwise.
         virtual bool equals(Iter& other) = 0;
     };