Nektar++
Public Member Functions | Private Attributes | List of all members
Nektar::Utilities::NodeOptiJob Class Reference

#include <NodeOpti.h>

Inheritance diagram for Nektar::Utilities::NodeOptiJob:
[legend]

Public Member Functions

 NodeOptiJob (NodeOpti *no)
 
void Run ()
 
 NodeOptiJob (NodeOpti *no)
 
void Run ()
 
- Public Member Functions inherited from Nektar::Thread::ThreadJob
 ThreadJob ()
 Base constructor. More...
 
virtual ~ThreadJob ()
 Base destructor. More...
 
void SetWorkerNum (unsigned int num)
 Set number of worker threads. More...
 

Private Attributes

NodeOptinode
 

Additional Inherited Members

- Protected Member Functions inherited from Nektar::Thread::ThreadJob
unsigned int GetWorkerNum ()
 

Detailed Description

Definition at line 196 of file NodeOpti.h.

Constructor & Destructor Documentation

◆ NodeOptiJob() [1/2]

Nektar::Utilities::NodeOptiJob::NodeOptiJob ( NodeOpti no)
inline

Definition at line 199 of file NodeOpti.h.

199  : node(no)
200  {
201  }

◆ NodeOptiJob() [2/2]

Nektar::Utilities::NodeOptiJob::NodeOptiJob ( NodeOpti no)
inline

Definition at line 51 of file NodeOptiJob.h.

51  : node(no)
52  {
53  }

Member Function Documentation

◆ Run() [1/2]

void Nektar::Utilities::NodeOptiJob::Run ( )
inlinevirtual

This method will be called when the task is loaded onto a worker thread and is ready to run. When Run has finished this instance will be destructed.

Implements Nektar::Thread::ThreadJob.

Definition at line 55 of file NodeOptiJob.h.

References node, and Nektar::Utilities::NodeOpti::Optimise().

56  {
57  node->Optimise();
58  }
virtual void Optimise()=0

◆ Run() [2/2]

void Nektar::Utilities::NodeOptiJob::Run ( )
inlinevirtual

This method will be called when the task is loaded onto a worker thread and is ready to run. When Run has finished this instance will be destructed.

Implements Nektar::Thread::ThreadJob.

Definition at line 203 of file NodeOpti.h.

204  {
205  node->Optimise();
206  }
virtual void Optimise()=0

Member Data Documentation

◆ node

NodeOpti * Nektar::Utilities::NodeOptiJob::node
private

Definition at line 209 of file NodeOpti.h.

Referenced by Run().