Commit 82d0b7f2 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2432] Explain ownership of rrset passed to addRRset()

parent 2205f81d
......@@ -52,9 +52,12 @@ public:
/// \brief Add an RRset to the collection.
///
/// Does not do any validation whether \c rrset belongs to a
/// particular zone or not. It throws an \c isc::InvalidParameter
/// exception if an rrset with the same class, type and name already
/// exists.
/// particular zone or not. A reference to \c rrset is taken in an
/// internally managed \c shared_ptr, so even if the caller's
/// \c RRsetPtr is destroyed, the RRset it wrapped is still alive
/// and managed by the \c RRsetCollection. It throws an
/// \c isc::InvalidParameter exception if an rrset with the same
/// class, type and name already exists.
void addRRset(isc::dns::RRsetPtr rrset);
/// \brief Remove an RRset from the collection.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment