![]() |
Peano
|
#include <STDVectorStack.h>
Public Member Functions | |
int | size () const |
T * | set (int index, const T &value) |
Set an entry. | |
const T & | get (int index) const |
T & | get (int index) |
std::string | toString () const |
Protected Member Functions | |
PushBlockStackView (int size, int base, peano4::stacks::STDVectorStack< T > *stack) | |
Constructor. | |
Protected Attributes | |
const int | _size |
const int | _baseElement |
peano4::stacks::STDVectorStack< T > * | _stack |
Friends | |
class | peano4::stacks::STDVectorStack< T > |
Parent is friend. | |
Definition at line 217 of file STDVectorStack.h.
|
protected |
Constructor.
Definition at line 227 of file STDVectorStack.h.
T & peano4::stacks::STDVectorStack< T >::PushBlockStackView::get | ( | int | index | ) |
const T & peano4::stacks::STDVectorStack< T >::PushBlockStackView::get | ( | int | index | ) | const |
T * peano4::stacks::STDVectorStack< T >::PushBlockStackView::set | ( | int | index, |
const T & | value ) |
Set an entry.
But in Peano's context, we only need the move semantics logically, as we only migrate stuff over stacks. Therefore, I tried to play around with move semantics, but this always broke the code. So I thought I'd better stop doing this and use plain old copies here.
Definition at line 252 of file STDVectorStack.h.
References peano4::stacks::STDVectorStack< T >::PushBlockStackView::_baseElement, peano4::stacks::STDVectorStack< T >::PushBlockStackView::_size, peano4::stacks::STDVectorStack< T >::PushBlockStackView::_stack, and assertion2.
int peano4::stacks::STDVectorStack< T >::PushBlockStackView::size | ( | ) | const |
Definition at line 238 of file STDVectorStack.h.
References peano4::stacks::STDVectorStack< T >::PushBlockStackView::_size.
Referenced by peano4.visualisation.input.Patch.Patch::__repr__(), kernel_impl.Enumerator::fetch(), kernel_impl.Enumerator::lower(), and kernel_impl.Enumerator::upper().
std::string peano4::stacks::STDVectorStack< T >::PushBlockStackView::toString | ( | ) | const |
Definition at line 271 of file STDVectorStack.h.
References peano4::stacks::STDVectorStack< T >::PushBlockStackView::_baseElement, and peano4::stacks::STDVectorStack< T >::PushBlockStackView::_size.
|
friend |
Parent is friend.
Definition at line 208 of file STDVectorStack.h.
|
protected |
Definition at line 234 of file STDVectorStack.h.
Referenced by peano4::stacks::STDVectorStack< T >::PushBlockStackView::get(), peano4::stacks::STDVectorStack< T >::PushBlockStackView::get(), peano4::stacks::STDVectorStack< T >::PushBlockStackView::set(), and peano4::stacks::STDVectorStack< T >::PushBlockStackView::toString().
|
protected |
Definition at line 233 of file STDVectorStack.h.
Referenced by peano4::stacks::STDVectorStack< T >::PushBlockStackView::get(), peano4::stacks::STDVectorStack< T >::PushBlockStackView::get(), peano4::stacks::STDVectorStack< T >::PushBlockStackView::set(), peano4::stacks::STDVectorStack< T >::PushBlockStackView::size(), and peano4::stacks::STDVectorStack< T >::PushBlockStackView::toString().
|
protected |
Definition at line 235 of file STDVectorStack.h.
Referenced by peano4::stacks::STDVectorStack< T >::PushBlockStackView::get(), peano4::stacks::STDVectorStack< T >::PushBlockStackView::get(), and peano4::stacks::STDVectorStack< T >::PushBlockStackView::set().