|
INET Framework for OMNeT++/OMNEST
|
#include <portTable.h>
Classes | |
| struct | s_port |
Public Types | |
| enum | e_port_state { OFF = 0, BLOCKING = 1, DISCARTING = 2, LEARNING = 3, FORWARDING = 4 } |
| typedef enum PortTable::e_port_state | tPortState |
| typedef struct PortTable::s_port | tPort |
| typedef std::vector< tPort > | tPortList |
Public Member Functions | |
| tPort | getPort (int) |
| tPortState | getState (int) |
| void | setState (int, tPortState) |
| void | setState (std::vector< int > &, tPortState) |
| void | allState (tPortState) |
| void | allOff () |
| void | off (std::vector< int > &) |
| void | forwarding (std::vector< int > &) |
Protected Member Functions | |
| virtual void | initialize () |
| virtual void | handleMessage (cMessage *msg) |
Private Member Functions | |
| void | initDefault () |
Private Attributes | |
| int | portCount |
| tPortList | list |
Definition at line 22 of file portTable.h.
| typedef struct PortTable::s_port PortTable::tPort |
| typedef std::vector<tPort> PortTable::tPortList |
Definition at line 38 of file portTable.h.
| typedef enum PortTable::e_port_state PortTable::tPortState |
Definition at line 26 of file portTable.h.
{
OFF = 0,
BLOCKING = 1,
DISCARTING = 2,
LEARNING = 3,
FORWARDING = 4,
} tPortState;
| void PortTable::allOff | ( | ) |
Definition at line 64 of file portTable.cc.
| void PortTable::allState | ( | PortTable::tPortState | state | ) |
| void PortTable::forwarding | ( | std::vector< int > & | pList | ) |
Definition at line 77 of file portTable.cc.
{
Enter_Method_Silent();
setState(pList, FORWARDING);
return;
}
| PortTable::tPort PortTable::getPort | ( | int | port | ) |
Definition at line 23 of file portTable.cc.
Referenced by getState().
| PortTable::tPortState PortTable::getState | ( | int | port | ) |
Definition at line 32 of file portTable.cc.
| void PortTable::handleMessage | ( | cMessage * | msg | ) | [protected, virtual] |
Definition at line 106 of file portTable.cc.
{
}
| void PortTable::initDefault | ( | ) | [private] |
Definition at line 87 of file portTable.cc.
Referenced by initialize().
| void PortTable::initialize | ( | ) | [protected, virtual] |
Definition at line 96 of file portTable.cc.
{
portCount = par("portCount");
initDefault();
WATCH_VECTOR(list);
return;
}
| void PortTable::off | ( | std::vector< int > & | pList | ) |
Definition at line 70 of file portTable.cc.
| void PortTable::setState | ( | int | port, |
| PortTable::tPortState | state | ||
| ) |
Definition at line 38 of file portTable.cc.
Referenced by allState(), forwarding(), off(), and setState().
| void PortTable::setState | ( | std::vector< int > & | pList, |
| PortTable::tPortState | state | ||
| ) |
tPortList PortTable::list [private] |
Definition at line 56 of file portTable.h.
Referenced by getPort(), initDefault(), initialize(), and setState().
int PortTable::portCount [private] |
Definition at line 55 of file portTable.h.
Referenced by allState(), getPort(), initDefault(), initialize(), and setState().