Add #ifndef DOXYGEN directives to hide boost::enable/disable_if constructs from doxygen
g0dil [Mon, 23 Jul 2007 16:09:36 +0000 (16:09 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@342 270642c3-0616-0410-b53a-bc976706d245

Packets/PacketData.hh
Packets/PacketParser.hh
Packets/ParseList.hh
Packets/ParseVec.hh
Socket/ClientSocketHandle.hh
Socket/LLAddressing.hh

index 9ebe32e..8a64ec0 100644 (file)
@@ -109,9 +109,14 @@ namespace senf {
         // only academic since what should an empty packet be good for ?
         void insert(iterator pos, byte v);
         void insert(iterator pos, size_type n, byte v);
+#       ifndef DOXYGEN
         template <class InputIterator>
         void insert(iterator pos, InputIterator f, InputIterator l,
                     typename boost::disable_if< boost::is_convertible<InputIterator,size_type> >::type * = 0);
+#       else
+        template <class InputIterator>
+        void insert(iterator pos, InputIterator f, InputIterator l);
+#       endif
 
         void erase(iterator pos);
         void erase(iterator first, iterator last);
index db7a32f..644e00d 100644 (file)
@@ -299,11 +299,16 @@ namespace senf {
 
         \ingroup packetparser
      */
+#   ifndef DOXYGEN
     template <class Parser>
     typename boost::enable_if< 
         boost::is_base_of<PacketParserBase, Parser>,
         Parser >::type
     operator<<(Parser target, Parser source);
+#   else
+    template <class Parser>
+    Parser operator<<(Parser target, Parser source);
+#   endif
 
     /** \brief Generic parser value assignment
 
index 8e82f06..3b7506b 100644 (file)
@@ -327,8 +327,12 @@ namespace senf {
         template <class Value>
         void insert(iterator pos, size_type n, Value const & t);
         template <class ForwardIterator>
+#       ifndef DOXYGEN
         void insert(iterator pos, ForwardIterator f, ForwardIterator l,
                     typename boost::disable_if< boost::is_convertible<ForwardIterator,size_type> >::type * = 0);
+#       else
+        void insert(iterator pos, ForwardIterator f, ForwardIterator l);
+#       endif
 
         void erase(iterator pos, size_type n=1);
         void erase(iterator f, iterator l);
index f979f42..1154671 100644 (file)
@@ -261,9 +261,14 @@ namespace senf {
         void insert(iterator pos, Value const & t);
         template <class Value>
         void insert(iterator pos, size_type n, Value const & t);
+#       ifndef DOXYGEN
         template <class ForwardIterator>
         void insert(iterator pos, ForwardIterator f, ForwardIterator l,
                     typename boost::disable_if< boost::is_convertible<ForwardIterator,size_type> >::type * = 0);
+#       else
+        template <class ForwardIterator>
+        void insert(iterator pos, ForwardIterator f, ForwardIterator l);
+#       endif
 
         void erase(iterator pos, size_type n=1);
         void erase(iterator f, iterator l);
index 2c951b7..2e2372a 100644 (file)
@@ -170,9 +170,13 @@ namespace senf {
         */
         std::string  read         (unsigned limit=0);
         template <class ForwardWritableRange>
+#       ifndef DOXYGEN
         typename boost::range_iterator<ForwardWritableRange>::type
                      read         (ForwardWritableRange const & range,
                                    typename boost::disable_if< boost::is_convertible<ForwardWritableRange,unsigned> >::type * = 0);
+#       else
+        typename boost::range_iterator<ForwardWritableRange>::type
+                     read         (ForwardWritableRange const & range);
                                         ///< Read data into range
                                         /**< Read data into the given range. At most
                                              <tt>boost::size(range)</tt> characters are read. The
@@ -185,6 +189,7 @@ namespace senf {
                                                  last read character 
                                              \see \ref read() \n
                                                   <a href="http://www.boost.org/libs/range/index.html">Boost.Range</a> */
+#       endif
         template <class ForwardWritableRange>
         typename boost::range_iterator<ForwardWritableRange>::type
                      read         (ForwardWritableRange & range,
index 7793123..4182305 100644 (file)
@@ -96,9 +96,14 @@ namespace senf {
         // This is for sending packets ..
         // We must use enable_if here, so this constructor will not hide
         // above constructor if passed a plain int or short argument
+#       ifndef DOXYGEN
         template <class ForwardRange>
         explicit LLSocketAddress(ForwardRange const & address, std::string interface="",
                                  typename boost::enable_if_c<! boost::is_integral<ForwardRange>::value >::type * = 0);
+#       else
+        template <class ForwardRange>
+        explicit LLSocketAddress(ForwardRange const & address, std::string interface="");
+#       endif
 
         void clear();