Iridescence 1.00
Embedded Graphic Framework
Loading...
Searching...
No Matches
static_stack< S, T > Class Template Reference

static_stack implements a stack with statically allocated storage space More...

#include <ds_types_stack.h>

Inheritance diagram for static_stack< S, T >:
[legend]

Additional Inherited Members

- Public Member Functions inherited from stack< T >
 stack ()
 Creates an empty stack.
 
 stack (const stack &rhs)=delete
 
void clear (void)
 Clears the stack (removes all elements).
 
size_t capacity (void) const
 Returns the capacity of the stack.
 
size_t size (void) const
 Returns the current size of the stack.
 
bool push (const T &item)
 Pushes an element on the stack.
 
T pop (void)
 Pops the element on the top of the stack. If the stack is empty, this is undefined behaviour.
 
T top (void) const
 Returns the element on the top of the stack without popping it. If the stack is empty, this is undefined behaviour.
 
const T * findFirst (const T &item) const
 Finds the first occurence of the specified element.
 
int32_t findFirstIndex (const T &item) const
 Finds the first occurence of the specified element.
 
const T * findLast (const T &item) const
 Finds the last occurence of the specified element.
 
int32_t findLastIndex (const T &item) const
 Finds the last occurence of the specified element.
 
- Protected Attributes inherited from stack< T >
T * mArray
 
size_t mCapacity
 

Detailed Description

template<size_t S, typename T>
class static_stack< S, T >

static_stack implements a stack with statically allocated storage space


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