Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::component_crtp< T, Base > Struct Template Reference

CRTP (Curiously Recurring Template Pattern) base structure for components. More...

#include <basic_component.h>

Inheritance diagram for unravel::component_crtp< T, Base >:
unravel::basic_component

Public Types

using base = Base
 

Static Public Attributes

static constexpr bool in_place_delete = true
 Indicates if the component can be deleted in place.
 

Additional Inherited Members

- Public Member Functions inherited from unravel::basic_component
void touch ()
 Marks the component as 'touched'.
 
- Public Attributes inherited from unravel::basic_component
bool eto {}
 Disable empty type optimizations.
 

Detailed Description

template<typename T, typename Base = basic_component>
struct unravel::component_crtp< T, Base >

CRTP (Curiously Recurring Template Pattern) base structure for components.

Template Parameters
TThe derived component type.
BaseThe base component type, defaults to basic_component.

Definition at line 90 of file basic_component.h.

Member Typedef Documentation

◆ base

template<typename T , typename Base = basic_component>
using unravel::component_crtp< T, Base >::base = Base

Definition at line 95 of file basic_component.h.

Member Data Documentation

◆ in_place_delete

template<typename T , typename Base = basic_component>
bool unravel::component_crtp< T, Base >::in_place_delete = true
staticconstexpr

Indicates if the component can be deleted in place.

Definition at line 93 of file basic_component.h.


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