C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

A stack of objects. More...

#include <templ_stack.h>

+ Inheritance diagram for SStack< Type >:
+ Collaboration diagram for SStack< Type >:

Public Member Functions

 SStack (size_t i_upper=0, uint16 i_delta=1)
 Constructor.
 
void Push (const Type &obj)
 Add an element to the stack.
 
Type & Pop ()
 Retrieve one element from the stack, if nullptr is returned then the bottom of stack is reached. More...
 
Type & Top () const
 The top element of the stack (the last added). More...
 

Detailed Description

template<class Type>
class SStack< Type >

A stack of objects.

A stack of objects.
To organize stack SArray is used as the builder, and all redundant is cut by using a private inheritance.

Member Function Documentation

◆ Pop()

template<class Type >
Type & SStack< Type >::Pop

Retrieve one element from the stack, if nullptr is returned then the bottom of stack is reached.

Retrieve one element from the stack.

◆ Top()

template<class Type >
Type & SStack< Type >::Top

The top element of the stack (the last added).

The top element of the stack.


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