sandbox
Loading...
Searching...
No Matches
sbx::ecs::detail::basic_common_view< Type, IsChecked, Get, Exclude > Class Template Reference

Public Types

using common_type = Type
 
using entity_type = typename Type::entity_type
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using iterator = detail::view_iterator< common_type, IsChecked, Get, Exclude >
 

Public Member Functions

auto refresh () noexcept -> void
 
auto handle () const noexcept -> const common_type *
 
auto size_hint () const noexcept -> size_type
 
auto begin () const noexcept -> iterator
 
auto end () const noexcept -> iterator
 
auto front () const noexcept -> entity_type
 
auto back () const noexcept -> entity_type
 
auto find (const entity_type entity) const noexcept -> iterator
 
 operator bool () const noexcept
 
auto contains (const entity_type entity) const noexcept -> bool
 

Protected Member Functions

 basic_common_view (std::array< const common_type *, Get > pools, std::array< const common_type *, Exclude > filter) noexcept
 
auto pool_at (const size_type position) const noexcept -> const common_type *
 
auto set_pool_at (const size_type position, const common_type *element) noexcept -> void
 
auto use (const size_type position) noexcept -> void
 

Friends

template<typename Return , typename View , typename Other , std::size_t... GetLhs, std::size_t... GetRhs>
auto view_pack (const View &, const Other &, std::index_sequence< GetLhs... >, std::index_sequence< GetRhs... >) -> Return
 

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