|
const common_type * | handle () const noexcept |
| Returns the leading storage of a view, if any.
|
|
template<typename... , deletion_policy Pol = Policy> |
std::enable_if_t< Pol !=deletion_policy::in_place, size_type > | size () const noexcept |
| Returns the number of entities that have the given element.
|
|
template<typename... , deletion_policy Pol = Policy> |
std::enable_if_t< Pol==deletion_policy::in_place, size_type > | size_hint () const noexcept |
| Estimates the number of entities iterated by the view.
|
|
template<typename... , deletion_policy Pol = Policy> |
std::enable_if_t< Pol !=deletion_policy::in_place, 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.
|
|
template<typename... , deletion_policy Pol = Policy> |
std::enable_if_t< Pol !=deletion_policy::in_place, reverse_iterator > | rbegin () const noexcept |
| Returns an iterator to the first entity of the reversed view.
|
|
template<typename... , deletion_policy Pol = Policy> |
std::enable_if_t< Pol !=deletion_policy::in_place, 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.
- Warning
- For internal use only, backward compatibility not guaranteed.
- Template Parameters
-
Type | Common type among all storage types. |
Policy | Storage policy. |
Definition at line 659 of file view.hpp.