MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ChunkIterator Struct Reference

iterator class for array chunks More...

#include <MRChunkIterator.h>

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = Chunk
 
using difference_type = std::ptrdiff_t
 
using pointer = Chunk*
 
using reference = Chunk&
 

Public Member Functions

MRMESH_API bool operator== (const ChunkIterator &other) const
 
MRMESH_API ChunkIteratoroperator++ ()
 
MRMESH_API ChunkIterator operator++ (int)
 
MRMESH_API Chunk operator* () const
 
Chunk operator-> () const
 

Public Attributes

size_t totalSize { 0 }
 
size_t chunkSize { 0 }
 
size_t overlap { 0 }
 
size_t index { 0 }
 

Detailed Description

iterator class for array chunks

Member Typedef Documentation

◆ difference_type

using MR::ChunkIterator::difference_type = std::ptrdiff_t

◆ iterator_category

using MR::ChunkIterator::iterator_category = std::input_iterator_tag

◆ pointer

◆ reference

◆ value_type

Member Function Documentation

◆ operator*()

MRMESH_API Chunk MR::ChunkIterator::operator* ( ) const

◆ operator++() [1/2]

MRMESH_API ChunkIterator & MR::ChunkIterator::operator++ ( )

◆ operator++() [2/2]

MRMESH_API ChunkIterator MR::ChunkIterator::operator++ ( int )

◆ operator->()

Chunk MR::ChunkIterator::operator-> ( ) const
inline

◆ operator==()

MRMESH_API bool MR::ChunkIterator::operator== ( const ChunkIterator & other) const

Member Data Documentation

◆ chunkSize

size_t MR::ChunkIterator::chunkSize { 0 }

◆ index

size_t MR::ChunkIterator::index { 0 }

◆ overlap

size_t MR::ChunkIterator::overlap { 0 }

◆ totalSize

size_t MR::ChunkIterator::totalSize { 0 }

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