AddressPortLookupTable Class Reference

#include <NetAddress.hh>

Collaboration diagram for AddressPortLookupTable:

Collaboration graph
[legend]

Public Member Functions

 AddressPortLookupTable ()
virtual ~AddressPortLookupTable ()
void * Add (netAddressBits address1, netAddressBits address2, Port port, void *value)
Boolean Remove (netAddressBits address1, netAddressBits address2, Port port)
void * Lookup (netAddressBits address1, netAddressBits address2, Port port)

Private Attributes

HashTablefTable

Friends

class Iterator

Data Structures

class  Iterator

Detailed Description

Definition at line 112 of file NetAddress.hh.


Constructor & Destructor Documentation

AddressPortLookupTable::AddressPortLookupTable (  ) 

Definition at line 226 of file NetAddress.cpp.

00227   : fTable(HashTable::create(3)) { // three-word keys are used
00228 }

AddressPortLookupTable::~AddressPortLookupTable (  )  [virtual]

Definition at line 230 of file NetAddress.cpp.

References fTable.

00230                                                 {
00231   delete fTable;
00232 }


Member Function Documentation

void * AddressPortLookupTable::Add ( netAddressBits  address1,
netAddressBits  address2,
Port  port,
void *  value 
)

Definition at line 234 of file NetAddress.cpp.

References HashTable::Add(), fTable, and Port::num().

Referenced by GroupsockLookupTable::AddNew(), and RTCPInstance::setSpecificRRHandler().

00236                                                           {
00237   int key[3];
00238   key[0] = (int)address1;
00239   key[1] = (int)address2;
00240   key[2] = (int)port.num();
00241   return fTable->Add((char*)key, value);
00242 }

Boolean AddressPortLookupTable::Remove ( netAddressBits  address1,
netAddressBits  address2,
Port  port 
)

Definition at line 254 of file NetAddress.cpp.

References fTable, Port::num(), and HashTable::Remove().

Referenced by GroupsockLookupTable::Remove(), and RTCPInstance::unsetSpecificRRHandler().

00256                                                   {
00257   int key[3];
00258   key[0] = (int)address1;
00259   key[1] = (int)address2;
00260   key[2] = (int)port.num();
00261   return fTable->Remove((char*)key);
00262 }

void * AddressPortLookupTable::Lookup ( netAddressBits  address1,
netAddressBits  address2,
Port  port 
)

Definition at line 244 of file NetAddress.cpp.

References fTable, HashTable::Lookup(), and Port::num().

Referenced by GroupsockLookupTable::Fetch(), GroupsockLookupTable::Lookup(), RTCPInstance::processIncomingReport(), and RTCPInstance::unsetSpecificRRHandler().

00246                                                 {
00247   int key[3];
00248   key[0] = (int)address1;
00249   key[1] = (int)address2;
00250   key[2] = (int)port.num();
00251   return fTable->Lookup((char*)key);
00252 }


Friends And Related Function Documentation

friend class Iterator [friend]

Definition at line 139 of file NetAddress.hh.


Field Documentation

HashTable* AddressPortLookupTable::fTable [private]

Definition at line 140 of file NetAddress.hh.

Referenced by Add(), Lookup(), Remove(), and ~AddressPortLookupTable().


The documentation for this class was generated from the following files:
Generated on Tue Mar 25 14:39:00 2014 for live by  doxygen 1.5.2