sead
Loading...
Searching...
No Matches
sead::TaskBase Class Referenceabstract

#include <seadTaskBase.h>

Inherits sead::TTreeNode< TaskBase * >, sead::IDisposer, and sead::INamable.

Inherited by sead::CalculateTask.

Classes

struct  CreateArg

Public Types

enum  State {
  cCreated = 0 , cPrepare = 1 , cPrepareDone = 2 , cSleep = 3 ,
  cRunning = 4 , cDying = 5 , cDestroyable = 6 , cDead = 7
}
enum  Tag { cSystem = 0 , cApp = 1 }
typedef TListNode< TaskBase * > ListNode
typedef TList< TaskBase * > List

Public Member Functions

 TaskBase (const TaskConstructArg &arg)
 TaskBase (const TaskConstructArg &arg, const char *name)
virtual void pauseCalc (bool b)=0
virtual void pauseDraw (bool b)=0
virtual void pauseCalcRec (bool b)=0
virtual void pauseDrawRec (bool b)=0
virtual void pauseCalcChild (bool b)
virtual void pauseDrawChild (bool b)
virtual ~TaskBase ()
virtual void prepare ()
virtual void enterCommon ()
virtual void enter ()
virtual void exit ()
virtual void onEvent (const TaskEvent &)
virtual void attachCalcImpl ()=0
virtual void attachDrawImpl ()=0
virtual void detachCalcImpl ()=0
virtual void detachDrawImpl ()=0
virtual const RuntimeTypeInfo::InterfacegetCorrespondingMethodTreeMgrTypeInfo () const =0
virtual MethodTreeNodegetMethodTreeNode (s32 method_type)=0
virtual void onDestroy ()
void doneDestroy ()
void detachCalc ()
void detachDraw ()
void detachCalcDraw ()
FrameworkgetFramework () const
MethodTreeMgrgetMethodTreeMgr () const
template<typename T>
T * getParameter () const
void adjustHeapAll ()
TaskBasegetParentTask () const
HeapgetHeap ()
TaskMgrgetTaskMgr () const
Tag getTag () const
Public Member Functions inherited from sead::TTreeNode< TaskBase * >
 TTreeNode ()
TTreeNode< TaskBase * > * parent () const
TTreeNode< TaskBase * > * child () const
TTreeNode< TaskBase * > * next () const
TTreeNode< TaskBase * > * prev () const
TTreeNode< TaskBase * > * findRoot ()
void pushBackSibling (TTreeNode< TaskBase * > *o)
void pushBackChild (TTreeNode< TaskBase * > *o)
void pushFrontChild (TTreeNode< TaskBase * > *o)
void insertBeforeSelf (TTreeNode< TaskBase * > *o)
void insertAfterSelf (TTreeNode< TaskBase * > *o)
TaskBase *& val ()
nextIterator nextBegin () const
nextConstIterator nextConstBegin () const
nextIterator nextEnd () const
nextConstIterator nextConstEnd () const
nextIterator childBegin () const
nextConstIterator childConstBegin () const
nextIterator childEnd () const
nextConstIterator childConstEnd () const
depthFirstIterator depthFirstBegin () const
depthFirstConstIterator depthFirstConstBegin () const
depthFirstIterator depthFirstWithoutRootBegin () const
depthFirstConstIterator depthFirstWithoutRootConstBegin () const
depthFirstIterator depthFirstEnd () const
depthFirstConstIterator depthFirstConstEnd () const
Public Member Functions inherited from sead::TreeNode
 TreeNode ()
void clearLinks ()
void detachAll ()
void detachSubTree ()
void pushBackSibling (TreeNode *n)
void pushBackChild (TreeNode *n)
void pushFrontChild (TreeNode *n)
void insertBeforeSelf (TreeNode *n)
void insertAfterSelf (TreeNode *n)
bool isRoot () const
bool isLeaf () const
const TreeNodefindRoot () const
TreeNodefindRoot ()
s32 countChildren () const
Public Member Functions inherited from sead::IDisposer
 IDisposer ()
virtual ~IDisposer ()
Public Member Functions inherited from sead::INamable
 INamable ()
 INamable (const SafeString &name)
void setName (const SafeString &name)
const SafeStringgetName () const

Protected Attributes

TaskParametermParameter
BitFlag32 mInternalFlag
ListNode mTaskListNode
HeapArray mHeapArray
TaskMgrmTaskMgr
State mState
Tag mTag
TaskClassID mClassID
Protected Attributes inherited from sead::TTreeNode< TaskBase * >
TaskBasemData
Protected Attributes inherited from sead::TreeNode
TreeNodemParent
TreeNodemChild
TreeNodemNext
TreeNodemPrev

Friends

class TaskMgr

Additional Inherited Members

Protected Member Functions inherited from sead::TreeNode
void clearChildLinksRecursively_ ()

Member Typedef Documentation

◆ ListNode

◆ List

Member Enumeration Documentation

◆ State

