[svn] commit: r3899 - /branches/trac440/src/lib/datasrc/zonetable.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Dec 20 20:05:20 UTC 2010
Author: vorner
Date: Mon Dec 20 20:05:20 2010
New Revision: 3899
Log:
Comments
Modified:
branches/trac440/src/lib/datasrc/zonetable.cc
Modified: branches/trac440/src/lib/datasrc/zonetable.cc
==============================================================================
--- branches/trac440/src/lib/datasrc/zonetable.cc (original)
+++ branches/trac440/src/lib/datasrc/zonetable.cc Mon Dec 20 20:05:20 2010
@@ -57,11 +57,21 @@
return (FindResult(NXDOMAIN, RRsetPtr()));
}
+/// \short Private data and implementation of ZoneTable
struct ZoneTable::ZoneTableImpl {
+ // Type aliases to make it shorter
typedef RBTree<Zone> ZoneTree;
typedef RBNode<Zone> ZoneNode;
+ // The actual storage
ZoneTree zones;
+ /*
+ * The implementation methods are here and just wrap-called in the
+ * ZoneTable. We have variables locally (without impl_->), have
+ * type aliases, etc. And they will get inlined anyway.
+ */
+
+ // Implementation of ZoneTable::addZone
result::Result addZone(ZonePtr zone) {
// Sanity check
if (!zone) {
@@ -102,6 +112,7 @@
}
}
+ // Implementation of ZoneTable::findZone
ZoneTable::FindResult findZone(const Name& name) const {
ZoneNode *node(NULL);
result::Result my_result;
More information about the bind10-changes
mailing list