#include <literal.hpp>
Classes | |
class | iterator |
struct | key_index |
struct | value_type |
Public Types | |
using | char_type = decltype(_char_type()) |
using | key_type = char_type |
using | mapped_type = T |
Public Member Functions | |
LEXY_CONSTEVAL | _symbol_table () |
constexpr iterator | begin () const noexcept |
template<typename CaseFoldingDSL > | |
LEXY_CONSTEVAL auto | case_folding (CaseFoldingDSL) const |
constexpr iterator | end () const noexcept |
template<typename SymbolString , typename... Args> | |
LEXY_CONSTEVAL auto | map (Args &&... args) const |
template<auto C, typename... Args> | |
LEXY_CONSTEVAL auto | map (Args &&... args) const |
template<typename CharT , CharT... C, typename... Args> | |
LEXY_CONSTEVAL auto | map (lexyd::_lit< CharT, C... >, Args &&... args) const |
constexpr const T & | operator[] (key_index idx) const noexcept |
template<typename Input > | |
constexpr key_index | parse (const Input &input) const |
template<typename Reader > | |
constexpr key_index | try_parse (Reader &reader) const |
Static Public Member Functions | |
static constexpr bool | empty () noexcept |
static constexpr std::size_t | size () noexcept |
Private Member Functions | |
template<std::size_t... Idx, template< typename > typename OtherCaseFolding> | |
constexpr | _symbol_table (lexy::_detail::index_sequence< Idx... >, const _symbol_table< T, OtherCaseFolding, Strings... > &table) |
template<std::size_t... Idx, typename... Args> | |
constexpr | _symbol_table (lexy::_detail::index_sequence< Idx... >, const T *data, Args &&... args) |
Static Private Member Functions | |
template<typename Encoding > | |
static LEXY_CONSTEVAL auto | _build_trie () |
static auto | _char_type () |
Private Attributes | |
std::conditional_t< empty(), char, T > | _data [empty() ? 1 :size()] |
Static Private Attributes | |
static constexpr auto | _max_char_count = (0 + ... + Strings::size) |
template<typename Encoding > | |
static constexpr lexy::_detail::lit_trie< Encoding, CaseFolding, _max_char_count > | _trie = _build_trie<Encoding>() |
Friends | |
template<typename , template< typename > typename, typename... > | |
class | _symbol_table |
Definition at line 492 of file literal.hpp.
using lexy::_symbol_table< T, CaseFolding, Strings >::char_type = decltype(_char_type()) |
Definition at line 29 of file symbol.hpp.
using lexy::_symbol_table< T, CaseFolding, Strings >::key_type = char_type |
Definition at line 30 of file symbol.hpp.
using lexy::_symbol_table< T, CaseFolding, Strings >::mapped_type = T |
Definition at line 31 of file symbol.hpp.
|
inline |
Definition at line 40 of file symbol.hpp.
|
inlineexplicitconstexprprivate |
Definition at line 226 of file symbol.hpp.
|
inlineexplicitconstexprprivate |
Definition at line 232 of file symbol.hpp.
|
inlinestaticprivate |
Definition at line 212 of file symbol.hpp.
|
inlinestaticprivate |
Definition at line 20 of file symbol.hpp.
|
inlineconstexprnoexcept |
Definition at line 144 of file symbol.hpp.
|
inline |
Definition at line 43 of file symbol.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 85 of file symbol.hpp.
|
inlineconstexprnoexcept |
Definition at line 148 of file symbol.hpp.
|
inline |
Definition at line 50 of file symbol.hpp.
|
inline |
Definition at line 72 of file symbol.hpp.
|
inline |
Definition at line 79 of file symbol.hpp.
|
inlineconstexprnoexcept |
Definition at line 202 of file symbol.hpp.
|
inlineconstexpr |
Definition at line 192 of file symbol.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 90 of file symbol.hpp.
|
inlineconstexpr |
Definition at line 179 of file symbol.hpp.
|
friend |
Definition at line 240 of file symbol.hpp.
|
private |
Definition at line 237 of file symbol.hpp.
|
staticconstexprprivate |
Definition at line 209 of file symbol.hpp.
|
staticconstexprprivate |
Definition at line 223 of file symbol.hpp.