2013-11-28 16:14:42 +01:00
|
|
|
#ifndef I_QUEUE_H
|
|
|
|
#define I_QUEUE_H
|
|
|
|
|
|
|
|
/////////////////////////////////
|
|
|
|
// Created by Sam Svensson 2013//
|
|
|
|
/////////////////////////////////
|
|
|
|
|
|
|
|
namespace Oyster
|
|
|
|
{
|
|
|
|
namespace Queue
|
|
|
|
{
|
|
|
|
template <typename Type>
|
|
|
|
class IQueue
|
|
|
|
{
|
|
|
|
public:
|
2013-11-29 09:18:58 +01:00
|
|
|
|
|
|
|
//---------------------------------------------
|
|
|
|
//standard operations of the std::queue
|
|
|
|
//---------------------------------------------
|
2013-11-28 16:14:42 +01:00
|
|
|
virtual ~IQueue() {};
|
|
|
|
virtual void Push( Type item ) = 0;
|
|
|
|
virtual Type Pop() = 0;
|
|
|
|
|
|
|
|
virtual Type Front() = 0;
|
|
|
|
virtual Type Back() = 0;
|
|
|
|
|
|
|
|
virtual int Size() = 0;
|
|
|
|
virtual bool IsEmpty() = 0;
|
|
|
|
|
|
|
|
virtual void Swap( IQueue<Type> &queue ) = 0;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|