![]() |
Peano
|
This class represents a whole block of the tree. More...
#include <STDVectorStack.h>
Public Member Functions | |
int | size () const |
const T & | get (int index) const |
T & | get (int index) |
std::string | toString () const |
Protected Member Functions | |
PopBlockStackView (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. | |
This class represents a whole block of the tree.
You can access all element within in random order, or you can pop/push elements. If we grab a block from the tree, it is logically removed from the main stack.
Definition at line 171 of file STDVectorStack.h.
|
protected |
Constructor.
Definition at line 185 of file STDVectorStack.h.
T & peano4::stacks::STDVectorStack< T >::PopBlockStackView::get | ( | int | index | ) |
const T & peano4::stacks::STDVectorStack< T >::PopBlockStackView::get | ( | int | index | ) | const |
int peano4::stacks::STDVectorStack< T >::PopBlockStackView::size | ( | ) | const |
Definition at line 192 of file STDVectorStack.h.
References peano4::stacks::STDVectorStack< T >::PopBlockStackView::_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 >::PopBlockStackView::toString | ( | ) | const |
Definition at line 208 of file STDVectorStack.h.
|
friend |
Parent is friend.
Definition at line 533 of file STDVectorStack.h.
|
protected |
Definition at line 179 of file STDVectorStack.h.
Referenced by peano4::stacks::STDVectorStack< T >::PopBlockStackView::get(), and peano4::stacks::STDVectorStack< T >::PopBlockStackView::get().
|
protected |
Definition at line 178 of file STDVectorStack.h.
Referenced by peano4::stacks::STDVectorStack< T >::PopBlockStackView::get(), peano4::stacks::STDVectorStack< T >::PopBlockStackView::get(), and peano4::stacks::STDVectorStack< T >::PopBlockStackView::size().
|
protected |
Definition at line 180 of file STDVectorStack.h.
Referenced by peano4::stacks::STDVectorStack< T >::PopBlockStackView::get(), and peano4::stacks::STDVectorStack< T >::PopBlockStackView::get().