Modifier for the Stack class.
More...
#include <memory/stack.h>
|
| constexpr | StackModifier (Stack< T > &stack) |
| | Construct an modifier for the stack in parameter. More...
|
| |
| constexpr void | allocate () const |
| | Allocate space on the stack. More...
|
| |
| constexpr void | allocate (size_t additionalSize) const |
| | Allocate e boxes on the stack. More...
|
| |
|
constexpr void | shrink () const |
| | Deallocate all unused space.
|
| |
|
constexpr void | disableFree () const |
| | Disable the deallocating.
|
| |
|
constexpr void | enableFree () const |
| | Enable the deallocating.
|
| |
| constexpr void | setSizeFactor (size_t newSizeFactor) |
| | Set the size factor. More...
|
| |
template<typename T>
class TuringSim::Memory::Stack::StackModifier< T >
Modifier for the Stack class.
Definition at line 468 of file stack.h.
◆ StackModifier()
Construct an modifier for the stack in parameter.
- Parameters
-
| [in] | stack | the stack to bind. |
The stack is captured by reference.
Definition at line 476 of file stack.h.
◆ allocate() [1/2]
Allocate space on the stack.
Multiply the allocated space by the size factor.
Definition at line 481 of file stack.h.
◆ allocate() [2/2]
Allocate e boxes on the stack.
- Parameters
-
| [in] | additionalSize | the size to allocate. |
Definition at line 485 of file stack.h.
◆ setSizeFactor()
Set the size factor.
- Parameters
-
| [in] | newSizeFactor | the new size factor |
- Exceptions
-
Definition at line 503 of file stack.h.
The documentation for this class was generated from the following file: