aboutsummaryrefslogtreecommitdiff
path: root/PDContainer/include/QueueStack.h
blob: eb7240801f9a79adabae2a864daaafc34890fe7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// *********************(c)*2004*********************>
// -holzilib--holzilib--holzilib--holzilib--holzilib->
// ++++PD-External++by+Georg+Holzmann++grh@gmx.at++++>
//
// PDContainer: 
// this is a port of the containers from the C++ STL
// (Standard Template Library)
// for usage see the documentation and PD help files
// for license see readme.txt
//
// HQueueStack.h

#ifndef _h_queue_stack_h__
#define _h_queue_stack_h__


#include "include/ContainerBase.h"


//---------------------------------------------------
/* this is the class of the queue, stack and priority queue
 */
template <class ContainerType, class ContTypeIterator>
class QueueStack : public ContainerBase<ContainerType,ContTypeIterator>
{

 private:

  /* Copy Construction is not allowed
   */
  QueueStack(const QueueStack<ContainerType,ContTypeIterator> &src)
    { }

  /* assignement operator is not allowed
   */
  const QueueStack<ContainerType,ContTypeIterator>& operator = 
    (const QueueStack<ContainerType,ContTypeIterator>&)
    { }

 public:

  /* Standard Constructor
   * no namespace
   */
  QueueStack()
    { }

  /* Destructor
   */
  virtual ~QueueStack() { }

  /* removes the value from the top of
   * the container
   */
  virtual void pop()
    {  this->data_[this->h_namespace_].pop();  }
};



#endif //_h_queue_stack_h__