#include <IntegerizedStack.h>
|
| IntegerizedStack (value_t v=0) |
|
value_t | pop () |
|
value_t | pop (value_t modulus) |
|
void | push (value_t x) |
|
void | push (value_t x, value_t modulus) |
|
std::vector< value_t > | split (size_t n) |
| Split into n children – this is the same as looping and popping, but provides a nicer interface NOTE here that this is not just n pops – the last remaining amount is returned as the last value in the vector. NOTE: After doing this, the value=0 (since it's been poped into split) More...
|
|
value_t | get_value () const |
|
bool | empty () const |
|
void | operator= (value_t z) |
|
void | operator-= (value_t x) |
|
void | operator+= (value_t x) |
|
- Author
- piantado
- Date
- 09/06/20
◆ IntegerizedStack()
IntegerizedStack::IntegerizedStack |
( |
value_t |
v = 0 | ) |
|
|
inline |
◆ empty()
bool IntegerizedStack::empty |
( |
| ) |
const |
|
inline |
◆ get_value()
value_t IntegerizedStack::get_value |
( |
| ) |
const |
|
inline |
◆ mod_decode()
◆ mod_encode()
◆ mod_pop()
◆ operator+=()
void IntegerizedStack::operator+= |
( |
value_t |
x | ) |
|
|
inline |
◆ operator-=()
void IntegerizedStack::operator-= |
( |
value_t |
x | ) |
|
|
inline |
◆ operator=()
void IntegerizedStack::operator= |
( |
value_t |
z | ) |
|
|
inline |
◆ pop() [1/2]
value_t IntegerizedStack::pop |
( |
| ) |
|
|
inline |
◆ pop() [2/2]
value_t IntegerizedStack::pop |
( |
value_t |
modulus | ) |
|
|
inline |
◆ push() [1/2]
void IntegerizedStack::push |
( |
value_t |
x | ) |
|
|
inline |
◆ push() [2/2]
void IntegerizedStack::push |
( |
value_t |
x, |
|
|
value_t |
modulus |
|
) |
| |
|
inline |
◆ rosenberg_strong_decode()
◆ rosenberg_strong_encode()
◆ rosenberg_strong_pop()
◆ split()
std::vector<value_t> IntegerizedStack::split |
( |
size_t |
n | ) |
|
|
inline |
Split into n children – this is the same as looping and popping, but provides a nicer interface NOTE here that this is not just n pops – the last remaining amount is returned as the last value in the vector. NOTE: After doing this, the value=0 (since it's been poped into split)
- Parameters
-
- Returns
◆ value
value_t IntegerizedStack::value |
|
protected |
The documentation for this class was generated from the following file: