TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TaskScheduler::Task Class Reference

Public Member Functions

 Task (timepoint_t const &end, duration_t const &duration, boost::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
 
bool operator< (Task const &other) const
 
bool operator> (Task const &other) const
 
bool operator== (Task const &other)
 
bool IsInGroup (group_t const group) const
 

Private Attributes

timepoint_t _end
 
duration_t _duration
 
boost::optional< group_t_group
 
repeated_t _repeated
 
task_handler_t _task
 

Friends

class TaskContext
 
class TaskScheduler
 

Constructor & Destructor Documentation

TaskScheduler::Task::Task ( timepoint_t const end,
duration_t const duration,
boost::optional< group_t > const group,
repeated_t const  repeated,
task_handler_t const task 
)
inline
84  : _end(end), _duration(duration), _group(group), _repeated(repeated), _task(task) { }
task_handler_t _task
Definition: TaskScheduler.h:78
repeated_t _repeated
Definition: TaskScheduler.h:77
timepoint_t _end
Definition: TaskScheduler.h:74
boost::optional< group_t > _group
Definition: TaskScheduler.h:76
duration_t _duration
Definition: TaskScheduler.h:75
TaskScheduler::Task::Task ( timepoint_t const end,
duration_t const duration,
task_handler_t const task 
)
inline
88  : _end(end), _duration(duration), _group(boost::none), _repeated(0), _task(task) { }
task_handler_t _task
Definition: TaskScheduler.h:78
repeated_t _repeated
Definition: TaskScheduler.h:77
timepoint_t _end
Definition: TaskScheduler.h:74
boost::optional< group_t > _group
Definition: TaskScheduler.h:76
duration_t _duration
Definition: TaskScheduler.h:75
TaskScheduler::Task::Task ( Task const )
delete
TaskScheduler::Task::Task ( Task &&  )
delete

Member Function Documentation

bool TaskScheduler::Task::IsInGroup ( group_t const  group) const
inline
118  {
119  return _group == group;
120  }
boost::optional< group_t > _group
Definition: TaskScheduler.h:76
bool TaskScheduler::Task::operator< ( Task const other) const
inline
101  {
102  return _end < other._end;
103  }
timepoint_t _end
Definition: TaskScheduler.h:74
Task& TaskScheduler::Task::operator= ( Task const )
default
Task& TaskScheduler::Task::operator= ( Task &&  right)
delete
bool TaskScheduler::Task::operator== ( Task const other)
inline
112  {
113  return _end == other._end;
114  }
timepoint_t _end
Definition: TaskScheduler.h:74
bool TaskScheduler::Task::operator> ( Task const other) const
inline
106  {
107  return _end > other._end;
108  }
timepoint_t _end
Definition: TaskScheduler.h:74

Friends And Related Function Documentation

friend class TaskContext
friend
friend class TaskScheduler
friend

Member Data Documentation

duration_t TaskScheduler::Task::_duration
private
timepoint_t TaskScheduler::Task::_end
private
boost::optional<group_t> TaskScheduler::Task::_group
private
repeated_t TaskScheduler::Task::_repeated
private
task_handler_t TaskScheduler::Task::_task
private

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