dejavu
Fast probabilistic symmetry detection.
Loading...
Searching...
No Matches
dejavu::ds::stack_t< T > Class Template Reference

Stack datastructure. More...

#include <ds.h>

Public Member Functions

void add (T &t)
 
void reserve (int n)
 
bool empty ()
 
pop ()
 

Detailed Description

template<class T>
class dejavu::ds::stack_t< T >

Stack datastructure.

Template Parameters
TType of elements stored on the stack.

Definition at line 43 of file ds.h.

Member Function Documentation

◆ add()

template<class T >
void dejavu::ds::stack_t< T >::add ( T &  t)
inline

Add an element t to the queue.

Parameters
tElement to be added.

Definition at line 51 of file ds.h.

◆ empty()

template<class T >
bool dejavu::ds::stack_t< T >::empty ( )
inline
Returns
Whether the queue is empty.

Definition at line 66 of file ds.h.

◆ pop()

template<class T >
T dejavu::ds::stack_t< T >::pop ( )
inline

Pop an element from the queue and return it.

Returns
The element popped from the queue.

Definition at line 75 of file ds.h.

◆ reserve()

template<class T >
void dejavu::ds::stack_t< T >::reserve ( int  n)
inline

Reserve space for at least
elements.

Parameters
nSpace to be reserved.

Definition at line 59 of file ds.h.


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