MeshLib Documentation
Loading...
Searching...
No Matches
MR::RangeProgress Class Reference

#include <MROpenVDBHelper.h>

Public Types

enum class  Mode { Leaves , Tiles }
 

Public Member Functions

 RangeProgress (ProgressCallback cb, size_t size, Mode mode)
 
void add (size_t l, size_t t)
 
bool reportProgress () const
 

Detailed Description

This class holds single progress counter for all parallel_reduce threads but report progress only in main thread

Member Enumeration Documentation

◆ Mode

enum class MR::RangeProgress::Mode
strong
Enumerator
Leaves 
Tiles 

Constructor & Destructor Documentation

◆ RangeProgress()

MR::RangeProgress::RangeProgress ( ProgressCallback cb,
size_t size,
Mode mode )
inline

Member Function Documentation

◆ add()

void MR::RangeProgress::add ( size_t l,
size_t t )
inline

◆ reportProgress()

bool MR::RangeProgress::reportProgress ( ) const
inline

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