X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacket.hh;h=43c88d239c407fc69fb1e92efb91cf9da84b2887;hb=961cf85a6abf2b5f0a7958bbfcd8f72e7b32721b;hp=db53195566f32be2ebf4ef5df9328aede46c8078;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Packets/Packet.hh b/senf/Packets/Packet.hh index db53195..43c88d2 100644 --- a/senf/Packets/Packet.hh +++ b/senf/Packets/Packet.hh @@ -171,7 +171,8 @@ namespace senf { // conversion constructors template - Packet(ConcretePacket packet); ///< Copy-construct Packet from ConcretePacket + Packet(ConcretePacket const & packet); + ///< Copy-construct Packet from ConcretePacket /**< This constructor allows to convert an arbitrary ConcretePacket into a general Packet, loosing the protocol specific interface. */ @@ -489,13 +490,13 @@ namespace senf { ///@} protected: - explicit Packet(PacketInterpreterBase::ptr packet); + explicit Packet(PacketInterpreterBase::ptr const & packet); - PacketInterpreterBase::ptr ptr() const; + PacketInterpreterBase::ptr const & ptr() const; private: - Packet checkNext() const; - Packet checkLast() const; + Packet getNext() const; + Packet getLast() const; PacketInterpreterBase::ptr packet_; @@ -610,7 +611,7 @@ namespace senf { into the packet representation. The data will \e not be validated in any way. - \param[in] range Boost.Range + \param[in] range Boost.Range of data to construct packet from. */ #endif @@ -672,7 +673,7 @@ namespace senf { header/interpreter after \a packet in that packets interpreter chain. \param[in] packet Packet to append new packet to. - \param[in] range Boost.Range + \param[in] range Boost.Range of data to construct packet from. */ #endif @@ -752,7 +753,7 @@ namespace senf { private: typedef PacketInterpreter interpreter; - ConcretePacket(typename interpreter::ptr packet_); + ConcretePacket(typename interpreter::ptr const & packet_); typename interpreter::ptr ptr() const;