|
EnTT 4.0.0
|
Basic storage view implementation. More...
#include <view.hpp>
Public Types | |
| using | common_type = Type |
| Common type among all storage types. | |
| using | entity_type = common_type::entity_type |
| Underlying entity identifier. | |
| using | size_type = stl::size_t |
| Unsigned integer type. | |
| using | difference_type = stl::ptrdiff_t |
| Signed integer type. | |
| using | iterator = stl::conditional_t<Policy == deletion_policy::in_place, internal::view_iterator<common_type, true, 1u, 0u>, typename common_type::iterator> |
| Random access iterator type. | |
| using | reverse_iterator = stl::conditional_t<Policy == deletion_policy::in_place, void, typename common_type::reverse_iterator> |
| Reverse 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 element. | |
| size_type | size_hint () const noexcept |
| Estimates the number of entities iterated by the view. | |
| 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. |
| Policy | Storage policy. |
| using entt::basic_storage_view< Type, Policy >::common_type = Type |
| using entt::basic_storage_view< Type, Policy >::difference_type = stl::ptrdiff_t |
| using entt::basic_storage_view< Type, Policy >::entity_type = common_type::entity_type |
| using entt::basic_storage_view< Type, Policy >::iterator = stl::conditional_t<Policy == deletion_policy::in_place, internal::view_iterator<common_type, true, 1u, 0u>, typename common_type::iterator> |
| using entt::basic_storage_view< Type, Policy >::reverse_iterator = stl::conditional_t<Policy == deletion_policy::in_place, void, typename common_type::reverse_iterator> |
| using entt::basic_storage_view< Type, Policy >::size_type = stl::size_t |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlineexplicitnodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |