tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::BlockCtx< World, Policy > Class Template Reference

#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

Detailed Description

template<typename World, WritePolicy Policy>
class tess::BlockCtx< World, Policy >

World and domain context passed to a policy-specialized block kernel.

Member Typedef Documentation

◆ view_world_type

template<typename World, WritePolicy Policy>
using tess::BlockCtx< World, Policy >::view_world_type
Initial value:
std::conditional_t<Policy == WritePolicy::ReadOnly,
const std::remove_const_t<world_type>, world_type>

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