4#ifndef GREM_EXECUTION_SCHEDULE_HPP
5#define GREM_EXECUTION_SCHEDULE_HPP
34template <
typename EntReg,
typename ResReg>
73 : tasks(std::
move(tasks))
74 , requiredSharedMemorySize(requiredSharedMemorySize)
75 , name(std::
move(name)) {}
94 return requiredSharedMemorySize;
117 return detail::formatScheduleDOTGraph(tasks, name);
Definition ArrayList.hpp:27
Span< const Task > getTasks() const noexcept
Definition Schedule.hpp:83
String formatDOTGraph() const
Definition Schedule.hpp:116
Schedule() noexcept=default
Construct an empty schedule with an empty name.
CStringView getName() const noexcept
Definition Schedule.hpp:103
Task::SharedMemorySize getRequiredSharedMemorySize() const noexcept
Definition Schedule.hpp:93
Statically scheduled unit of work to be executed by an Executor as part of a task graph.
Definition Task.hpp:30
uint32_t SharedMemorySize
Size, in bytes, of shared memory allocated for a task.
Definition Task.hpp:51
constexpr auto move(input_range auto &&range, auto outputIterator)
Definition algorithms.hpp:669
Span(R &&range) -> Span< std::remove_reference_t< decltype(*std::data(range))> >
StringBase< char, std::char_traits< char >, std::allocator< char > > String
Definition String.hpp:17
CStringViewBase< char, std::char_traits< char > > CStringView
Definition CStringView.hpp:635
Task context that the scheduled tasks expect to receive a pointer to through their void* context para...
Definition Schedule.hpp:41
EntReg & entities
Reference to the entity registry provided to the scheduled tasks.
Definition Schedule.hpp:42
ResReg & resources
Reference to the resource registry provided to the scheduled tasks.
Definition Schedule.hpp:43