EnTT 3.14.0
|
Basic storage view implementation. More...
#include <view.hpp>
Public Types | |
using | common_type = Type |
Common type among all storage types. | |
using | entity_type = typename Type::entity_type |
Underlying entity identifier. | |
using | size_type = std::size_t |
Unsigned integer type. | |
using | iterator = internal::view_iterator<common_type, Get, Exclude> |
Forward iterator type. | |
Public Member Functions | |
void | refresh () noexcept |
Updates the internal leading view if required. | |
const common_type * | handle () const noexcept |
Returns the leading storage of a view, if any. | |
size_type | size_hint () const noexcept |
Estimates the number of entities iterated by the view. | |
iterator | begin () const noexcept |
Returns an iterator to the first entity of the view. | |
iterator | end () const noexcept |
Returns an iterator that is past the last entity of the view. | |
entity_type | front () const noexcept |
Returns the first entity of the view, if any. | |
entity_type | back () const noexcept |
Returns the last entity of the view, if any. | |
iterator | find (const entity_type entt) const noexcept |
Finds an entity. | |
operator bool () const noexcept | |
Checks if a view is fully initialized. | |
bool | contains (const entity_type entt) const noexcept |
Checks if a view contains an entity. | |
Friends | |
template<typename Return , typename View , typename Other , std::size_t... GLhs, std::size_t... ELhs, std::size_t... GRhs, std::size_t... ERhs> | |
Return | internal::view_pack (const View &, const Other &, std::index_sequence< GLhs... >, std::index_sequence< ELhs... >, std::index_sequence< GRhs... >, std::index_sequence< ERhs... >) |
Basic storage view implementation.
Type | Common type among all storage types. |
Get | Number of storage iterated by the view. |
Exclude | Number of storage used to filter the view. |
using entt::basic_common_view< Type, Get, Exclude >::common_type = Type |
using entt::basic_common_view< Type, Get, Exclude >::iterator = internal::view_iterator<common_type, Get, Exclude> |
using entt::basic_common_view< Type, Get, Exclude >::size_type = std::size_t |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |