X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacket.hh;h=43c88d239c407fc69fb1e92efb91cf9da84b2887;hb=961cf85a6abf2b5f0a7958bbfcd8f72e7b32721b;hp=d6dc393f62207e0760d9e0ab083cb115af1860e0;hpb=3a43b572a2c0028b353d47e86fa7546633d6e2cf;p=senf.git diff --git a/senf/Packets/Packet.hh b/senf/Packets/Packet.hh index d6dc393..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. */ @@ -242,7 +243,7 @@ namespace senf { Packet first() const; ///< Return first packet in chain - template OtherPacket first() const; + template OtherPacket first() const; ///< Return first packet in chain and cast /**< \throws std::bad_cast if the first() packet is not of type \a OtherPacket */ @@ -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;