Unravel Engine C++ Reference
Loading...
Searching...
No Matches
seq_common.h File Reference
#include <chrono>
#include <functional>
#include <hpp/sentinel.hpp>
#include <hpp/type_name.hpp>
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  seq::seq_scope_policy
 Defines policies for scoping actions in a sequence. More...
 
struct  seq::seq_inspect_info
 Contains information for inspecting and debugging sequence actions. More...
 

Namespaces

namespace  seq
 Provides a sequence-based action management system for controlling and scheduling actions.
 
namespace  inspector
 Provides utilities for inspecting and converting sequence-related types to strings.
 
namespace  seq::inspector
 
namespace  seq::inspector::adl_helper
 

Typedefs

using seq::clock_t = std::chrono::steady_clock
 Alias for the steady clock used for timing actions.
 
using seq::timepoint_t = clock_t::time_point
 Represents a point in time using the steady clock.
 
using seq::duraiton_secs_t = std::chrono::duration<float>
 Represents a duration in seconds as a floating-point value.
 
using seq::duration_t = std::chrono::nanoseconds
 Represents a duration in nanoseconds.
 
using seq::sentinel_t = hpp::sentinel
 Alias for a sentinel object used for lifecycle management.
 
using seq::seq_id_t = size_t
 Represents a unique identifier for sequence actions.
 
using seq::ease_t = std::function<float(float)>
 Represents an easing function for interpolation.
 
template<typename T >
using seq::interpolate_t = std::function<T(const T&, const T&, float, const ease_t&)>
 Represents a function for interpolating values.
 

Enumerations

enum class  seq::state_t { seq::running , seq::paused , seq::finished }
 Represents the state of a sequence action. More...
 

Functions

template<typename T >
auto seq::inspector::adl_helper::as_string (const T &t) -> std::string
 Converts a value to a string.
 
template<typename T >
auto seq::inspector::adl_helper::type_as_string (const T &) -> std::string
 Gets the type of a value as a string.
 
template<typename T >
auto seq::inspector::to_str (const T &t) -> std::string
 Converts a value to a string using ADL (Argument-Dependent Lookup).
 
template<>
auto seq::inspector::to_str (const state_t &t) -> std::string
 Specialization for converting state_t to a string.
 
template<typename T >
auto seq::inspector::type_to_str (const T &t) -> std::string
 Gets the type of a value as a string using ADL.