Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(59)

Unified Diff: src/common/packet.h

Issue 62053: Make ns3::Packet inherit from ns3::RefCountBase
Patch Set: Created 14 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/common/packet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/common/packet.h
===================================================================
--- a/src/common/packet.h
+++ b/src/common/packet.h
@@ -137,12 +137,9 @@
* The performance aspects of the Packet API are discussed in
* \ref packetperf
*/
-class Packet
+class Packet : public RefCountBase
{
public:
- void Ref (void) const;
- void Unref (void) const;
-
Ptr<Packet> Copy (void) const;
/**
@@ -414,7 +411,6 @@
Buffer m_buffer;
TagList m_tagList;
PacketMetadata m_metadata;
- mutable uint32_t m_refCount;
static uint32_t m_globalUid;
};
« no previous file with comments | « no previous file | src/common/packet.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b