A simple stack, used internally for keeping track of analog input channels as they are read. More...
#include <Stack.h>
A simple stack, used internally for keeping track of analog input channels as they are read.
This stack is really just an array with a pointer to the most recent item, and memory is allocated at compile time.
T | the kind of numbers (or other things) to store. |
NUM_ITEMS | the maximum number of items the stack will need to hold. |
Public Member Functions | |
Stack () | |
Constructor. | |
void | push (T item) |
Put an item on the stack. More... | |
T | pop () |
Get the item on top of the stack. More... | |
|
inline |