Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Pkt_Hash_Entry Class Reference

#include <hash_table.h>

Collaboration diagram for Pkt_Hash_Entry:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Pkt_Hash_Entry ()
 ~Pkt_Hash_Entry ()
void clear_fromagent (From_List *)

Public Attributes

ns_addr_t forwarder_id
bool is_forwarded
bool has_list
int num_from
From_Listfrom_agent
InterestTimertimer

Constructor & Destructor Documentation

Pkt_Hash_Entry::Pkt_Hash_Entry  )  [inline]
 

Definition at line 48 of file hash_table.h.

References ns_addr_t::addr_, forwarder_id, from_agent, has_list, is_forwarded, num_from, ns_addr_t::port_, and timer.

00048                    { 
00049     forwarder_id.addr_ = 0;
00050     forwarder_id.port_ = 0;
00051     is_forwarded = false;
00052     has_list = false; 
00053     num_from=0; 
00054     from_agent=NULL; 
00055     timer=NULL;
00056   }

Pkt_Hash_Entry::~Pkt_Hash_Entry  ) 
 

Definition at line 35 of file hash_table.cc.

References clear_fromagent(), from_agent, and timer.

00035                                 {
00036     clear_fromagent(from_agent);
00037     if (timer != NULL)
00038       delete timer;
00039 }

Here is the call graph for this function:


Member Function Documentation

void Pkt_Hash_Entry::clear_fromagent From_List  ) 
 

Definition at line 42 of file hash_table.cc.

References FROM_NEXT.

Referenced by ~Pkt_Hash_Entry().

00043 {
00044   From_List *cur=list;
00045   From_List *temp = NULL;
00046 
00047   while (cur != NULL) {
00048     temp = FROM_NEXT(cur);
00049     delete cur;
00050     cur = temp;
00051   }
00052 }


Member Data Documentation

ns_addr_t Pkt_Hash_Entry::forwarder_id
 

Definition at line 41 of file hash_table.h.

Referenced by DiffusionProb::ForwardTxFailed(), Pkt_Hash_Entry(), DiffusionRate::ProcessPosReinf(), and Pkt_Hash_Table::put_in_hash().

From_List* Pkt_Hash_Entry::from_agent
 

Definition at line 45 of file hash_table.h.

Referenced by DiffusionProb::consider_new(), DiffusionProb::consider_old(), DiffusionProb::CreateIOList(), Pkt_Hash_Entry(), Pkt_Hash_Table::put_in_hash(), and ~Pkt_Hash_Entry().

bool Pkt_Hash_Entry::has_list
 

Definition at line 43 of file hash_table.h.

Referenced by DiffusionProb::consider_old(), DiffusionProb::CreateIOList(), and Pkt_Hash_Entry().

bool Pkt_Hash_Entry::is_forwarded
 

Definition at line 42 of file hash_table.h.

Referenced by DiffusionProb::consider_old(), DiffusionProb::InterestPropagate(), Pkt_Hash_Entry(), and Pkt_Hash_Table::put_in_hash().

int Pkt_Hash_Entry::num_from
 

Definition at line 44 of file hash_table.h.

Referenced by DiffusionProb::consider_new(), DiffusionProb::consider_old(), Pkt_Hash_Entry(), and Pkt_Hash_Table::put_in_hash().

InterestTimer* Pkt_Hash_Entry::timer
 

Definition at line 46 of file hash_table.h.

Referenced by DiffusionProb::consider_new(), DiffusionProb::consider_old(), Pkt_Hash_Entry(), Pkt_Hash_Table::put_in_hash(), and ~Pkt_Hash_Entry().


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 13:08:01 2004 for NS2.26SourcesOriginal by doxygen 1.3.3