X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseListS.ct;h=a96196f844a9bf1dd62708d8b27e95c3e613edb1;hb=145f6a7d0f3a6aaa77b3625351c952d24cb0b8a1;hp=297f2c4a02c1b32e3590968cae9bdcd2eb942b2a;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Packets/ParseListS.ct b/Packets/ParseListS.ct index 297f2c4..a96196f 100644 --- a/Packets/ParseListS.ct +++ b/Packets/ParseListS.ct @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -80,9 +80,8 @@ template template prefix_ void senf::Parse_ListS_wrapper::insert(iterator pos, - Value const & t) + Value const & t) { - // FIXME: What, if pos == end() / default constructed iterator ? size_type ix (pos.raw()-container_.begin()); container_.insert(pos.raw(),t.bytes(),0); Parser(container_.begin()+ix).value(t); @@ -92,7 +91,7 @@ template template prefix_ void senf::Parse_ListS_wrapper::insert(iterator pos, size_type n, - Value const & t) + Value const & t) { size_type ix (pos.raw()-container_.begin()); container_.insert(pos.raw(),n*t.bytes(),0); @@ -105,9 +104,10 @@ template template prefix_ void senf::Parse_ListS_wrapper::insert(iterator pos, - InputIterator f, - InputIterator l) + InputIterator f, + InputIterator l) { + /** \todo Optimize this for random-access and multi-pass iterators */ for (;f!=l;++f,++pos) insert(pos,*f); } @@ -117,5 +117,10 @@ senf::Parse_ListS_wrapper::insert(iterator pos, // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: