Peano
Loading...
Searching...
No Matches
peano4::stacks::STDVectorStack< T >::PopBlockStackView Class Reference

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.

Detailed Description

template<class T>
class peano4::stacks::STDVectorStack< T >::PopBlockStackView

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.

Constructor & Destructor Documentation

◆ PopBlockStackView()

template<class T>
peano4::stacks::STDVectorStack< T >::PopBlockStackView::PopBlockStackView ( int size,
int base,
peano4::stacks::STDVectorStack< T > * stack )
protected

Constructor.

Definition at line 185 of file STDVectorStack.h.

References _baseElement, _size, _stack, and size().

Here is the call graph for this function:

Member Function Documentation

◆ get() [1/2]

template<class T>
T & peano4::stacks::STDVectorStack< T >::PopBlockStackView::get ( int index)

Definition at line 202 of file STDVectorStack.h.

References _baseElement, _size, _stack, and assertion2.

◆ get() [2/2]

template<class T>
const T & peano4::stacks::STDVectorStack< T >::PopBlockStackView::get ( int index) const

Definition at line 196 of file STDVectorStack.h.

References _baseElement, _size, _stack, and assertion2.

◆ size()

template<class T>
int peano4::stacks::STDVectorStack< T >::PopBlockStackView::size ( ) const

Definition at line 192 of file STDVectorStack.h.

References _size.

Referenced by PopBlockStackView().

Here is the caller graph for this function:

◆ toString()

template<class T>
std::string peano4::stacks::STDVectorStack< T >::PopBlockStackView::toString ( ) const

Definition at line 208 of file STDVectorStack.h.

◆ peano4::stacks::STDVectorStack< T >

Field Documentation

◆ _baseElement

template<class T>
const int peano4::stacks::STDVectorStack< T >::PopBlockStackView::_baseElement
protected

Definition at line 179 of file STDVectorStack.h.

Referenced by get(), get(), and PopBlockStackView().

◆ _size

template<class T>
const int peano4::stacks::STDVectorStack< T >::PopBlockStackView::_size
protected

Definition at line 178 of file STDVectorStack.h.

Referenced by get(), get(), PopBlockStackView(), and size().

◆ _stack

template<class T>
peano4::stacks::STDVectorStack<T>* peano4::stacks::STDVectorStack< T >::PopBlockStackView::_stack
protected

Definition at line 180 of file STDVectorStack.h.

Referenced by get(), get(), and PopBlockStackView().


The documentation for this class was generated from the following file: