VizKit
3.3.7
|
Queue of notifications. More...
#include <VisualNotificationQueue.h>
Static Public Member Functions | |
static VisualNotificationQueue * | getInstance (void) |
Returns a pointer to the instance. | |
static void | dispose (void) |
Cleans up the VisualNotificationQueue singleton. | |
static void | push (VisualNotification &aNotification) |
Pushes a Notification at the end of the VisualNotificationQueue. | |
static VisualNotification | pop (void) |
Erases the top VisualNotification of the VisualNotificationQueue. | |
static size_t | size (void) |
Returns the number of items currently stored in VisualNotificationQueue. | |
static void | update (void) |
Updates the notification queue with the most recent input notifications. | |
Private Types | |
typedef std::deque < VisualNotification > | NotificationQueue |
A NotificationQueue is a dequeue of notifications. | |
typedef NotificationQueue::iterator | NotificationQueueIterator |
A NotificationQueueIterator is an iterator of the NotificationQueue. | |
Private Member Functions | |
VisualNotificationQueue () | |
The constructor. | |
~VisualNotificationQueue () | |
The destructor. | |
VisualNotificationQueue (const VisualNotificationQueue &other) | |
Copy constructor. | |
VisualNotificationQueue & | operator= (const VisualNotificationQueue &other) |
Assignment operator. | |
Private Attributes | |
NotificationQueue | notificationQueue |
The queue of the notifications. | |
NotificationQueue | inputNotificationQueue |
Input queue of notifications. | |
Static Private Attributes | |
static VisualNotificationQueue * | visualNotificationQueueInstance = NULL |
VisualNotificationQueue is a singleton class. |
Queue of notifications.
Singleton.
typedef std::deque<VisualNotification> VizKit::VisualNotificationQueue::NotificationQueue [private] |
A NotificationQueue is a dequeue of notifications.
typedef NotificationQueue::iterator VizKit::VisualNotificationQueue::NotificationQueueIterator [private] |
A NotificationQueueIterator is an iterator of the NotificationQueue.
VisualNotificationQueue::VisualNotificationQueue | ( | ) | [private] |
The constructor.
VisualNotificationQueue is a singleton class. The constructor is private. New instance of class can only be created internally.
VisualNotificationQueue::~VisualNotificationQueue | ( | ) | [private] |
The destructor.
VisualNotificationQueue is a singleton class. The destructor is private. Instance of class can only be destructed internally.
VizKit::VisualNotificationQueue::VisualNotificationQueue | ( | const VisualNotificationQueue & | other | ) | [private] |
Copy constructor.
other | Another VisualNotificationQueue. |
void VisualNotificationQueue::dispose | ( | void | ) | [static] |
Cleans up the VisualNotificationQueue singleton.
VisualNotificationQueue * VisualNotificationQueue::getInstance | ( | void | ) | [static] |
Returns a pointer to the instance.
Initializes the VisualNotificationQueue class if neccessary. The VisualNotificationQueue is of singleton type.
VisualNotificationQueue& VizKit::VisualNotificationQueue::operator= | ( | const VisualNotificationQueue & | other | ) | [private] |
Assignment operator.
VisualNotification VisualNotificationQueue::pop | ( | void | ) | [static] |
Erases the top VisualNotification of the VisualNotificationQueue.
void VisualNotificationQueue::push | ( | VisualNotification & | aNotification | ) | [static] |
Pushes a Notification at the end of the VisualNotificationQueue.
aNotification | The VisualNotification. |
size_t VisualNotificationQueue::size | ( | void | ) | [static] |
Returns the number of items currently stored in VisualNotificationQueue.
void VisualNotificationQueue::update | ( | void | ) | [static] |
Updates the notification queue with the most recent input notifications.
Input queue of notifications.
The queue of the notifications.
VisualNotificationQueue * VisualNotificationQueue::visualNotificationQueueInstance = NULL [static, private] |
VisualNotificationQueue is a singleton class.
Pointer to private instance is handled internally.