From: g0dil Date: Mon, 23 Jul 2007 16:26:40 +0000 (+0000) Subject: Add #ifndef DOXYGEN comments to implementation too X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=08d97ee2fd048ae883c297118145487517a31258;p=senf.git Add #ifndef DOXYGEN comments to implementation too git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@343 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/PacketData.cti b/Packets/PacketData.cti index ffe2417..8486d87 100644 --- a/Packets/PacketData.cti +++ b/Packets/PacketData.cti @@ -33,6 +33,7 @@ // Modifying the raw packet data +#ifndef DOXYGEN template prefix_ void senf::PacketData:: insert(iterator pos, InputIterator f, InputIterator l, @@ -40,6 +41,12 @@ insert(iterator pos, InputIterator f, InputIterator l, { impl().insert(this,pos,f,l); } +#else +template +prefix_ void senf::PacketData:: +insert(iterator pos, InputIterator f, InputIterator l) +{} +#endif ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_ diff --git a/Packets/PacketParser.ct b/Packets/PacketParser.ct index 5dd16a7..47e4177 100644 --- a/Packets/PacketParser.ct +++ b/Packets/PacketParser.ct @@ -28,6 +28,7 @@ #define prefix_ ///////////////////////////////ct.p//////////////////////////////////////// +#ifndef DOXYGEN template prefix_ typename boost::enable_if< boost::is_base_of, @@ -45,6 +46,11 @@ prefix_ typename boost::enable_if< PacketParserBase::data_iterator(new_target.i()) ); return new_target; } +#else +template +prefix_ Parser senf::operator<<(Parser target, Parser source) +{} +#endif ///////////////////////////////ct.e//////////////////////////////////////// #undef prefix_ diff --git a/Packets/PacketParser.cti b/Packets/PacketParser.cti index 4945e3d..777531b 100644 --- a/Packets/PacketParser.cti +++ b/Packets/PacketParser.cti @@ -59,6 +59,7 @@ prefix_ senf::PacketParserBase::size_type senf::bytes(Parser p) return detail::packetParserSize(p,0); } +#ifndef DOXYGEN template prefix_ typename boost::enable_if_c < boost::is_base_of::value @@ -68,6 +69,11 @@ prefix_ typename boost::enable_if_c < target.value(value); return target; } +#else +template +prefix_ Parser senf::operator<<(Parser target, Value const & value) +{} +#endif template prefix_ senf::PacketParserBase::size_type diff --git a/Packets/PacketParser.hh b/Packets/PacketParser.hh index 644e00d..98fdbb2 100644 --- a/Packets/PacketParser.hh +++ b/Packets/PacketParser.hh @@ -287,6 +287,13 @@ namespace senf { struct init_bytes : public detail::ParserInitBytes {}; +# ifndef DOXYGEN + template + typename boost::enable_if< + boost::is_base_of, + Parser >::type + operator<<(Parser target, Parser source); +# else /** \brief Generic parser copying This operator allows to copy the values of identical parsers. This operation does \e not @@ -299,17 +306,18 @@ namespace senf { \ingroup packetparser */ -# ifndef DOXYGEN - template - typename boost::enable_if< - boost::is_base_of, - Parser >::type - operator<<(Parser target, Parser source); -# else template Parser operator<<(Parser target, Parser source); # endif +# ifndef DOXYGEN + template + typename boost::enable_if_c < + boost::is_base_of::value + && ! boost::is_base_of::value, + Parser >::type + operator<<(Parser target, Value const & value); +# else /** \brief Generic parser value assignment This operator allows to assign a value to parsers which implement a value(\a @@ -319,11 +327,8 @@ namespace senf { \ingroup packetparser */ template - typename boost::enable_if_c < - boost::is_base_of::value - && ! boost::is_base_of::value, - Parser >::type - operator<<(Parser target, Value const & value); + Parser operator<<(Parser target, Value const & value); +# endif /** \defgroup packetparsermacros Helper macros for defining new packet parsers diff --git a/Packets/ParseList.ct b/Packets/ParseList.ct index 45012bf..5cd9878 100644 --- a/Packets/ParseList.ct +++ b/Packets/ParseList.ct @@ -99,6 +99,7 @@ prefix_ void senf::Parse_List_Container::insert(iterator pos, } } +#ifndef DOXYGEN template template prefix_ void senf::Parse_List_Container:: @@ -116,6 +117,13 @@ insert(iterator pos, ForwardIterator f, ForwardIterator l, sp += senf::bytes(value_type(sp,state())); } } +#else +template +template +prefix_ void senf::Parse_List_Container:: +insert(iterator pos, ForwardIterator f, ForwardIterator l) +{} +#endif template prefix_ void senf::Parse_List_Container::erase(iterator pos, diff --git a/Packets/ParseVec.ct b/Packets/ParseVec.ct index 64493eb..d76caf3 100644 --- a/Packets/ParseVec.ct +++ b/Packets/ParseVec.ct @@ -79,6 +79,7 @@ prefix_ void senf::Parse_Vector_Container::insert(iterator *j << t; } +#ifndef DOXYGEN template template prefix_ void senf::Parse_Vector_Container:: @@ -88,6 +89,13 @@ insert(iterator pos, ForwardIterator f, ForwardIterator l, for (iterator j (shift(pos,std::distance(f,l))); f!=l; ++f,++j) *j << *f; } +#else +template +template +prefix_ void senf::Parse_Vector_Container:: +insert(iterator pos, ForwardIterator f, ForwardIterator l) +{} +#endif template prefix_ void senf::Parse_Vector_Container::resize(size_type n) diff --git a/Socket/ClientSocketHandle.cti b/Socket/ClientSocketHandle.cti index 9650880..7f46c6c 100644 --- a/Socket/ClientSocketHandle.cti +++ b/Socket/ClientSocketHandle.cti @@ -138,6 +138,7 @@ senf::ClientSocketHandle::operator=(ClientSocketHandle othe // senf::ClientSocketHandle::read +#ifndef DOXYGEN template template prefix_ typename boost::range_iterator::type @@ -153,6 +154,14 @@ read(ForwardWritableRange const & range, >::value && sizeof(typename boost::range_value::type)==sizeof(char) >::read(*this, range); } +#else +template +template +prefix_ typename boost::range_iterator::type +senf::ClientSocketHandle:: +read(ForwardWritableRange const & range) +{} +#endif template template diff --git a/Socket/LLAddressing.cti b/Socket/LLAddressing.cti index 42e9934..c401343 100644 --- a/Socket/LLAddressing.cti +++ b/Socket/LLAddressing.cti @@ -32,6 +32,7 @@ #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// +#ifndef DOXYGEN template prefix_ senf::LLSocketAddress:: LLSocketAddress(ForwardRange const & address, std::string interface, @@ -41,6 +42,12 @@ LLSocketAddress(ForwardRange const & address, std::string interface, this->address(address); this->interface(interface); } +#else +template +prefix_ senf::LLSocketAddress:: +LLSocketAddress(ForwardRange const & address, std::string interface) +{} +#endif ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_