|
co_ecs 0.9.0
Cobalt ECS
|
A type aware view into a chunk components. More...
#include <chunk.hpp>
Classes | |
| class | iterator |
| Chunk view iterator. More... | |
Public Types | |
| using | chunk_type = std::conditional_t<is_const, const chunk&, chunk&> |
Public Member Functions | |
| chunk_view (chunk_type c) | |
| Construct a new chunk view object. | |
| constexpr auto | begin () noexcept -> iterator |
| Return iterator to the beginning of a chunk. | |
| constexpr auto | end () noexcept -> iterator |
| Return iterator to the end of a chunk. | |
Static Public Attributes | |
| static constexpr bool | is_const = const_component_references_v<Args...> |
| Const when all component references are const. | |
A type aware view into a chunk components.
| Args | Components |
| using co_ecs::chunk_view< Args >::chunk_type = std::conditional_t<is_const, const chunk&, chunk&> |
|
inlineexplicit |
Construct a new chunk view object.
| c | Chunk reference |
|
inlineconstexprnoexcept |
Return iterator to the beginning of a chunk.
|
inlineconstexprnoexcept |
Return iterator to the end of a chunk.
|
staticconstexpr |
Const when all component references are const.