OpenLexocad  27.1
entt::as_group< Const, Entity > Struct Template Reference

Converts a registry to a group. More...

#include <entt.hpp>

Public Types

using registry_type = std::conditional_t< Const, const entt::basic_registry< Entity >, entt::basic_registry< Entity > >
 Type of registry to convert. More...
 

Public Member Functions

 as_group (registry_type &source) ENTT_NOEXCEPT
 Constructs a converter for a given registry. More...
 
template<typename Exclude , typename Get , typename... Owned>
 operator entt::basic_group< Entity, Exclude, Get, Owned... > () const
 Conversion function from a registry to a group. More...
 

Detailed Description

template<bool Const, typename Entity>
struct entt::as_group< Const, Entity >

Converts a registry to a group.

Template Parameters
ConstConstness of the accepted registry.
EntityA valid entity type (see entt_traits for more details).

Member Typedef Documentation

◆ registry_type

template<bool Const, typename Entity >
using entt::as_group< Const, Entity >::registry_type = std::conditional_t<Const, const entt::basic_registry<Entity>, entt::basic_registry<Entity> >

Type of registry to convert.

Constructor & Destructor Documentation

◆ as_group()

template<bool Const, typename Entity >
entt::as_group< Const, Entity >::as_group ( registry_type source)
inline

Constructs a converter for a given registry.

Parameters
sourceA valid reference to a registry.

Member Function Documentation

◆ operator entt::basic_group< Entity, Exclude, Get, Owned... >()

template<bool Const, typename Entity >
template<typename Exclude , typename Get , typename... Owned>
entt::as_group< Const, Entity >::operator entt::basic_group< Entity, Exclude, Get, Owned... > ( ) const
inline

Conversion function from a registry to a group.

Template Parameters
ExcludeTypes of components used to filter the group.
GetTypes of components observed by the group.
OwnedTypes of components owned by the group.
Returns
A newly created group.

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