VTK-m  2.0
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
vtkm::filter::TaskQueue< T > Class Template Reference

#include <TaskQueue.h>

Public Member Functions

 TaskQueue ()=default
 
void Push (T &&item)
 
bool HasTasks ()
 
bool GetTask (T &item)
 
Pop ()
 

Protected Member Functions

vtkm::Id Length ()
 

Private Member Functions

 TaskQueue (const TaskQueue &rhs)=delete
 
TaskQueueoperator= (const TaskQueue &rhs)=delete
 
 TaskQueue (TaskQueue &&rhs)=delete
 
TaskQueueoperator= (TaskQueue &&rhs)=delete
 

Private Attributes

std::mutex Lock
 
std::queue< T > Queue
 

Constructor & Destructor Documentation

◆ TaskQueue() [1/3]

template<typename T >
vtkm::filter::TaskQueue< T >::TaskQueue ( )
default

◆ TaskQueue() [2/3]

template<typename T >
vtkm::filter::TaskQueue< T >::TaskQueue ( const TaskQueue< T > &  rhs)
privatedelete

◆ TaskQueue() [3/3]

template<typename T >
vtkm::filter::TaskQueue< T >::TaskQueue ( TaskQueue< T > &&  rhs)
privatedelete

Member Function Documentation

◆ GetTask()

template<typename T >
bool vtkm::filter::TaskQueue< T >::GetTask ( T &  item)
inline

◆ HasTasks()

template<typename T >
bool vtkm::filter::TaskQueue< T >::HasTasks ( )
inline

◆ Length()

template<typename T >
vtkm::Id vtkm::filter::TaskQueue< T >::Length ( )
inlineprotected

◆ operator=() [1/2]

template<typename T >
TaskQueue& vtkm::filter::TaskQueue< T >::operator= ( const TaskQueue< T > &  rhs)
privatedelete

◆ operator=() [2/2]

template<typename T >
TaskQueue& vtkm::filter::TaskQueue< T >::operator= ( TaskQueue< T > &&  rhs)
privatedelete

◆ Pop()

template<typename T >
T vtkm::filter::TaskQueue< T >::Pop ( )
inline

◆ Push()

template<typename T >
void vtkm::filter::TaskQueue< T >::Push ( T &&  item)
inline

Member Data Documentation

◆ Lock

template<typename T >
std::mutex vtkm::filter::TaskQueue< T >::Lock
private

◆ Queue

template<typename T >
std::queue<T> vtkm::filter::TaskQueue< T >::Queue
private

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