TrinityCore
Loading...
Searching...
No Matches
TaskScheduler::Task Class Reference

Public Member Functions

 Task (timepoint_t const &end, duration_t const &duration, Optional< group_t > const &group, repeated_t const repeated, task_handler_t const &task)
 
 Task (timepoint_t const &end, duration_t const &duration, task_handler_t const &task)
 
 Task (Task const &)=delete
 
 Task (Task &&)=delete
 
Taskoperator= (Task const &)=default
 
Taskoperator= (Task &&right)=delete
 
std::weak_ordering operator<=> (Task const &other) const
 
bool operator== (Task const &other) const
 
bool IsInGroup (group_t const group) const
 

Private Attributes

timepoint_t _end
 
duration_t _duration
 
Optional< group_t_group
 
repeated_t _repeated
 
task_handler_t _task
 

Friends

class TaskContext
 
class TaskScheduler
 

Detailed Description

Definition at line 67 of file TaskScheduler.h.

Constructor & Destructor Documentation

◆ Task() [1/4]

TaskScheduler::Task::Task ( timepoint_t const &  end,
duration_t const &  duration,
Optional< group_t > const &  group,
repeated_t const  repeated,
task_handler_t const &  task 
)
inline

Definition at line 80 of file TaskScheduler.h.

◆ Task() [2/4]

TaskScheduler::Task::Task ( timepoint_t const &  end,
duration_t const &  duration,
task_handler_t const &  task 
)
inline

Definition at line 85 of file TaskScheduler.h.

◆ Task() [3/4]

TaskScheduler::Task::Task ( Task const &  )
delete

◆ Task() [4/4]

TaskScheduler::Task::Task ( Task &&  )
delete

Member Function Documentation

◆ IsInGroup()

bool TaskScheduler::Task::IsInGroup ( group_t const  group) const
inline

Definition at line 110 of file TaskScheduler.h.

◆ operator<=>()

std::weak_ordering TaskScheduler::Task::operator<=> ( Task const &  other) const
inline

Definition at line 98 of file TaskScheduler.h.

◆ operator=() [1/2]

Task & TaskScheduler::Task::operator= ( Task &&  right)
delete

◆ operator=() [2/2]

Task & TaskScheduler::Task::operator= ( Task const &  )
default

◆ operator==()

bool TaskScheduler::Task::operator== ( Task const &  other) const
inline

Definition at line 104 of file TaskScheduler.h.

Friends And Related Symbol Documentation

◆ TaskContext

friend class TaskContext
friend

Definition at line 69 of file TaskScheduler.h.

◆ TaskScheduler

friend class TaskScheduler
friend

Definition at line 70 of file TaskScheduler.h.

Member Data Documentation

◆ _duration

duration_t TaskScheduler::Task::_duration
private

Definition at line 73 of file TaskScheduler.h.

◆ _end

timepoint_t TaskScheduler::Task::_end
private

Definition at line 72 of file TaskScheduler.h.

◆ _group

Optional<group_t> TaskScheduler::Task::_group
private

Definition at line 74 of file TaskScheduler.h.

◆ _repeated

repeated_t TaskScheduler::Task::_repeated
private

Definition at line 75 of file TaskScheduler.h.

◆ _task

task_handler_t TaskScheduler::Task::_task
private

Definition at line 76 of file TaskScheduler.h.


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