tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::FieldSchema< Fields > Struct Template Reference

#include <tess/storage/chunk_page.h>

Public Types

template<typename Tag>
using value_type = detail::FieldValue<Tag, Fields...>::type

Static Public Attributes

static constexpr std::size_t field_count = sizeof...(Fields)
template<typename Tag>
static constexpr bool contains = detail::contains_field_tag_v<Tag, Fields...>
template<typename Tag>
static constexpr std::size_t index

Detailed Description

template<typename... Fields>
struct tess::FieldSchema< Fields >

Compile-time schema for the fields stored by each chunk page.

Field values are stored independently in structure-of-arrays layout. All tags must be unique; requesting a tag not in the schema is a compile-time error.

Member Data Documentation

◆ index

template<typename... Fields>
template<typename Tag>
std::size_t tess::FieldSchema< Fields >::index
staticconstexpr
Initial value:
=
detail::FieldIndex<Tag, 0, Fields...>::value

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