review + docs
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
namespace entt {
|
||||
|
||||
|
||||
namespace details {
|
||||
namespace {
|
||||
|
||||
|
||||
template<typename... Types>
|
||||
@@ -87,7 +87,7 @@ private:
|
||||
* @tparam Types List of types for which to generate identifiers.
|
||||
*/
|
||||
template<typename... Types>
|
||||
constexpr auto ident = details::Identifier<std::decay_t<Types>...>{std::make_index_sequence<sizeof...(Types)>{}};
|
||||
constexpr auto ident = Identifier<std::decay_t<Types>...>{std::make_index_sequence<sizeof...(Types)>{}};
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace entt {
|
||||
template<typename Delta>
|
||||
class Scheduler final {
|
||||
template<typename T>
|
||||
struct tag { using type = T; };
|
||||
struct type_t { using type = T; };
|
||||
|
||||
struct ProcessHandler final {
|
||||
using instance_type = std::unique_ptr<void, void(*)(void *)>;
|
||||
@@ -66,7 +66,7 @@ class Scheduler final {
|
||||
template<typename Proc, typename... Args>
|
||||
decltype(auto) then(Args &&... args) && {
|
||||
static_assert(std::is_base_of<Process<Proc, Delta>, Proc>::value, "!");
|
||||
handler = Lambda::operator()(handler, tag<Proc>{}, std::forward<Args>(args)...);
|
||||
handler = Lambda::operator()(handler, type_t<Proc>{}, std::forward<Args>(args)...);
|
||||
return std::move(*this);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
namespace entt {
|
||||
|
||||
|
||||
namespace details {
|
||||
namespace {
|
||||
|
||||
|
||||
template<typename, typename>
|
||||
@@ -83,7 +83,7 @@ using DefaultCollectorType = typename DefaultCollector<Function>::collector_type
|
||||
* @tparam Function A valid function type.
|
||||
* @tparam Collector Type of collector to use, if any.
|
||||
*/
|
||||
template<typename Function, typename Collector = details::DefaultCollectorType<Function>>
|
||||
template<typename Function, typename Collector = DefaultCollectorType<Function>>
|
||||
class SigH;
|
||||
|
||||
|
||||
@@ -111,8 +111,8 @@ class SigH;
|
||||
* @tparam Collector Type of collector to use, if any.
|
||||
*/
|
||||
template<typename Ret, typename... Args, typename Collector>
|
||||
class SigH<Ret(Args...), Collector> final: private details::Invoker<Ret(Args...), Collector> {
|
||||
using call_type = typename details::Invoker<Ret(Args...), Collector>::call_type;
|
||||
class SigH<Ret(Args...), Collector> final: private Invoker<Ret(Args...), Collector> {
|
||||
using call_type = typename Invoker<Ret(Args...), Collector>::call_type;
|
||||
|
||||
public:
|
||||
/*! @brief Unsigned integer type. */
|
||||
@@ -139,6 +139,7 @@ public:
|
||||
* to the users of a class.
|
||||
*/
|
||||
class Sink final {
|
||||
/*! @brief A signal is allowed to create sinks. */
|
||||
friend class SigH;
|
||||
|
||||
template<Ret(*Function)(Args...)>
|
||||
|
||||
@@ -63,6 +63,7 @@ public:
|
||||
* to the users of a class.
|
||||
*/
|
||||
class Sink final {
|
||||
/*! @brief A signal is allowed to create sinks. */
|
||||
friend class Signal;
|
||||
|
||||
template<void(*Function)(Args...)>
|
||||
|
||||
Reference in New Issue
Block a user