Description:
.
Embedded Classes:
LDPStubRepository::lessThan
Data Fields | ||
private | private: multiset<LDPPacketStub*, LDPStubRepository::lessThan> | s |
private | multiset<LDPPacketStub*, LDPStubRepository::lessThan>::iterator | position |
private | map<int, int> | next_index |
Constructors / Destructor | |
public | LDPStubRepository()Constructor. |
public | ~LDPStubRepository() |
Methods | |||
public | virtual | int | getNextIndex(int product)
|
public | virtual | bool | addPacket(LDPPacketStub* stub)Returns true if we could determine the LDP that the packet belongs to - including if we are sure the packet is part of a new LDP sets the LDP in the packet. Otherwise the packet is not added to the repository and returns false. |
public | virtual | LDPStub* | addPacket(LDPPacket* packet)Add an actual packet. returns the LDP that the packet belongs to or NULL if that couldn't be determined. |
public | void | initWith(LDPPacket* packet, int index)Add a packet with a known LDP index. the index must be unique, in otherwords only use this method for one packet from a particular LDP. |
Operators |