co_ecs 0.9.0
Cobalt ECS
Loading...
Searching...
No Matches
co_ecs::named_system< F > Class Template Reference

System implementation class for generic F function-like type with it's name. More...

#include <named_system.hpp>

Inheritance diagram for co_ecs::named_system< F >:
co_ecs::system_interface

Public Member Functions

 named_system (F func, const char *name)
 Construct a new named system object.
 
std::unique_ptr< system_executor_interfacecreate_executor (registry &registry, void *user_context) override
 Create an executor object.
 
- Public Member Functions inherited from co_ecs::system_interface
virtual ~system_interface ()=default
 Destroy the system interface object.
 

Detailed Description

template<typename F>
class co_ecs::named_system< F >

System implementation class for generic F function-like type with it's name.

Template Parameters
FCallable type

Constructor & Destructor Documentation

◆ named_system()

template<typename F >
co_ecs::named_system< F >::named_system ( F func,
const char * name )
inlineexplicit

Construct a new named system object.

Parameters
funcFunction object

Member Function Documentation

◆ create_executor()

template<typename F >
std::unique_ptr< system_executor_interface > co_ecs::named_system< F >::create_executor ( registry & registry,
void * user_context )
inlineoverridevirtual

Create an executor object.

Parameters
registryRegistry reference
user_contextUser provided context to fetch data from and provide to the system
Returns
Executor object

Implements co_ecs::system_interface.


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