|
EnTT 3.13.2
|
Basic storage view implementation. More...
#include <view.hpp>
Public Types | |
| using | common_type = Type |
| Common type among all storage types. | |
| using | entity_type = typename common_type::entity_type |
| Underlying entity identifier. | |
| using | size_type = std::size_t |
| Unsigned integer type. | |
| using | iterator = typename common_type::iterator |
| Random access iterator type. | |
| using | reverse_iterator = typename common_type::reverse_iterator |
| Reversed iterator type. | |
Public Member Functions | |
| const common_type * | handle () const noexcept |
| Returns the leading storage of a view, if any. | |
| size_type | size () const noexcept |
| Returns the number of entities that have the given component. | |
| bool | empty () const noexcept |
| Checks whether a view is empty. | |
| 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. | |
| reverse_iterator | rbegin () const noexcept |
| Returns an iterator to the first entity of the reversed view. | |
| reverse_iterator | rend () const noexcept |
| Returns an iterator that is past the last entity of the reversed 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. | |
Basic storage view implementation.
| Type | Common type among all storage types. |
| using entt::basic_storage_view< Type >::common_type = Type |
| using entt::basic_storage_view< Type >::entity_type = typename common_type::entity_type |
| using entt::basic_storage_view< Type >::iterator = typename common_type::iterator |
| using entt::basic_storage_view< Type >::reverse_iterator = typename common_type::reverse_iterator |
| using entt::basic_storage_view< Type >::size_type = std::size_t |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |