1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0024742: Remove rarely used collection classes: Stack

Generic class TCollection_Stack removed (along with TCollection_StackIterator and TCollection_StackNode).

Code using TCollection_Stack changed to equivalent use of TCollection_List (replacing Push -> Prepend, Top -> First, Pop -> RemoveFirst).
This commit is contained in:
dln
2014-04-08 14:22:56 +04:00
committed by abv
parent bd2de3965e
commit 6af4fe1c46
41 changed files with 73 additions and 986 deletions

View File

@@ -21,7 +21,7 @@
#include <OpenGl_Element.hxx>
#include <OpenGl_Light.hxx>
#include <NCollection_Stack.hxx>
#include <NCollection_List.hxx>
//! Defines interface for OpenGL state.
class OpenGl_StateInterface
@@ -44,7 +44,7 @@ protected:
Standard_Size myIndex; //!< Current state index
Standard_Size myNextIndex; //!< Next state index
NCollection_Stack<Standard_Size> myStateStack; //!< Stack of previous states.
NCollection_List<Standard_Size> myStateStack; //!< Stack of previous states.
};