Observer for the Stack class.
More...
#include <memory/stack.h>
template<typename T>
class TuringSim::Memory::Stack::StackObserver< T >
Observer for the Stack class.
Definition at line 429 of file stack.h.
◆ StackObserver()
Construct an observer for the stack in parameter.
- Parameters
-
| [in] | stack | the stack to bind. |
The stack is captured by const reference.
Definition at line 437 of file stack.h.
◆ getAllocatedSize()
Return the allocated space.
- Returns
- the allocated size on the stack.
Definition at line 449 of file stack.h.
◆ getEnabledFree()
Check whether the stack deallocate space when the used space is small enough.
- Returns
- whether free is enabled.
Definition at line 457 of file stack.h.
◆ getFreeSpace()
Return the unused allocated stack.
- Returns
- the free space on the stack.
Definition at line 445 of file stack.h.
◆ getSize()
Return the current size of the stack.
- Returns
- the size of the stack.
Definition at line 441 of file stack.h.
◆ getSizeFactor()
Get the size factor.
- Returns
- the current size factor.
Definition at line 461 of file stack.h.
◆ getStack()
Return the stack.
- Returns
- a const reference to the stack.
Definition at line 453 of file stack.h.
The documentation for this class was generated from the following file: