X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseVec.ct;h=4f20faddd7d049a0c78c8bd17944634fbcf2c728;hb=9a988902090d28007578e93bffd809f6bd913155;hp=a34f1c9aefe33b051d2a501cc8f37ef1f44e7b92;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/ParseVec.ct b/Packets/ParseVec.ct index a34f1c9..4f20fad 100644 --- a/Packets/ParseVec.ct +++ b/Packets/ParseVec.ct @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -32,7 +32,7 @@ template template prefix_ void -satcom::pkf::Parse_Vector_wrapper::insert(iterator pos, +senf::Parse_Vector_wrapper::insert(iterator pos, Value const & t) { size_type ix(pos.raw()-container_.begin()); @@ -43,26 +43,27 @@ satcom::pkf::Parse_Vector_wrapper::insert(iterator template template prefix_ void -satcom::pkf::Parse_Vector_wrapper::insert(iterator pos, +senf::Parse_Vector_wrapper::insert(iterator pos, size_type n, Value const & t) { size_type ix(pos.raw()-container_.begin()); shift(pos,n); typename Container::iterator j (container_.begin()+ix); - for (; n; --n, j+=Parser::bytes()) + for (; n; --n, j+=Parser::bytes()) Parser(j).value(t); } template template prefix_ void -satcom::pkf::Parse_Vector_wrapper::insert(iterator pos, +senf::Parse_Vector_wrapper::insert(iterator pos, InputIterator f, InputIterator l) { - // FIXME: This is HORRIBLY inefficient ... we need to specialize - // for random_aPacketRegistry.ess and forward iterators, where we can count the distance + /** \fixme This might be horribly inefficient ... we need to + specialize for random_access and forward iterators, where we + can count the distance */ size_type ix(pos.raw()-container_.begin()); for (;f!=l;++f) { @@ -77,5 +78,8 @@ satcom::pkf::Parse_Vector_wrapper::insert(iterator // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: