class QueuedEvents

Provides an interface to many queues of events

Public Methods

[more] QueuedEvents()
Default constructor
[more] ~QueuedEvents()
Destructor
[more]QueuedEventsItr startQueue(const ID tokenId)
[more]bool enqueue(const ID tokenId, const ProcessEvent event, const ID resource, const double amount)
Add an event to the event list for a particular token
[more]bool enqueue(const QueuedEventsItr& itr, const ProcessEvent event, const ID resource, const double amount)
[more]bool dequeue(const ID tokenId)
Remove an event from the token's event list.
[more]bool dequeue(QueuedEventsItr& itr)
[more]EventData front(const ID tokenId) const
Get the next event and resource this event will be performed on
[more]EventData front(const QueuedEventsConstItr& itr) const
[more]bool find(const ID tokenId) const
Finds the token in the queue
[more]QueuedEventsItr findItr(const ID tokenId)
[more]SIZE size(void) const
[more]SIZE size(const ID tokenId) const
Get the number of events that the token has pending
[more]SIZE size(const QueuedEventsConstItr& itr) const
[more]bool empty(const ID tokenID) const
Checks to see if the queue associated with the tokenID is empty
[more]bool empty(QueuedEventsItr& itr) const
[more]bool set(const ID tokenId, const queue <EventData> & sequence)
Set the token's event list to the queue passed as an argument
[more]void clear(const ID tokenID)
Deletes the token's event list
[more]void clear(QueuedEventsItr& itr)
[more]void clearAll()
Deletes all event lists


Documentation

This object is a convienience that helps keep track of what tokens need what services next.
o QueuedEvents()

o ~QueuedEvents()

oQueuedEventsItr startQueue(const ID tokenId)

obool enqueue(const ID tokenId, const ProcessEvent event, const ID resource, const double amount)
This method adds on something else the token needs to do in order to accomplish a task. Each event in the queue is a low-level event that has come from a higher-level event.

obool enqueue(const QueuedEventsItr& itr, const ProcessEvent event, const ID resource, const double amount)

obool dequeue(const ID tokenId)

obool dequeue(QueuedEventsItr& itr)

oEventData front(const ID tokenId) const

oEventData front(const QueuedEventsConstItr& itr) const

obool find(const ID tokenId) const
Returns:
true if found, false if not.

oQueuedEventsItr findItr(const ID tokenId)

oSIZE size(void) const

oSIZE size(const ID tokenId) const

oSIZE size(const QueuedEventsConstItr& itr) const

obool empty(const ID tokenID) const
Note that if no queue exists, it is regarded as empty.
Returns:
true if the queue associated with the tokenID is empty. False otherwise

obool empty(QueuedEventsItr& itr) const

obool set(const ID tokenId, const queue <EventData> & sequence)

ovoid clear(const ID tokenID)

ovoid clear(QueuedEventsItr& itr)

ovoid clearAll()


This class has no child classes.
Author:
John Oleszkiewicz

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.