Alphabetic Class Index   |   Class Inheritance Tree Index   |   Tool Index

Class: LDPStubRepository

This is a base class.

Description:
.

Embedded Classes:
LDPStubRepository::lessThan

Data Fields
privateprivate: multiset<LDPPacketStub*, LDPStubRepository::lessThan>s
privatemultiset<LDPPacketStub*, LDPStubRepository::lessThan>::iteratorposition
privatemap<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


Alphabetic Class Index   |   Class Inheritance Tree Index   |   Tool Index