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

#include <tess/block/block.h>

Public Types

using world_type = std::remove_reference_t<World>
using mutable_world_type = std::remove_cv_t<world_type>
using shape_type = mutable_world_type::shape_type
using page_type
using meta_type

Public Member Functions

constexpr ChunkView (world_type &world, ChunkKey key) noexcept
constexpr auto page () const noexcept -> page_type &
constexpr auto meta () const noexcept -> meta_type &
constexpr auto key () const noexcept -> ChunkKey
constexpr auto coord () const noexcept -> ChunkCoord3
constexpr auto bounds () const noexcept -> Box3
constexpr auto world_coord (Coord3 local_candidate) const noexcept -> Coord3
constexpr auto world_coord (LocalCoord3 coord) const noexcept -> Coord3
constexpr auto world_coord (LocalTileId id) const noexcept -> Coord3
template<typename Fn>
constexpr void for_each_tile (Fn &&fn) const
template<typename Tag>
constexpr auto field_span () const noexcept

Static Public Member Functions

static constexpr auto local_bounds () noexcept -> Box3
static constexpr bool contains_local (Coord3 coord) noexcept
static constexpr auto try_local_coord (Coord3 coord) noexcept -> std::optional< LocalCoord3 >
static constexpr auto local_coord (LocalTileId id) noexcept -> LocalCoord3
static constexpr auto local_tile_id (LocalCoord3 coord) noexcept -> LocalTileId
static constexpr bool is_boundary (LocalCoord3 coord) noexcept
static constexpr bool is_interior (LocalCoord3 coord) noexcept

Detailed Description

template<typename World>
class tess::ChunkView< World >

Policy-qualified access to one chunk page, metadata record, and bounds.

Member Typedef Documentation

◆ meta_type

template<typename World>
using tess::ChunkView< World >::meta_type
Initial value:
std::conditional_t<std::is_const_v<world_type>,
Definition chunk_meta.h:26

◆ page_type

template<typename World>
using tess::ChunkView< World >::page_type
Initial value:
std::conditional_t<std::is_const_v<world_type>,
const typename mutable_world_type::page_type,
typename mutable_world_type::page_type>

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