|
Blender V5.3
|
#include <identifier.hh>
Classes | |
| struct | Identifier |
Public Member Functions | |
| IdentifierMap () | |
| void | reserve (int token_count) |
| TokenAtom | max_atom_value () const |
| template<typename StringT> | |
| INLINE_METHOD TokenAtom | lookup_or_add (StringT str) |
| TokenAtom | add_after (uint32_t hash, std::string_view str, Identifier *id=nullptr) |
| Keyword | make_keyword (std::string_view str, TokenType type) |
Static Public Member Functions | |
| static constexpr uint32_t | str_hash (std::string_view s) |
Public Attributes | |
| lexit::Vector< Identifier > | identifier_buffer |
| std::array< uint16_t, hash_table_size > | hash_table |
Static Public Attributes | |
| static constexpr uint32_t | hash_table_size = 16384 |
| static constexpr uint32_t | hash_table_index_mask = (hash_table_size - 1) |
Definition at line 79 of file identifier.hh.
|
inline |
Definition at line 113 of file identifier.hh.
References hash_table.
|
inline |
Definition at line 155 of file identifier.hh.
References lexit::Vector< T >::end(), hash, hash_table, hash_table_index_mask, identifier_buffer, lexit::Vector< T >::increase_size_by_unchecked(), lexit::Vector< T >::reserve(), lexit::Vector< T >::size(), and str.
Referenced by lookup_or_add().
|
inline |
Definition at line 140 of file identifier.hh.
References add_after(), hash, lexit::IdentifierMap::Identifier::hash, hash_table, hash_table_index_mask, identifier_buffer, index, INLINE_METHOD, str, and str_hash().
Referenced by blender::gpu::AtomicLexer::hash(), blender::gpu::AtomicLexer::lex_pass(), and make_keyword().
Definition at line 185 of file identifier.hh.
References lexit::Keyword::Keyword(), lookup_or_add(), and str.
Referenced by blender::gpu::AtomicLexer::lex_pass().
|
inline |
Definition at line 125 of file identifier.hh.
References identifier_buffer, and lexit::Vector< T >::size().
Referenced by blender::gpu::AtomicLexer::max_atom_value().
|
inline |
Definition at line 119 of file identifier.hh.
References identifier_buffer, and lexit::Vector< T >::reserve().
Referenced by blender::gpu::AtomicLexer::lex_pass().
|
inlinestaticconstexpr |
| std::array<uint16_t, hash_table_size> lexit::IdentifierMap::hash_table |
Definition at line 111 of file identifier.hh.
Referenced by add_after(), IdentifierMap(), and lookup_or_add().
|
staticconstexpr |
Definition at line 110 of file identifier.hh.
Referenced by add_after(), and lookup_or_add().
|
staticconstexpr |
Definition at line 109 of file identifier.hh.
| lexit::Vector<Identifier> lexit::IdentifierMap::identifier_buffer |
Definition at line 106 of file identifier.hh.
Referenced by add_after(), lookup_or_add(), max_atom_value(), and reserve().