|
tess 0.4.0
Performance-first tile and path simulation substrate
|
#include <tess/block/block.h>
Public Types | |
| using | world_type = std::remove_reference_t<World> |
| using | view_world_type |
Public Member Functions | |
| constexpr | BlockCtx (world_type &world, ChunkDomain domain, BlockScratch *scratch=nullptr, BlockDiagnostics *diagnostics=nullptr) noexcept |
| constexpr auto | world () const noexcept -> view_world_type & |
| constexpr auto | domain () const noexcept -> ChunkDomain |
| constexpr auto | policy () const noexcept -> WritePolicy |
| constexpr auto | size () const noexcept -> std::size_t |
| constexpr bool | empty () const noexcept |
| constexpr auto | scratch () noexcept -> BlockScratch * |
| constexpr auto | scratch () const noexcept -> const BlockScratch * |
| constexpr void | reset_scratch () const noexcept |
| constexpr auto | diagnostics () noexcept -> BlockDiagnostics * |
| constexpr auto | diagnostics () const noexcept -> const BlockDiagnostics * |
| constexpr void | reset_diagnostics () const noexcept |
| constexpr auto | chunk_view (ChunkKey key) const noexcept -> ChunkView< view_world_type > |
| template<typename Fn> | |
| constexpr void | for_each_chunk (Fn &&fn) const |
World and domain context passed to a policy-specialized block kernel.
| using tess::BlockCtx< World, Policy >::view_world_type |