X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseListS.cti;h=9a03c88aa96e8b49805af3b730ab2ac311494c55;hb=9a988902090d28007578e93bffd809f6bd913155;hp=db917578edda0ea5b538d4db43b9349a4759be3b;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/ParseListS.cti b/Packets/ParseListS.cti index db91757..9a03c88 100644 --- a/Packets/ParseListS.cti +++ b/Packets/ParseListS.cti @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -31,74 +31,74 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ satcom::pkf::Parse_ListS::Parse_ListS() +prefix_ senf::Parse_ListS::Parse_ListS() {} template prefix_ -satcom::pkf::Parse_ListS::Parse_ListS(Iterator const & i) +senf::Parse_ListS::Parse_ListS(Iterator const & i) : ParserBase(i) {} template -prefix_ typename satcom::pkf::Parse_ListS::size_type -satcom::pkf::Parse_ListS::size() +prefix_ typename senf::Parse_ListS::size_type +senf::Parse_ListS::size() const { return std::distance(begin(),end()); } template -prefix_ bool satcom::pkf::Parse_ListS::empty() +prefix_ bool senf::Parse_ListS::empty() const { return begin()==end(); } template -prefix_ typename satcom::pkf::Parse_ListS::iterator -satcom::pkf::Parse_ListS::begin() +prefix_ typename senf::Parse_ListS::iterator +senf::Parse_ListS::begin() const { return iterator(this->i()); } template -prefix_ typename satcom::pkf::Parse_ListS::iterator -satcom::pkf::Parse_ListS::end() +prefix_ typename senf::Parse_ListS::iterator +senf::Parse_ListS::end() const { return iterator(); } template -prefix_ typename satcom::pkf::Parse_ListS::range_type -satcom::pkf::Parse_ListS::range() +prefix_ typename senf::Parse_ListS::range_type +senf::Parse_ListS::range() const { return std::make_pair(begin(),end()); } template -prefix_ typename satcom::pkf::Parse_ListS::range_type -satcom::pkf::Parse_ListS::value() +prefix_ typename senf::Parse_ListS::range_type +senf::Parse_ListS::value() const { return range(); } /////////////////////////////////////////////////////////////////////////// -// satcom::pkf::impl::Parse_ListS_iterator +// senf::impl::Parse_ListS_iterator template prefix_ -satcom::pkf::impl::Parse_ListS_iterator::Parse_ListS_iterator() +senf::impl::Parse_ListS_iterator::Parse_ListS_iterator() : i_(), atEnd_(true) {} template -prefix_ -satcom::pkf::impl::Parse_ListS_iterator:: +prefix_ +senf::impl::Parse_ListS_iterator:: Parse_ListS_iterator(Iterator const & i) : i_(i), atEnd_(false) { @@ -106,7 +106,7 @@ Parse_ListS_iterator(Iterator const & i) } template -prefix_ Iterator satcom::pkf::impl::Parse_ListS_iterator::raw() +prefix_ Iterator senf::impl::Parse_ListS_iterator::raw() const { return i_; @@ -114,14 +114,14 @@ prefix_ Iterator satcom::pkf::impl::Parse_ListS_iterator prefix_ Parser -satcom::pkf::impl::Parse_ListS_iterator::dereference() +senf::impl::Parse_ListS_iterator::dereference() const { return Parser(i_); } template -prefix_ bool satcom::pkf::impl::Parse_ListS_iterator:: +prefix_ bool senf::impl::Parse_ListS_iterator:: equal(Parse_ListS_iterator const & other) const { @@ -135,7 +135,7 @@ equal(Parse_ListS_iterator const & other) } template -prefix_ void satcom::pkf::impl::Parse_ListS_iterator::increment() +prefix_ void senf::impl::Parse_ListS_iterator::increment() { BOOST_ASSERT( !atEnd_ ); i_ += dereference().bytes(); @@ -143,49 +143,49 @@ prefix_ void satcom::pkf::impl::Parse_ListS_iterator:: } /////////////////////////////////////////////////////////////////////////// -// satcom::pkf::Parse_ListS_wrapper +// senf::Parse_ListS_wrapper template template -prefix_ satcom::pkf::Parse_ListS_wrapper:: +prefix_ senf::Parse_ListS_wrapper:: Parse_ListS_wrapper(Parse_ListS const & list, Container & container) : i_(list.i()-container.begin()), container_(container) {} template -prefix_ typename satcom::pkf::Parse_ListS_wrapper::size_type -satcom::pkf::Parse_ListS_wrapper::size() +prefix_ typename senf::Parse_ListS_wrapper::size_type +senf::Parse_ListS_wrapper::size() const { return std::distance(begin(),end()); } template -prefix_ bool satcom::pkf::Parse_ListS_wrapper::empty() +prefix_ bool senf::Parse_ListS_wrapper::empty() const { return begin()==end(); } template -prefix_ typename satcom::pkf::Parse_ListS_wrapper::iterator -satcom::pkf::Parse_ListS_wrapper::begin() +prefix_ typename senf::Parse_ListS_wrapper::iterator +senf::Parse_ListS_wrapper::begin() const { return iterator(container_.begin()+i_); } template -prefix_ typename satcom::pkf::Parse_ListS_wrapper::iterator -satcom::pkf::Parse_ListS_wrapper::end() +prefix_ typename senf::Parse_ListS_wrapper::iterator +senf::Parse_ListS_wrapper::end() const { return iterator(); } template -prefix_ typename satcom::pkf::Parse_ListS_wrapper::range_type -satcom::pkf::Parse_ListS_wrapper::range() +prefix_ typename senf::Parse_ListS_wrapper::range_type +senf::Parse_ListS_wrapper::range() const { return std::make_pair(begin(),end()); @@ -197,5 +197,8 @@ satcom::pkf::Parse_ListS_wrapper::range() // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: