SST 12.1.0
Structural Simulation Toolkit
SST::UninitializedQueue Class Reference

Always uninitialized queue. More...

#include <uninitializedQueue.h>

Inheritance diagram for SST::UninitializedQueue:
SST::ActivityQueue

Public Member Functions

 UninitializedQueue (const std::string &message)
 Create a new Queue. More...
 
bool empty () override
 Returns true if the queue is empty. More...
 
int size () override
 Returns the number of activities in the queue. More...
 
void insert (Activity *activity) override
 Insert a new activity into the queue. More...
 
Activitypop () override
 Remove and return the next activity. More...
 
Activityfront () override
 Returns the next activity. More...
 
virtual bool empty ()=0
 Returns true if the queue is empty. More...
 
virtual int size ()=0
 Returns the number of activities in the queue. More...
 
virtual Activitypop ()=0
 Remove and return the next activity. More...
 
virtual void insert (Activity *activity)=0
 Insert a new activity into the queue. More...
 
virtual Activityfront ()=0
 Returns the next activity. More...
 

Detailed Description

Always uninitialized queue.

Used for debugging, and preventing accidentally sending messages into an incorrect queue

Constructor & Destructor Documentation

◆ UninitializedQueue()

SST::UninitializedQueue::UninitializedQueue ( const std::string &  message)

Create a new Queue.

Parameters
message- Message to print when something attempts to use this Queue

Member Function Documentation

◆ empty()

bool SST::UninitializedQueue::empty ( )
overridevirtual

Returns true if the queue is empty.

Implements SST::ActivityQueue.

◆ front()

Activity * SST::UninitializedQueue::front ( )
overridevirtual

Returns the next activity.

Implements SST::ActivityQueue.

◆ insert()

void SST::UninitializedQueue::insert ( Activity activity)
overridevirtual

Insert a new activity into the queue.

Implements SST::ActivityQueue.

◆ pop()

Activity * SST::UninitializedQueue::pop ( )
overridevirtual

Remove and return the next activity.

Implements SST::ActivityQueue.

◆ size()

int SST::UninitializedQueue::size ( )
overridevirtual

Returns the number of activities in the queue.

Implements SST::ActivityQueue.


The documentation for this class was generated from the following files: