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

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

#include <STDVectorStackOverSmartPointers.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::STDVectorStackOverSmartPointers< T > *parentStack)
 Constructor.
 

Protected Attributes

std::vector< T > _data
 

Friends

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

Detailed Description

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

Constructor & Destructor Documentation

◆ PopBlockStackView()

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

Member Function Documentation

◆ get() [1/2]

◆ get() [2/2]

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

◆ size()

◆ toString()

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

Definition at line 256 of file STDVectorStackOverSmartPointers.h.

Friends And Related Symbol Documentation

◆ peano4::stacks::STDVectorStackOverSmartPointers< T >

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

Parent is friend.

Definition at line 460 of file STDVectorStackOverSmartPointers.h.

Field Documentation

◆ _data

template<class T >
std::vector<T> peano4::stacks::STDVectorStackOverSmartPointers< T >::PopBlockStackView::_data
protected

Definition at line 225 of file STDVectorStackOverSmartPointers.h.

Referenced by peano4.api.datamodel.DaStGen2.DaStGen2Generator::construct_output(), peano4.api.datamodel.DaStGen2.DaStGen2GeneratorForObjectsWithSmartPointers::construct_output(), peano4.api.toolbox.particles.ParticleSet.ParticleSetGenerator_ScatteredOnHeap_IndexByList::construct_output(), peano4.api.toolbox.particles.ParticleSet.ParticleSetGenerator_ScatteredOnHeap_IndexByVector::construct_output(), peano4.api.toolbox.particles.ParticleSet.ParticleSetGenerator_ContinuousPerVertex::construct_output(), peano4.api.toolbox.particles.ParticleSet.ParticleSetGenerator_GlobalContinuous::construct_output(), peano4::stacks::STDVectorStackOverSmartPointers< T >::PopBlockStackView::get(), peano4::stacks::STDVectorStackOverSmartPointers< T >::PopBlockStackView::get(), peano4.api.datamodel.DaStGen2.DaStGen2Generator::get_header_file_include(), peano4.api.datamodel.DaStGen2.DaStGen2GeneratorForObjectsWithSmartPointers::get_header_file_include(), peano4.api.toolbox.particles.ParticleSet.AbstractParticleSetGenerator::get_header_file_include(), peano4.api.datamodel.DaStGen2.DaStGen2Generator::get_stack_container(), peano4.api.datamodel.DaStGen2.DaStGen2GeneratorForObjectsWithSmartPointers::get_stack_container(), peano4.api.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector::get_stack_container(), peano4.api.toolbox.particles.ParticleSet.AbstractParticleSetGenerator::get_stack_container(), peano4::stacks::STDVectorStackOverSmartPointers< T >::PopBlockStackView::PopBlockStackView(), and peano4::stacks::STDVectorStackOverSmartPointers< T >::PopBlockStackView::size().


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