![]() |
Multicast Routing Modelling In OMNeT++
|
Class represents Pim Interface Table. More...
#include <PimInterfaceTable.h>
Public Member Functions | |
virtual PimInterface * | getInterface (int k) |
virtual void | addInterface (const PimInterface entry) |
virtual int | getNumInterface () |
virtual void | printPimInterfaces () |
virtual PimInterface * | getInterfaceByIntID (int intID) |
Protected Member Functions | |
virtual void | initialize (int stage) |
virtual void | handleMessage (cMessage *) |
Protected Attributes | |
std::vector< PimInterface > | pimIft |
Class represents Pim Interface Table.
It is vector of PimInterface. Class contains methods to work with the table.
Definition at line 68 of file PimInterfaceTable.h.
virtual PimInterface* PimInterfaceTable::getInterface | ( | int | k | ) | [inline, virtual] |
Get pointer to entry of PimInterfaceTable from the object.
Definition at line 77 of file PimInterfaceTable.h.
virtual void PimInterfaceTable::addInterface | ( | const PimInterface | entry | ) | [inline, virtual] |
Add entry to PimInterfaceTable.
Definition at line 78 of file PimInterfaceTable.h.
virtual int PimInterfaceTable::getNumInterface | ( | ) | [inline, virtual] |
Returns number of entries in PimInterfaceTable.
Definition at line 80 of file PimInterfaceTable.h.
void PimInterfaceTable::printPimInterfaces | ( | ) | [virtual] |
PRINT PIM INTERFACES
Actually not in use. Printout of Table of PIM interfaces
Definition at line 149 of file PimInterfaceTable.cc.
PimInterface * PimInterfaceTable::getInterfaceByIntID | ( | int | intID | ) | [virtual] |
Returns entry from PimInterfaceTable with given interface ID.
GET INTERFACE BY INTERFACE ID
The method finds interface in interface table by given interface ID.
intID | ID of interface which is wanted. |
Definition at line 168 of file PimInterfaceTable.cc.
{ for(int i = 0; i < getNumInterface(); i++) { if(intID == getInterface(i)->getInterfaceID()) { return getInterface(i); break; } } return NULL; }
void PimInterfaceTable::handleMessage | ( | cMessage * | msg | ) | [protected, virtual] |
HANDLE MESSAGE
Module does not have any gate, it cannot get messages
Definition at line 133 of file PimInterfaceTable.cc.
{
opp_error("This module doesn't process messages");
}
std::vector<PimInterface> PimInterfaceTable::pimIft [protected] |
List of PIM interfaces.
Definition at line 71 of file PimInterfaceTable.h.