Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
common.hpp File Reference
#include <helios/core_pch.hpp>
#include <taskflow/core/task.hpp>
#include <concepts>
#include <cstdint>
#include <expected>
#include <string_view>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  helios
 
namespace  helios::async
 
namespace  helios::async::details
 

Concepts

concept  helios::async::StaticTask
 Concept for static task callables.
 
concept  helios::async::SubTask
 Concept for sub-task callables that receive a SubTaskGraph reference.
 
concept  helios::async::AnyTask
 Concept for any valid task callable.
 

Typedefs

template<typename T = void>
using helios::async::AsyncResult = std::expected< T, AsyncError >
 Result type for async operations.
 

Enumerations

enum class  helios::async::TaskType : uint8_t { helios::async::Undefined , helios::async::Static , helios::async::SubTask , helios::async::Async }
 Types of tasks in the async system. More...
 
enum class  helios::async::AsyncError : uint8_t {
  helios::async::InvalidTask , helios::async::ExecutorShutdown , helios::async::TaskNotFound , helios::async::InvalidDependency ,
  helios::async::CircularDependency , helios::async::SchedulingFailed , helios::async::ThreadNotAvailable
}
 Error codes for async operations. More...
 

Functions

constexpr std::string_view helios::async::ToString (AsyncError error) noexcept
 Converts AsyncError to string representation.
 
static constexpr TaskType helios::async::details::ConvertTaskType (tf::TaskType type) noexcept
 Converts Taskflow task type to Helios task type.