|
| constexpr | TapeModifier (Tape< T > &tape) |
| | Construct a modifier of the tape in parameter. More...
|
| |
| constexpr void | allocateRight () const |
| | Allocate some space on the right half-tape. More...
|
| |
| constexpr void | allocateLeft () const |
| | Allocate some space on the left half-tape. More...
|
| |
| constexpr void | allocate () const |
| | Allocate some space on the tape. More...
|
| |
| constexpr void | allocateRight (size_t additionalSize) const |
| | Allocate some space on the right half-tape. More...
|
| |
| constexpr void | allocateLeft (size_t additionalSize) const |
| | Allocate some space on the left half-tape. More...
|
| |
| constexpr void | allocate (size_t additionalSize) const |
| | Allocate some space on the tape. More...
|
| |
| constexpr void | shrink () const |
| | Deallocate unused tape. More...
|
| |
| constexpr void | setSizeFactor (size_t newSizeFactor) const |
| | Set the resizing factor. More...
|
| |
| constexpr void | setPosition (long long int position) |
| | Change the current position of the I/O head. More...
|
| |
| constexpr T & | operator[] (long long int position) |
| | Get a non-const reference to a cell on the tape. More...
|
| |
template<typename T>
class TuringSim::Memory::Tape::TapeModifier< T >
Modifier for the Tape class.
- Template Parameters
-
| T | the type of the alphabet of the modifiable tape |
The modifier allows to modify private attributes by accessing private methods. For instance, it can be useful to optimize when we know the size needed for the tape. These functions are not directly accessible because these features does not belongs to the abstract model of the tape.
The functions provided by this class are safe. However, it is possible to waste a lot of time by using poorly these features.
Definition at line 558 of file tape.h.