summaryrefslogtreecommitdiff
path: root/include/nw4r/snd/snd_Task.h
blob: ecab7ca42d8d0672b521ee4457aa77cb0c1588c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef NW4R_SND_TASK_H
#define NW4R_SND_TASK_H

/*******************************************************************************
 * headers
 */

#include "nw4r/ut/ut_algorithm.h" // ut::NonCopyable
#include "nw4r/ut/ut_LinkList.h"

/*******************************************************************************
 * classes and functions
 */

namespace nw4r { namespace snd { namespace detail
{
	// [R89JEL]:/bin/RVL/Debug/mainD.elf:.debug::0x2ea55
	class Task : private ut::NonCopyable
	{
	// typedefs
	public:
		typedef ut::LinkList<Task, 0x04> LinkList;

	// methods
	public:
		// cdtors
		Task() : mBusyFlag(false) {}
		virtual ~Task();

		// virtual function ordering
		// vtable Task
		virtual void Execute() = 0;
		virtual void Cancel() = 0;
		virtual void OnCancel() = 0;

	// members
	private:
		/* base NonCopyable */			// size 0x00, offset 0x00
		/* vtable */					// size 0x04, offset 0x00
		ut::LinkListNode	mTaskLink;	// size 0x08, offset 0x04
		bool				mBusyFlag;	// size 0x01, offset 0x0c
		/* 3 bytes padding */

	// friends
	private:
		friend class TaskManager;
	}; // size 0x10
}}} // namespace nw4r::snd::detail

#endif // NW4R_SND_TASK_H