Multicast Routing Modelling In OMNeT++
Public Member Functions | Protected Member Functions | Protected Attributes
PimInterfaceTable Class Reference

Class represents Pim Interface Table. More...

#include <PimInterfaceTable.h>

List of all members.

Public Member Functions

virtual PimInterfacegetInterface (int k)
virtual void addInterface (const PimInterface entry)
virtual int getNumInterface ()
virtual void printPimInterfaces ()
virtual PimInterfacegetInterfaceByIntID (int intID)

Protected Member Functions

virtual void initialize (int stage)
virtual void handleMessage (cMessage *)

Protected Attributes

std::vector< PimInterfacepimIft

Detailed Description

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.


Member Function Documentation

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.

PRINT PIM INTERFACES

Actually not in use. Printout of Table of PIM interfaces

Definition at line 149 of file PimInterfaceTable.cc.

{
        for(std::vector<PimInterface>::iterator i = pimIft.begin(); i < pimIft.end(); i++)
        {
                EV << (*i).info() << endl;
        }

}

Returns entry from PimInterfaceTable with given interface ID.

GET INTERFACE BY INTERFACE ID

The method finds interface in interface table by given interface ID.

Parameters:
intIDID of interface which is wanted.
Returns:
Returns link to wanted record in table.
See also:
getNumInterface()
getInterface()

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");
}

Member Data Documentation

std::vector<PimInterface> PimInterfaceTable::pimIft [protected]

List of PIM interfaces.

Definition at line 71 of file PimInterfaceTable.h.


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