Bug 105

Summary: Queue getter methods should be const
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: networkAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: patch

Description Gustavo J. A. M. Carneiro 2007-11-15 06:31:29 UTC
The following Queue methods should be const:

  bool IsEmpty (void);
  bool Peek (Packet &p);
  uint32_t GetNPackets (void);
  uint32_t GetNBytes (void);
  uint32_t GetTotalReceivedBytes (void);
  uint32_t GetTotalReceivedPackets (void);
  uint32_t GetTotalDroppedBytes (void);
  uint32_t GetTotalDroppedPackets (void);
Comment 1 Gustavo J. A. M. Carneiro 2007-11-15 06:33:33 UTC
Peek calls DoPeek, so DoPeek also should be const.
Comment 2 Mathieu Lacage 2007-11-15 06:38:20 UTC
ok. Please, apply.
Comment 3 Gustavo J. A. M. Carneiro 2007-11-15 06:41:53 UTC
Created attachment 90 [details]
patch
Comment 4 Tom Henderson 2007-11-20 00:26:32 UTC
yes, please apply
Comment 5 Mathieu Lacage 2007-11-21 07:43:10 UTC
changeset cb17b9a8625b