ALBA
albaOpStack.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaOpStack
5 Authors: Silvano Imboden
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16#ifndef __albaOpStack_H__
17#define __albaOpStack_H__
18//----------------------------------------------------------------------------
19// forward references :
20//----------------------------------------------------------------------------
21class albaOp;
22//----------------------------------------------------------------------------
23// albaOpStack :
24//----------------------------------------------------------------------------
27class ALBA_EXPORT albaOpStack
28{
29public:
32
34 bool IsEmpty();
35
37 void Push(albaOp* op);
38
41
43 void Clear();
44
45protected:
47};
48#endif
49
50
51
52
53
54
55
56
57
58
59
60
61
62
albaOp * m_Stack
Definition: albaOpStack.h:46
bool IsEmpty()
Return true is the stack is empty.
void Push(albaOp *op)
Insert op on top od the stack.
albaOp * Pop()
Return the op on the top of the stack, and remove it.
void Clear()
Empty the stack and call delete on every inserted op.
Definition: albaOp.h:51