#include <Fw/DataStructures/Stack.hpp>
|
template<typename TT , FwSizeType CC> |
class | StackTester |
|
template<typename T, FwSizeType C>
class Fw::Stack< T, C >
Definition at line 16 of file Stack.hpp.
◆ Stack() [1/2]
template<typename T, FwSizeType C>
Zero-argument constructor.
Definition at line 37 of file Stack.hpp.
◆ Stack() [2/2]
template<typename T, FwSizeType C>
Copy constructor.
Definition at line 40 of file Stack.hpp.
◆ ~Stack()
template<typename T, FwSizeType C>
◆ at()
template<typename T, FwSizeType C>
Get an item at an index. Index 0 is the rightmost (latest) element in the stack. Increasing indices go from right to left. Fails an assertion if the index is out of range.
- Returns
- The item
- Parameters
-
Implements Fw::StackBase< T >.
Definition at line 86 of file Stack.hpp.
◆ clear()
template<typename T, FwSizeType C>
◆ getCapacity()
template<typename T, FwSizeType C>
Get the capacity (maximum number of items stored in the stack)
- Returns
- The capacity
Implements Fw::SizedContainer.
Definition at line 79 of file Stack.hpp.
◆ getSize()
template<typename T, FwSizeType C>
◆ operator=()
template<typename T, FwSizeType C>
◆ pop()
template<typename T, FwSizeType C>
Pop an item (remove from the right)
- Returns
- SUCCESS if item popped
- Parameters
-
Implements Fw::StackBase< T >.
Definition at line 68 of file Stack.hpp.
◆ push()
template<typename T, FwSizeType C>
Push an item (push on the right)
- Returns
- SUCCESS if item pushed
- Parameters
-
Implements Fw::StackBase< T >.
Definition at line 61 of file Stack.hpp.
◆ StackTester
template<typename T, FwSizeType C>
template<typename TT , FwSizeType CC>
The documentation for this class was generated from the following file: