Bug 105 - Queue getter methods should be const
Queue getter methods should be const
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: network
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-15 06:31 UTC by Gustavo J. A. M. Carneiro
Modified: 2007-11-21 07:43 UTC (History)
0 users

See Also:


Attachments
patch (5.36 KB, patch)
2007-11-15 06:41 UTC, Gustavo J. A. M. Carneiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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