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.

Member Function Documentation

◆ get() [1/2]

◆ get() [2/2]

◆ size()

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

◆ toString()

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

Definition at line 208 of file STDVectorStack.h.

Friends And Related Symbol Documentation

◆ peano4::stacks::STDVectorStack< T >

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

Parent is friend.

Definition at line 533 of file STDVectorStack.h.

Field Documentation

◆ _baseElement

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

◆ _size

◆ _stack


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