View | Details | Raw Unified | Return to bug 275
Collapse All | Expand All

(-)a/src/node/drop-tail-queue.cc (-1 / +1 lines)
 Lines 87-93   DropTailQueue::DoDequeue (void) Link Here 
87
  return p;
87
  return p;
88
}
88
}
89
89
90
Ptr<Packet>
90
Ptr<const Packet>
91
DropTailQueue::DoPeek (void) const
91
DropTailQueue::DoPeek (void) const
92
{
92
{
93
  NS_LOG_FUNCTION (this);
93
  NS_LOG_FUNCTION (this);
(-)a/src/node/drop-tail-queue.h (-1 / +1 lines)
 Lines 47-53   private: Link Here 
47
private:
47
private:
48
  virtual bool DoEnqueue (Ptr<Packet> p);
48
  virtual bool DoEnqueue (Ptr<Packet> p);
49
  virtual Ptr<Packet> DoDequeue (void);
49
  virtual Ptr<Packet> DoDequeue (void);
50
  virtual Ptr<Packet> DoPeek (void) const;
50
  virtual Ptr<const Packet> DoPeek (void) const;
51
51
52
private:
52
private:
53
  std::queue<Ptr<Packet> > m_packets;
53
  std::queue<Ptr<Packet> > m_packets;
(-)a/src/node/queue.cc (-1 / +1 lines)
 Lines 107-113   Queue::DequeueAll (void) Link Here 
107
    }
107
    }
108
}
108
}
109
109
110
Ptr<Packet>
110
Ptr<const Packet>
111
Queue::Peek (void) const
111
Queue::Peek (void) const
112
{
112
{
113
  NS_LOG_FUNCTION (this);
113
  NS_LOG_FUNCTION (this);
(-)a/src/node/queue.h (-2 / +2 lines)
 Lines 68-74   public: Link Here 
68
   * Get a copy of the item at the front of the queue without removing it
68
   * Get a copy of the item at the front of the queue without removing it
69
   * \return 0 if the operation was not successful; the packet otherwise.
69
   * \return 0 if the operation was not successful; the packet otherwise.
70
   */
70
   */
71
  Ptr<Packet> Peek (void) const;
71
  Ptr<const Packet> Peek (void) const;
72
72
73
  /**
73
  /**
74
   * Flush the queue.
74
   * Flush the queue.
 Lines 142-148   private: Link Here 
142
142
143
  virtual bool DoEnqueue (Ptr<Packet> p) = 0;
143
  virtual bool DoEnqueue (Ptr<Packet> p) = 0;
144
  virtual Ptr<Packet> DoDequeue (void) = 0;
144
  virtual Ptr<Packet> DoDequeue (void) = 0;
145
  virtual Ptr<Packet> DoPeek (void) const = 0;
145
  virtual Ptr<const Packet> DoPeek (void) const = 0;
146
146
147
protected:
147
protected:
148
  // called by subclasses to notify parent of packet drops.
148
  // called by subclasses to notify parent of packet drops.

Return to bug 275