Class daisy::Stack¶
template <typename T, size_t capacity>
#include <Stack.h>
Inherits the following classes: daisy::StackBase
Public Functions¶
| Type | Name |
|---|---|
| Stack () |
|
| Stack (std::initializer_list< T > valuesToAdd) |
|
| Stack (const Stack< T, otherCapacity > & other) |
|
| Stack< T, capacity > & | operator= (const Stack< T, otherCapacity > & other) |
Public Functions inherited from daisy::StackBase¶
See daisy::StackBase
| Type | Name |
|---|---|
| void | Clear () |
| bool | Contains (const T & element) |
| size_t | CountEqualTo (const T & element) |
| size_t | GetCapacity () const |
| size_t | GetNumElements () const |
| bool | Insert (uint32_t idx, const T & item) |
| bool | IsEmpty () const |
| bool | IsFull () const |
| T | PopBack () |
| bool | PushBack (const T & elementToAdd) |
| int | PushBack (std::initializer_list< T > valuesToAdd) |
| bool | Remove (uint32_t idx) |
| int | RemoveAllEqualTo (const T & element) |
| StackBase< T > & | operator= (const StackBase< T > & other) |
| T & | operator[] (uint32_t idx) |
| const T & | operator[] (uint32_t idx) const |
| ~StackBase () |
Protected Functions inherited from daisy::StackBase¶
See daisy::StackBase
| Type | Name |
|---|---|
| StackBase (T * buffer, size_t bufferSize) |
|
| StackBase (T * buffer, size_t bufferSize, std::initializer_list< T > valuesToAdd) |
Detailed Description¶
A simple FILO (stack) buffer with a fixed size (usefull when allocation on the heap is not an option
Public Functions Documentation¶
function Stack [⅓]¶
Creates an empty Stack
function Stack [⅔]¶
Creates a Stack and adds a list of values
function Stack [3/3]¶
template<size_t otherCapacity>
inline daisy::Stack::Stack (
const Stack < T , otherCapacity > & other
)
Creates a Stack and copies all values from another Stack
function operator=¶
template<size_t otherCapacity>
inline Stack < T , capacity > & daisy::Stack::operator= (
const Stack < T , otherCapacity > & other
)
Copies all values from another Stack
The documentation for this class was generated from the following file external-docs/libDaisy/src/util/Stack.h