PLaSK library
Loading...
Searching...
No Matches
plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR > Struct Template Reference

#include <plask/mesh/rectangular_masked2d.hpp>

Inheritance diagram for plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >:
[legend]
Collaboration diagram for plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >:
[legend]

Public Member Functions

 BoundaryIteratorImpl (const RectangularMaskedMeshBase< 2 > &mesh, Vec< 2, std::size_t > index, std::size_t endIndex)
 
void increment () override
 Iterate to next value.
 
bool equal (const plask::BoundaryNodeSetImpl::IteratorImpl &other) const override
 
std::size_t dereference () const override
 
std::unique_ptr< plask::BoundaryNodeSetImpl::IteratorImplclone () const override
 Clone this iterator.
 
- Public Member Functions inherited from plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >
virtual ~PolymorphicForwardIteratorImpl ()
 Virtual destructor, do nothing.
 
virtual bool equal (const PolymorphicForwardIteratorImpl &other) const =0
 Check if this is equal to other.
 

Public Attributes

const RectangularMaskedMeshBase< 2 > & mesh
 
Vec< 2, std::size_t > index
 current indexes
 
std::size_t endIndex
 past the last index of change direction
 

Additional Inherited Members

- Public Types inherited from plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >
typedef ValueT value_type
 Type of objects pointed by the iterator.
 
typedef ReferenceT reference
 Type to represent a reference to an object pointed by the iterator.
 

Detailed Description

template<int CHANGE_DIR>
struct plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >

Definition at line 536 of file rectangular_masked2d.hpp.

Constructor & Destructor Documentation

◆ BoundaryIteratorImpl()

template<int CHANGE_DIR>
plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >::BoundaryIteratorImpl ( const RectangularMaskedMeshBase< 2 > &  mesh,
Vec< 2, std::size_t >  index,
std::size_t  endIndex 
)
inline

Definition at line 546 of file rectangular_masked2d.hpp.

Member Function Documentation

◆ clone()

template<int CHANGE_DIR>
std::unique_ptr< plask::BoundaryNodeSetImpl::IteratorImpl > plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >::clone ( ) const
inlineoverridevirtual

Clone this iterator.

Returns
clone of *this, allocated with new operator (caller is responsible for deleting it)

Implements plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >.

Definition at line 568 of file rectangular_masked2d.hpp.

◆ dereference()

template<int CHANGE_DIR>
std::size_t plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >::dereference ( ) const
inlineoverridevirtual
Returns
current value

Implements plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >.

Definition at line 564 of file rectangular_masked2d.hpp.

◆ equal()

Definition at line 560 of file rectangular_masked2d.hpp.

◆ increment()

template<int CHANGE_DIR>
void plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >::increment ( )
inlineoverridevirtual

Iterate to next value.

Implements plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >.

Definition at line 554 of file rectangular_masked2d.hpp.

Member Data Documentation

◆ endIndex

template<int CHANGE_DIR>
std::size_t plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >::endIndex

past the last index of change direction

Definition at line 544 of file rectangular_masked2d.hpp.

◆ index

template<int CHANGE_DIR>
Vec<2, std::size_t> plask::RectangularMaskedMesh2D::BoundaryIteratorImpl< CHANGE_DIR >::index

current indexes

Definition at line 541 of file rectangular_masked2d.hpp.

◆ mesh


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