diff options
author | Alan Conway <aconway@apache.org> | 2008-04-24 17:42:59 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-24 17:42:59 +0000 |
commit | 757d86d81e811f105f72fdfce5bc18d83aaa08d4 (patch) | |
tree | d095206cd9129f04bf77a3c59be5d5673554f2ec /cpp/src/qpid/framing/variant.h | |
parent | 20373a2ab9e3dab3b2164e1e0409eefd2fb4cc4e (diff) | |
download | qpid-python-757d86d81e811f105f72fdfce5bc18d83aaa08d4.tar.gz |
Edits to doxygen comments for user documentation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@651321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/variant.h')
-rw-r--r-- | cpp/src/qpid/framing/variant.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/qpid/framing/variant.h b/cpp/src/qpid/framing/variant.h index ceaed2c529..8e13063385 100644 --- a/cpp/src/qpid/framing/variant.h +++ b/cpp/src/qpid/framing/variant.h @@ -21,7 +21,7 @@ * */ -/**@file Tools for using boost::variant */ +/**@file Tools for using boost::variant. */ #include <boost/variant.hpp> @@ -30,8 +30,8 @@ namespace qpid { namespace framing { class Buffer; -/** boost::static_visitor that throws exception if variant contains blank. - * Sublclasses need to have a using() declaration, can be generated +/** boost::static_visitor that throws an exception if variant contains a blank. + * Subclasses need to have a using() declaration, which can be generated * with QPID_USING_NOBLANK(R) */ template <class R=void> @@ -48,7 +48,7 @@ struct NoBlankVisitor : public boost::static_visitor<R> { }} // qpid::framing -/** Generate using statement needed in visitors inheriting NoBlankVisitor +/** Generate a using statement, needed in visitors inheriting NoBlankVisitor * @param R return type. */ #define QPID_USING_NOBLANK(R) using ::qpid::framing::NoBlankVisitor<R>::operator() @@ -62,13 +62,13 @@ template <class R> struct ConvertVisitor : public NoBlankVisitor<R> { template <class T> R operator()(T& t) const { return t; } }; -/** Convert address of variant value to type R. */ +/** Convert the address of variant value to type R. */ template <class R> struct AddressVisitor : public NoBlankVisitor<R> { QPID_USING_NOBLANK(R); template <class T> R operator()(T& t) const { return &t; } }; -/** Apply a visitor to the nested variant in a variant of variants */ +/** Apply a visitor to the nested variant.*/ template<class V> struct ApplyVisitor : public NoBlankVisitor<typename V::result_type> { QPID_USING_NOBLANK(typename V::result_type); |