Open CASCADE Technology 7.8.2.dev
Public Types | Public Member Functions
OpenGl_LayerList::OpenGl_LayerStack Class Reference

Stack of references to existing layers of predefined maximum size. More...

#include <OpenGl_LayerList.hxx>

Public Types

typedef NCollection_Array1< constGraphic3d_Layer * >::const_iterator const_iterator
 
typedef NCollection_Array1< constGraphic3d_Layer * >::iterator iterator
 

Public Member Functions

void Allocate (Standard_Integer theSize)
 Reallocate internal buffer of the stack.
 
void Clear ()
 Clear stack.
 
void Push (const OpenGl_Layer *theLayer)
 Push a new layer reference to the stack.
 
const_iterator Origin () const
 Returns iterator to the origin of the stack.
 
iterator Back () const
 Returns iterator to the back of the stack (after last item added).
 
iterator Origin ()
 Returns iterator to the origin of the stack.
 
Standard_Boolean IsEmpty () const
 Returns true if nothing has been pushed into the stack.
 

Detailed Description

Stack of references to existing layers of predefined maximum size.

Member Typedef Documentation

◆ const_iterator

◆ iterator

Member Function Documentation

◆ Allocate()

void OpenGl_LayerList::OpenGl_LayerStack::Allocate ( Standard_Integer  theSize)
inline

Reallocate internal buffer of the stack.

◆ Back()

iterator OpenGl_LayerList::OpenGl_LayerStack::Back ( ) const
inline

Returns iterator to the back of the stack (after last item added).

◆ Clear()

void OpenGl_LayerList::OpenGl_LayerStack::Clear ( )
inline

Clear stack.

◆ IsEmpty()

Standard_Boolean OpenGl_LayerList::OpenGl_LayerStack::IsEmpty ( ) const
inline

Returns true if nothing has been pushed into the stack.

◆ Origin() [1/2]

iterator OpenGl_LayerList::OpenGl_LayerStack::Origin ( )
inline

Returns iterator to the origin of the stack.

◆ Origin() [2/2]

const_iterator OpenGl_LayerList::OpenGl_LayerStack::Origin ( ) const
inline

Returns iterator to the origin of the stack.

◆ Push()

void OpenGl_LayerList::OpenGl_LayerStack::Push ( const OpenGl_Layer theLayer)
inline

Push a new layer reference to the stack.


The documentation for this class was generated from the following file: