X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.cc;h=9b1d68aa6aebf94e79f314cb4cc5406c15de799e;hb=9a988902090d28007578e93bffd809f6bd913155;hp=ef5752f34c41f98df4d5606598eaca296e8f15f8;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Packets/Packet.cc b/Packets/Packet.cc index ef5752f..9b1d68a 100644 --- a/Packets/Packet.cc +++ b/Packets/Packet.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -76,7 +76,7 @@ prefix_ senf::Packet::interpreter_list::iterator senf::impl::PacketImpl::appendInterpreter(Packet * p) { BOOST_ASSERT( p->impl_ == 0 ); - + this->refcount_ += p->refcount_; SATCOM_PKF_REFC_MSG("] PacketImpl::appendInterpreter (" << this << "): refcount_ = " << refcount_ << "\n"); p->impl_ = this; @@ -167,7 +167,7 @@ prefix_ void senf::impl::PacketImpl::packet_add_ref(Packet const * p) } prefix_ void senf::impl::PacketImpl::packet_release(Packet * p) -{ +{ bool del (p->release()); if (p->impl_ && p->impl_->release()) // In this case, del is certainly false here. p might @@ -187,8 +187,8 @@ prefix_ senf::Packet::ptr senf::Packet::next() if (n == this->impl_->interpreters_.end()) { if (this->parsed_) return ptr(0); - // FIXME: v_nextInterpreter return bool? new Interpreter to be - // added ? hmm ... this however is quite suboptimal ... + /* \fixme v_nextInterpreter return bool? new Interpreter to be + added ? hmm ... this however is quite suboptimal ... */ this->v_nextInterpreter(); this->parsed_ = true; n = boost::next(this->self_); @@ -270,8 +270,8 @@ prefix_ void senf::Packet::erase(iterator first, iterator last) size_type index(first-impl_->data_.begin()); size_type sz(last-first); BOOST_ASSERT( index >= begin_ && index < end_ && sz <= end_-index ); - // FIXME: Here we should assert, that no bytes belonging to the - // next iterator are deleted ... + /** \fixme Here we should assert, that no bytes belonging to the + next iterator are deleted ... */ impl_->data_.erase(first,last); impl_->updateIterators(index,-sz,self_,INSIDE); } @@ -291,5 +291,8 @@ prefix_ void senf::Packet::dump(std::ostream & os) // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: