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

This class represents a whole block of the tree. More...

#include <STDVectorStackOverObjectsWithSmartPointers.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 numberOfElements, peano4::stacks::STDVectorStackOverObjectsWithSmartPointers< T > *parentStack)
 Constructor.

Protected Attributes

std::vector< T > _data

Friends

class peano4::stacks::STDVectorStackOverObjectsWithSmartPointers< T >
 Parent is friend.

Detailed Description

template<class T>
class peano4::stacks::STDVectorStackOverObjectsWithSmartPointers< 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 117 of file STDVectorStackOverObjectsWithSmartPointers.h.

Constructor & Destructor Documentation

◆ PopBlockStackView()

template<class T>
peano4::stacks::STDVectorStackOverObjectsWithSmartPointers< T >::PopBlockStackView::PopBlockStackView ( int numberOfElements,
peano4::stacks::STDVectorStackOverObjectsWithSmartPointers< T > * parentStack )
protected

Member Function Documentation

◆ get() [1/2]

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

Definition at line 149 of file STDVectorStackOverObjectsWithSmartPointers.h.

References _data, assertion2, and size().

Here is the call graph for this function:

◆ get() [2/2]

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

Definition at line 143 of file STDVectorStackOverObjectsWithSmartPointers.h.

References _data, assertion2, and size().

Here is the call graph for this function:

◆ size()

◆ toString()

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

◆ peano4::stacks::STDVectorStackOverObjectsWithSmartPointers< T >

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

Parent is friend.

Definition at line 354 of file STDVectorStackOverObjectsWithSmartPointers.h.

Field Documentation

◆ _data


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