EnTT 3.13.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
entt::as_view< Registry > Class Template Reference

Converts a registry to a view. More...

#include <helper.hpp>

Public Types

using registry_type = Registry
 Type of registry to convert.
 
using entity_type = typename registry_type::entity_type
 Underlying entity identifier.
 

Public Member Functions

 as_view (registry_type &source) noexcept
 Constructs a converter for a given registry.
 
template<typename Get , typename Exclude >
 operator basic_view< Get, Exclude > () const
 Conversion function from a registry to a view.
 

Detailed Description

template<typename Registry>
class entt::as_view< Registry >

Converts a registry to a view.

Template Parameters
RegistryBasic registry type.

Definition at line 22 of file helper.hpp.

Member Typedef Documentation

◆ entity_type

template<typename Registry >
using entt::as_view< Registry >::entity_type = typename registry_type::entity_type

Underlying entity identifier.

Definition at line 32 of file helper.hpp.

◆ registry_type

template<typename Registry >
using entt::as_view< Registry >::registry_type = Registry

Type of registry to convert.

Definition at line 30 of file helper.hpp.

Constructor & Destructor Documentation

◆ as_view()

template<typename Registry >
entt::as_view< Registry >::as_view ( registry_type source)
inlinenoexcept

Constructs a converter for a given registry.

Parameters
sourceA valid reference to a registry.

Definition at line 38 of file helper.hpp.

Member Function Documentation

◆ operator basic_view< Get, Exclude >()

template<typename Registry >
template<typename Get , typename Exclude >
entt::as_view< Registry >::operator basic_view< Get, Exclude > ( ) const
inline

Conversion function from a registry to a view.

Template Parameters
GetType of storage used to construct the view.
ExcludeTypes of storage used to filter the view.
Returns
A newly created view.

Definition at line 48 of file helper.hpp.


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