BIND 10 trac2435_2, updated. 848cc407b16d4874dc5abec493248cd64db018c6 [2435] Update isc::datasrc::RRsetCollectionBase class documentation

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Jan 24 04:46:48 UTC 2013


The branch, trac2435_2 has been updated
       via  848cc407b16d4874dc5abec493248cd64db018c6 (commit)
      from  1f6f8905d7319519c6f2ebd5864eeb4d6d700d03 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 848cc407b16d4874dc5abec493248cd64db018c6
Author: Mukund Sivaraman <muks at isc.org>
Date:   Thu Jan 24 09:40:37 2013 +0530

    [2435] Update isc::datasrc::RRsetCollectionBase class documentation

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/rrset_collection_base.h |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/rrset_collection_base.h b/src/lib/datasrc/rrset_collection_base.h
index 0abaa82..e512c85 100644
--- a/src/lib/datasrc/rrset_collection_base.h
+++ b/src/lib/datasrc/rrset_collection_base.h
@@ -29,6 +29,29 @@ class ZoneUpdater;
 ///
 /// This is a default datasrc implementation of
 /// \c isc::dns::RRsetCollectionBase that adds datasrc related detail.
+///
+/// While it is a concrete class to be used along with a \c ZoneUpdater,
+/// specific \c ZoneUpdater implementations may derive from it and add
+/// additional detail. Unless you are implementing a \c ZoneUpdater, you
+/// must not use the constructor directly. Instead use the
+/// \c ZoneUpdater::getRRsetCollection() method to get a reference to
+/// the \c RRsetCollectionBase object for that \c ZoneUpdater. This is
+/// usually a singleton object and the API is designed with this in
+/// mind, because multiple \c RRsetCollectionBase objects cannot be used
+/// at the same time in most kinds of database implementations
+/// (esp. where iterators are in use). Specific \c ZoneUpdaters that can
+/// allow multiple \c RRsetCollection objects may provide additional
+/// API, but that is unspecified here.
+///
+/// There are some restrictions on when an \c RRsetCollection may be
+/// used. Though code may have a reference to an \c RRsetCollection
+/// object, it is not always valid to use it. Implementations of
+/// \c ZoneUpdater may disable an \c RRsetCollection previously returned
+/// by \c ZoneUpdater::getRRsetCollection() after \c commit() is called
+/// on the \c ZoneUpdater. An \c isc::dns::RRsetCollectionError
+/// exception will be thrown if an \c RRsetCollection is used when
+/// disabled. Please see the \c ZoneUpdater methods' documentation for
+/// more detail.
 class RRsetCollectionBase : public isc::dns::RRsetCollectionBase {
 public:
     /// \brief Constructor.



More information about the bind10-changes mailing list