Enumerator
cCreated 
cPrepare 
cPrepareDone 
cSleep 
cRunning 
cDying 
cDestroyable 
cDead 

◆ Tag

Enumerator
cSystem 
cApp 

Constructor & Destructor Documentation

◆ TaskBase() [1/2]

sead::TaskBase::TaskBase ( const TaskConstructArg & arg)

◆ TaskBase() [2/2]

sead::TaskBase::TaskBase ( const TaskConstructArg & arg,
const char * name )

◆ ~TaskBase()

virtual sead::TaskBase::~TaskBase ( )
virtual

Member Function Documentation

◆ pauseCalc()

virtual void sead::TaskBase::pauseCalc ( bool b)
pure virtual

Implemented in sead::CalculateTask.

◆ pauseDraw()

virtual void sead::TaskBase::pauseDraw ( bool b)
pure virtual

Implemented in sead::CalculateTask.

◆ pauseCalcRec()

virtual void sead::TaskBase::pauseCalcRec ( bool b)
pure virtual

Implemented in sead::CalculateTask.

◆ pauseDrawRec()

virtual void sead::TaskBase::pauseDrawRec ( bool b)
pure virtual

Implemented in sead::CalculateTask.

◆ pauseCalcChild()

virtual void sead::TaskBase::pauseCalcChild ( bool b)
inlinevirtual

Reimplemented in sead::CalculateTask.

◆ pauseDrawChild()

virtual void sead::TaskBase::pauseDrawChild ( bool b)
inlinevirtual

Reimplemented in sead::CalculateTask.

◆ prepare()

virtual void sead::TaskBase::prepare ( )
virtual

Reimplemented in sead::ControllerMgr.

◆ enterCommon()

virtual void sead::TaskBase::enterCommon ( )
virtual

◆ enter()

virtual void sead::TaskBase::enter ( )
virtual

◆ exit()

virtual void sead::TaskBase::exit ( )
virtual

◆ onEvent()

virtual void sead::TaskBase::onEvent ( const TaskEvent & )
virtual

◆ attachCalcImpl()

virtual void sead::TaskBase::attachCalcImpl ( )
pure virtual

Implemented in sead::CalculateTask.

◆ attachDrawImpl()

virtual void sead::TaskBase::attachDrawImpl ( )
pure virtual

Implemented in sead::CalculateTask.

◆ detachCalcImpl()

virtual void sead::TaskBase::detachCalcImpl ( )
pure virtual

Implemented in sead::CalculateTask.

◆ detachDrawImpl()

virtual void sead::TaskBase::detachDrawImpl ( )
pure virtual

Implemented in sead::CalculateTask.

◆ getCorrespondingMethodTreeMgrTypeInfo()

virtual const RuntimeTypeInfo::Interface * sead::TaskBase::getCorrespondingMethodTreeMgrTypeInfo ( ) const
pure virtual

Implemented in sead::CalculateTask.

◆ getMethodTreeNode()

virtual MethodTreeNode * sead::TaskBase::getMethodTreeNode ( s32 method_type)
pure virtual

Implemented in sead::CalculateTask.

◆ onDestroy()

virtual void sead::TaskBase::onDestroy ( )
inlinevirtual

◆ doneDestroy()

void sead::TaskBase::doneDestroy ( )

◆ detachCalc()

void sead::TaskBase::detachCalc ( )
inline

◆ detachDraw()

void sead::TaskBase::detachDraw ( )
inline

◆ detachCalcDraw()

void sead::TaskBase::detachCalcDraw ( )
inline

◆ getFramework()

Framework * sead::TaskBase::getFramework ( ) const

◆ getMethodTreeMgr()

MethodTreeMgr * sead::TaskBase::getMethodTreeMgr ( ) const

◆ getParameter()

template<typename T>
T * sead::TaskBase::getParameter ( ) const
inline

◆ adjustHeapAll()

void sead::TaskBase::adjustHeapAll ( )

◆ getParentTask()

TaskBase * sead::TaskBase::getParentTask ( ) const
inline

◆ getHeap()

Heap * sead::TaskBase::getHeap ( )
inline

◆ getTaskMgr()

TaskMgr * sead::TaskBase::getTaskMgr ( ) const
inline

◆ getTag()

Tag sead::TaskBase::getTag ( ) const
inline

◆ TaskMgr

friend class TaskMgr
friend

Member Data Documentation

◆ mParameter

TaskParameter* sead::TaskBase::mParameter
protected

◆ mInternalFlag

BitFlag32 sead::TaskBase::mInternalFlag
protected

◆ mTaskListNode

ListNode sead::TaskBase::mTaskListNode
protected

◆ mHeapArray

HeapArray sead::TaskBase::mHeapArray
protected

◆ mTaskMgr

TaskMgr* sead::TaskBase::mTaskMgr
protected

◆ mState

State sead::TaskBase::mState
protected

◆ mTag

Tag sead::TaskBase::mTag
protected

◆ mClassID

TaskClassID sead::TaskBase::mClassID
protected