xmsinterp  1.0
xms::InterpIdwImpl::InterpThread Class Reference

Threading class to compute idw interpolation in parallel. More...

Inheritance diagram for xms::InterpIdwImpl::InterpThread:
xms::ThreadLoop

Public Member Functions

 InterpThread (InterpIdwImpl &a_, VecFlt &a_s, const VecPt3d &a_p)
 constructor More...
 
BSHP< ThreadLoopCreateForNewThread () override
 creates an instance of this class for a new thread More...
 
- Public Member Functions inherited from xms::ThreadLoop
void SetStartNumIterCnt (int a_startIdx, int a_numIter, int *a_cntPtr)
 Sets up the thread worker. More...
 
void DoWork ()
 Executes the work of the thread.
 

Public Attributes

InterpIdwImplm_interp
 Idw interpolation class.
 
VecFltm_scalarTo
 Scalars filled by this class.
 
const VecPt3dm_pts
 Pts being interpolated to.
 

Private Member Functions

void Worker () override
 Actually does the interpolation in a thread.
 

Additional Inherited Members

- Protected Member Functions inherited from xms::ThreadLoop
int CurrIdx ()
 Returns the current index of the thread. More...
 

Detailed Description

Threading class to compute idw interpolation in parallel.

Definition at line 51 of file InterpIdw.cpp.

Constructor & Destructor Documentation

◆ InterpThread()

xms::InterpIdwImpl::InterpThread::InterpThread ( InterpIdwImpl a_,
VecFlt a_s,
const VecPt3d a_p 
)
inline

constructor

Parameters
[in]a_Idw interpolation class
[out]a_sScalars filled by this class
[in]a_pPts being interpolated to

Definition at line 58 of file InterpIdw.cpp.

Referenced by CreateForNewThread().

Member Function Documentation

◆ CreateForNewThread()

BSHP<ThreadLoop> xms::InterpIdwImpl::InterpThread::CreateForNewThread ( )
inlineoverridevirtual

creates an instance of this class for a new thread

Returns
Shared pointer to ThreadLoop.

Implements xms::ThreadLoop.

Definition at line 71 of file InterpIdw.cpp.

References InterpThread(), m_interp, m_pts, and m_scalarTo.


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