Stack#

#include <TpltStack.h>
Brief description

How to reference this class#

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Stack <class-template-stack>`
[Stack](#class-template-stack)

Detailed description#

List of Public Methods#

Complete Member Function Documentation#

getBase#

Definition
T * Stack<T>::getBase()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`T * Stack<T>::getBase() <stack-public-t-ptr-stack-t-getbase>`
[T * Stack<T>::getBase()](#stack-public-t-ptr-stack-t-getbase)

isEmpty#

Definition
int Stack<T>::isEmpty() const
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Stack<T>::isEmpty() const <stack-public-int-stack-t-isempty-const>`
[int Stack<T>::isEmpty() const](#stack-public-int-stack-t-isempty-const)

peek#

Definition
T & Stack<T>::peek()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`T & Stack<T>::peek() <stack-public-t-ref-stack-t-peek>`
[T & Stack<T>::peek()](#stack-public-t-ref-stack-t-peek)

pop#

Definition
T & Stack<T>::pop()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`T & Stack<T>::pop() <stack-public-t-ref-stack-t-pop>`
[T & Stack<T>::pop()](#stack-public-t-ref-stack-t-pop)

push#

Definition
int Stack<T>::push(const T &)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int Stack<T>::push(const T &) <stack-public-int-stack-t-push-const-t-ref>`
[int Stack<T>::push(const T &)](#stack-public-int-stack-t-push-const-t-ref)

Stack#

Definition
Stack<T>::Stack(const int t=10)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Stack<T>::Stack(const int t=10) <stack-public-stack-t-stack-const-int-t-equal-10>`
[Stack<T>::Stack(const int t=10)](#stack-public-stack-t-stack-const-int-t-equal-10)

~Stack#

Definition
Stack<T>::~Stack()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Stack<T>::~Stack() <stack-public-stack-t-dtor-stack>`
[Stack<T>::~Stack()](#stack-public-stack-t-dtor-stack)

Attributes Documentation#

base (private)
T* Stack<T>::base
taille (private)
int Stack<T>::taille
top (private)
T* Stack<T>::top