Voxeloop  0.1.0
Musical Loop Generation in Voxel World
Stack< T, Container > Class Template Reference

A data structure that works in LIFO principle. More...

#include <Stack.hpp>

Collaboration diagram for Stack< T, Container >:
Collaboration graph

Public Member Functions

 Stack ()
 
bool isEmpty ()
 
bool isFull ()
 
push (T element)
 
pop ()
 
void peek ()
 
top ()
 

Private Attributes

size_t _top
 
stack [MAX_SIZE]
 

Detailed Description

template<class T, class Container = std::deque<T>>
class Stack< T, Container >

A data structure that works in LIFO principle.

Template Parameters
TType of element

Constructor & Destructor Documentation

◆ Stack()

template<class T , class Container = std::deque<T>>
Stack< T, Container >::Stack ( )
inline

Member Function Documentation

◆ isEmpty()

template<class T , class Container = std::deque<T>>
bool Stack< T, Container >::isEmpty ( )
inline

◆ isFull()

template<class T , class Container = std::deque<T>>
bool Stack< T, Container >::isFull ( )
inline

◆ peek()

template<class T , class Container = std::deque<T>>
void Stack< T, Container >::peek ( )
inline

◆ pop()

template<class T , class Container = std::deque<T>>
T Stack< T, Container >::pop ( )
inline

◆ push()

template<class T , class Container = std::deque<T>>
T Stack< T, Container >::push ( element)
inline

◆ top()

template<class T , class Container = std::deque<T>>
T Stack< T, Container >::top ( )
inline

Member Data Documentation

◆ _top

template<class T , class Container = std::deque<T>>
size_t Stack< T, Container >::_top
private

◆ stack

template<class T , class Container = std::deque<T>>
T Stack< T, Container >::stack[MAX_SIZE]
private

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