MeshLib C++ Docs
Loading...
Searching...
No Matches
MRChunkIterator.h File Reference
#include "MRMeshFwd.h"
#include "MRIteratorRange.h"
#include <iterator>

Go to the source code of this file.

Classes

struct  MR::Chunk
 array chunk representation More...
 
struct  MR::ChunkIterator
 iterator class for array chunks More...
 

Namespaces

namespace  MR
 

Functions

MRMESH_API size_t MR::chunkCount (size_t totalSize, size_t chunkSize, size_t overlap=0)
 returns the amount of chunks of given size required to cover the full array
 
MRMESH_API IteratorRange< ChunkIteratorMR::splitByChunks (size_t totalSize, size_t chunkSize, size_t overlap=0)
 returns a pair of iterators for chunks covering the array of given size