File: NCollection_DefineStack.hxx

package info (click to toggle)
opencascade 6.2-7
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 444,652 kB
  • ctags: 256,750
  • sloc: cpp: 1,150,123; ansic: 225,762; tcl: 30,130; makefile: 12,619; sh: 7,958; xml: 3,981; lisp: 283; java: 212; csh: 203; perl: 15
file content (32 lines) | stat: -rw-r--r-- 1,160 bytes parent folder | download | duplicates (5)
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
// File:         NCollection_DefineStack.hxx
// Created:      17.04.02 10:12:48
//               <a-kartomin@opencascade.com>
// Author:       Alexander Kartomin (akm)
//            Automatically created from NCollection_Stack.hxx by GAWK
// Copyright:    Open Cascade 2002
//
// Purpose:      A stack is a structure where item can be added and
//               removed from the top. Like a stack of plates  in a
//               kitchen. The   last entered item  will be   be the
//               first  removed. This  is  called  a  LIFO (last In First Out).
//               Inherits BaseList, adding the data item to each node.
//               


#ifndef NCollection_DefineStack_HeaderFile
#define NCollection_DefineStack_HeaderFile

#include <NCollection_DefineBaseCollection.hxx>
#include <NCollection_Stack.hxx>

#ifdef WNT
// Disable the warning "operator new unmatched by delete"
#pragma warning (disable:4291)
#endif

// **************************************** Template for  Stack  class ********

#define DEFINE_STACK(_ClassName_, _BaseCollection_, TheItemType)               \
        typedef NCollection_Stack<TheItemType > _ClassName_;

#endif