cartobase  5.0.5
carto::LoopContext Class Referenceabstract

#include <cartobase/thread/loopContext.h>

Inheritance diagram for carto::LoopContext:
Collaboration diagram for carto::LoopContext:

Public Member Functions

 LoopContext (ThreadGauge *gauge=0, ThreadCancel *cancel=0)
 
virtual ~LoopContext ()
 
virtual void doIt (int startIndex, int countIndex)=0
 
virtual void gaugeAdd (int value)
 
virtual bool cancel ()
 
virtual void resetGauge ()
 
virtual void resetCancel ()
 
- Public Member Functions inherited from carto::ExclusiveContext
 ExclusiveContext ()
 
virtual ~ExclusiveContext ()
 
void lock ()
 
void unlock ()
 

Protected Attributes

ThreadGauge_gauge
 
ThreadCancel_cancel
 

Detailed Description

Definition at line 52 of file loopContext.h.

Constructor & Destructor Documentation

◆ LoopContext()

carto::LoopContext::LoopContext ( ThreadGauge gauge = 0,
ThreadCancel cancel = 0 
)

◆ ~LoopContext()

virtual carto::LoopContext::~LoopContext ( )
virtual

Member Function Documentation

◆ cancel()

virtual bool carto::LoopContext::cancel ( )
virtual

◆ doIt()

virtual void carto::LoopContext::doIt ( int  startIndex,
int  countIndex 
)
pure virtual

◆ gaugeAdd()

virtual void carto::LoopContext::gaugeAdd ( int  value)
virtual

◆ resetCancel()

virtual void carto::LoopContext::resetCancel ( )
virtual

◆ resetGauge()

virtual void carto::LoopContext::resetGauge ( )
virtual

Member Data Documentation

◆ _cancel

ThreadCancel* carto::LoopContext::_cancel
protected

Definition at line 69 of file loopContext.h.

◆ _gauge

ThreadGauge* carto::LoopContext::_gauge
protected

Definition at line 68 of file loopContext.h.


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