daisy::Stack¶
#include <Stack.h>
Inherits from daisy::StackBase< T >
Public Functions¶
Name | |
---|---|
Stack() | |
Stack(std::initializer_list< T > valuesToAdd) | |
template <size_t otherCapacity> |
Stack(const Stack< T, otherCapacity > & other) |
template <size_t otherCapacity> Stack< T, capacity > & |
operator=(const Stack< T, otherCapacity > & other) |
Additional inherited members¶
Public Functions inherited from daisy::StackBase< T >
Name | |
---|---|
~StackBase() | |
bool | PushBack(const T & elementToAdd) |
int | PushBack(std::initializer_list< T > valuesToAdd) |
T | PopBack() |
void | Clear() |
T & | operator[](uint32_t idx) |
const T & | operator[](uint32_t idx) const |
bool | Remove(uint32_t idx) |
int | RemoveAllEqualTo(const T & element) |
bool | Insert(uint32_t idx, const T & item) |
bool | Contains(const T & element) |
size_t | CountEqualTo(const T & element) |
bool | IsEmpty() const |
bool | IsFull() const |
size_t | GetNumElements() const |
size_t | GetCapacity() const |
Protected Functions inherited from daisy::StackBase< T >
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¶
Creates a Stack and copies all values from another Stack
function operator=¶
template <size_t otherCapacity>
inline Stack< T, capacity > & operator=(
const Stack< T, otherCapacity > & other
)
Copies all values from another Stack
---¶
Updated on 2024-01-03 at 19:41:01 +0000