[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
deque in fq.cc
Hi,
I am new to NS and C++. I have a question regarding deque function calls in fq.cc.
The following code is in function update().
Queue * q = fs_[i].q_;
if (q != 0) {
if (fs_[i].hol_ == 0) {
Packet* p = q->deque();
My question is this: Which deque will be called when "Packet* p = q->deque();" is executed?
A similar question about the deque function calls in drop-tail.cc:
Packet* DropTail::deque()
{
return q_->deque();
}
Which function is called? I think it should call the virtual function function in PacketQueue class (in
queue.h), but it didn't. Anyone can give me some help?
Sean