[svn] commit: r2554 - in /branches/trac221b/src/lib: cc/session.h xfr/xfrout_client.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jul 21 00:33:31 UTC 2010
Author: jinmei
Date: Wed Jul 21 00:33:31 2010
New Revision: 2554
Log:
added notes about protected destructors in base classes.
Modified:
branches/trac221b/src/lib/cc/session.h
branches/trac221b/src/lib/xfr/xfrout_client.h
Modified: branches/trac221b/src/lib/cc/session.h
==============================================================================
--- branches/trac221b/src/lib/cc/session.h (original)
+++ branches/trac221b/src/lib/cc/session.h Wed Jul 21 00:33:31 2010
@@ -60,8 +60,14 @@
AbstractSession(const AbstractSession& source);
AbstractSession& operator=(const AbstractSession& source);
protected:
+ /// \brief The default constructor.
+ ///
+ /// This is intentionally defined as \c protected as this base
+ /// class should never be instantiated (except as part of a
+ /// derived class).
AbstractSession() {}
public:
+ /// \brief The destructor.
virtual ~AbstractSession() {}
//@}
virtual void establish(const char* socket_file) = 0;
Modified: branches/trac221b/src/lib/xfr/xfrout_client.h
==============================================================================
--- branches/trac221b/src/lib/xfr/xfrout_client.h (original)
+++ branches/trac221b/src/lib/xfr/xfrout_client.h Wed Jul 21 00:33:31 2010
@@ -51,8 +51,13 @@
AbstractXfroutClient(const AbstractXfroutClient& source);
AbstractXfroutClient& operator=(const AbstractXfroutClient& source);
protected:
+ /// \brief The default constructor.
+ ///
+ /// This is intentionally defined as \c protected as this base class should
+ /// never be instantiated (except as part of a derived class).
AbstractXfroutClient() {}
public:
+ /// \brief The destructor.
virtual ~AbstractXfroutClient() {}
//@}
virtual void connect() = 0;
More information about the bind10-changes
mailing list