ProcessorQueue

This class objects are used as immitation of Processor queue. Memory economy of it is achieved by not actually storing Packets. Instead, it just stores numbers, representing sizes, timestamps and other parameters needed to estimate metrics of actual Packets.

Method

bool UpdateRequired() const

Returns true if update method call required

Method

void UpdateFrontPacket(std::int32_t src_id, std::int32_t dst_id, std::int32_t size)

Updates the front Packet of the ProcessorQueue

Method

void Push(double time_stamp)

Immitates push of Packet with specified timestamp to the ProcessorQueue

Method

void Pop()

Immitates pop of Packet from the ProcessorQueue

Method

Packet& Front()

Returns the current Packet of the ProcessorQueue

Method

bool Empty() const

Retuns true if the ProcessorQueue is empty

Method

std::size_t Size() const

Returns number of the Packets in the ProcessorQueue