live
Data Structures | Public Member Functions | Private Attributes | Friends
AddressPortLookupTable Class Reference

#include <NetAddress.hh>

Collaboration diagram for AddressPortLookupTable:
Collaboration graph
[legend]

Data Structures

class  Iterator
 

Public Member Functions

 AddressPortLookupTable ()
 
virtual ~AddressPortLookupTable ()
 
void * Add (struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port, void *value)
 
void * Add (struct sockaddr_storage const &address1, Port port, void *value)
 
Boolean Remove (struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port)
 
Boolean Remove (struct sockaddr_storage const &address1, Port port)
 
void * Lookup (struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port)
 
void * Lookup (struct sockaddr_storage const &address1, Port port)
 
void * RemoveNext ()
 

Private Attributes

HashTablefTable
 

Friends

class Iterator
 

Detailed Description

Definition at line 121 of file NetAddress.hh.

Constructor & Destructor Documentation

◆ AddressPortLookupTable()

AddressPortLookupTable::AddressPortLookupTable ( )

◆ ~AddressPortLookupTable()

virtual AddressPortLookupTable::~AddressPortLookupTable ( )
virtual

Member Function Documentation

◆ Add() [1/2]

void * AddressPortLookupTable::Add ( struct sockaddr_storage const &  address1,
Port  port,
void *  value 
)
inline

Definition at line 131 of file NetAddress.hh.

133 {
134 return Add(address1, nullAddress(), port, value);
135 }
struct sockaddr_storage const & nullAddress(int addressFamily=AF_INET)
void * Add(struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port, void *value)

References Add(), and nullAddress().

◆ Add() [2/2]

void * AddressPortLookupTable::Add ( struct sockaddr_storage const &  address1,
struct sockaddr_storage const &  address2,
Port  port,
void *  value 
)

Referenced by Add().

◆ Lookup() [1/2]

void * AddressPortLookupTable::Lookup ( struct sockaddr_storage const &  address1,
Port  port 
)
inline

Definition at line 149 of file NetAddress.hh.

150 {
151 return Lookup(address1, nullAddress(), port);
152 }
void * Lookup(struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port)

References Lookup(), and nullAddress().

◆ Lookup() [2/2]

void * AddressPortLookupTable::Lookup ( struct sockaddr_storage const &  address1,
struct sockaddr_storage const &  address2,
Port  port 
)

Referenced by Lookup().

◆ Remove() [1/2]

Boolean AddressPortLookupTable::Remove ( struct sockaddr_storage const &  address1,
Port  port 
)
inline

Definition at line 140 of file NetAddress.hh.

141 {
142 return Remove(address1, nullAddress(), port);
143 }
Boolean Remove(struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port)

References nullAddress(), and Remove().

◆ Remove() [2/2]

Boolean AddressPortLookupTable::Remove ( struct sockaddr_storage const &  address1,
struct sockaddr_storage const &  address2,
Port  port 
)

Referenced by Remove().

◆ RemoveNext()

void * AddressPortLookupTable::RemoveNext ( )
inline

Definition at line 154 of file NetAddress.hh.

154{ return fTable->RemoveNext(); }
void * RemoveNext()

References fTable, and HashTable::RemoveNext().

Friends And Related Function Documentation

◆ Iterator

friend class Iterator
friend

Definition at line 169 of file NetAddress.hh.

Field Documentation

◆ fTable

HashTable* AddressPortLookupTable::fTable
private

Definition at line 170 of file NetAddress.hh.

Referenced by RemoveNext().


The documentation for this class was generated from the following file: