SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::simulation::Task Class Referenceabstract

#include <Task.h>

Inheritance diagram for sofa::simulation::Task:

Detailed Description

Task class interface

Classes

class  Allocator
 
class  Status
 

Public Attributes

int m_id
 

Protected Attributes

int m_scheduledThread
 

Public Member Functions

 Task (int scheduledThread)
 
virtual ~Task ()
 
virtual MemoryAlloc run ()=0
 
virtual Task::StatusgetStatus (void) const =0
 
int getScheduledThread () const
 

Static Public Member Functions

static void * operator new (std::size_t sz)
 
static void operator delete (void *ptr)
 
static void operator delete (void *ptr, std::size_t sz)
 
static void * operator new[] (std::size_t sz)=delete
 
static Task::AllocatorgetAllocator ()
 
static void setAllocator (Task::Allocator *allocator)
 

Attribute details

int sofa::simulation::Task::m_id
int sofa::simulation::Task::m_scheduledThread
protected

Constructor details

sofa::simulation::Task::Task ( int  scheduledThread)
sofa::simulation::Task::~Task ( )
virtual

Function details

static Task::Allocator* sofa::simulation::Task::getAllocator ( )
inlinestatic
int sofa::simulation::Task::getScheduledThread ( ) const
inline
virtual Task::Status* sofa::simulation::Task::getStatus ( void  ) const
pure virtual

Implemented in sofa::simulation::CpuTask.

static void sofa::simulation::Task::operator delete ( void *  ptr)
inlinestatic
static void sofa::simulation::Task::operator delete ( void *  ptr,
std::size_t  sz 
)
inlinestatic
static void* sofa::simulation::Task::operator new ( std::size_t  sz)
inlinestatic
static void* sofa::simulation::Task::operator new[] ( std::size_t  sz)
staticdelete
virtual MemoryAlloc sofa::simulation::Task::run ( )
pure virtual
static void sofa::simulation::Task::setAllocator ( Task::Allocator allocator)
inlinestatic

Enum details

Enumerator
Stack 
Dynamic 
Static