|
Blender V5.0
|
#include <shader_parser.hh>
Public Member Functions | |
| bool | is_valid () const |
| bool | is_invalid () const |
| IndexRange | index_range () const |
| Token | prev () const |
| Token | next () const |
| Token | find_next (TokenType type) const |
| Scope | first_containing_scope_of_type (const ScopeType type) const |
| Token | namespace_start () const |
| std::string | full_symbol_name () const |
| Token | next_not_whitespace () const |
| Scope | scope () const |
| size_t | str_index_start () const |
| size_t | str_index_last () const |
| size_t | str_index_last_no_whitespace () const |
| size_t | line_start () const |
| size_t | line_end () const |
| std::string | str_with_whitespace () const |
| std::string | str () const |
| std::string | str_exclusive () const |
| size_t | line_number () const |
| size_t | char_number () const |
| std::string | line_str () const |
| TokenType | type () const |
| bool | operator== (TokenType type) const |
| bool | operator!= (TokenType type) const |
| bool | operator== (char type) const |
| bool | operator!= (char type) const |
| bool | operator== (const Token &other) const |
| bool | operator!= (const Token &other) const |
Static Public Member Functions | |
| static Token | invalid () |
| static Token | from_position (const ParserData *data, int64_t index) |
Public Attributes | |
| std::string_view | str_view |
| const ParserData * | data |
| int64_t | index |
Definition at line 498 of file shader_parser.hh.
|
inline |
Definition at line 665 of file shader_parser.hh.
References data, and str_index_start().
Referenced by blender::gpu::shader::parser::ParserData::parse_scopes().
Definition at line 546 of file shader_parser.hh.
References is_valid(), next(), and type().
|
inline |
Definition at line 979 of file shader_parser.hh.
References blender::gpu::shader::parser::Global, blender::gpu::shader::parser::Scope::invalid(), scope(), blender::gpu::shader::parser::Scope::type(), and type().
|
inlinestatic |
Definition at line 510 of file shader_parser.hh.
References data, index, index_range(), and invalid().
Referenced by blender::gpu::shader::parser::Scope::end(), blender::gpu::shader::parser::Scope::find_token(), blender::gpu::shader::parser::Scope::foreach_match(), next(), blender::gpu::shader::parser::Scope::operator[](), blender::gpu::shader::parser::ParserData::parse_scopes(), prev(), and blender::gpu::shader::parser::Scope::start().
|
inline |
Definition at line 579 of file shader_parser.hh.
References namespace_start(), blender::gpu::shader::parser::ParserData::str, str_index_last_no_whitespace(), and str_index_start().
|
inline |
Definition at line 529 of file shader_parser.hh.
References data, index, and is_invalid().
Referenced by from_position(), str_index_last(), str_index_start(), and str_with_whitespace().
|
inlinestatic |
Definition at line 505 of file shader_parser.hh.
Referenced by blender::gpu::shader::parser::Scope::find_token(), blender::gpu::shader::parser::Scope::foreach_match(), and from_position().
|
inline |
Definition at line 523 of file shader_parser.hh.
References is_valid().
Referenced by index_range(), and type().
|
inline |
Definition at line 519 of file shader_parser.hh.
Referenced by blender::gpu::shader::parser::Scope::contains_token(), find_next(), is_invalid(), and namespace_start().
|
inline |
Definition at line 622 of file shader_parser.hh.
References data, pos, and str_index_start().
|
inline |
Definition at line 650 of file shader_parser.hh.
References data, and str_index_start().
Referenced by blender::gpu::shader::parser::ParserData::parse_scopes().
|
inline |
Definition at line 615 of file shader_parser.hh.
References data, pos, and str_index_start().
|
inline |
Definition at line 675 of file shader_parser.hh.
References data, and str_index_start().
Referenced by blender::gpu::shader::parser::ParserData::parse_scopes().
|
inline |
Definition at line 560 of file shader_parser.hh.
References is_valid(), prev(), and blender::gpu::shader::parser::Word.
Referenced by full_symbol_name().
|
inline |
Definition at line 541 of file shader_parser.hh.
References data, from_position(), and index.
Referenced by find_next(), and next_not_whitespace().
|
inline |
Definition at line 587 of file shader_parser.hh.
References next().
|
inline |
Definition at line 703 of file shader_parser.hh.
References type().
|
inline |
Definition at line 712 of file shader_parser.hh.
|
inline |
Definition at line 695 of file shader_parser.hh.
References type().
|
inline |
Definition at line 699 of file shader_parser.hh.
References type().
|
inline |
Definition at line 708 of file shader_parser.hh.
|
inline |
Definition at line 691 of file shader_parser.hh.
References type().
|
inline |
Definition at line 537 of file shader_parser.hh.
References data, from_position(), and index.
Referenced by namespace_start(), and blender::gpu::shader::parser::Scope::scope().
|
inline |
Definition at line 974 of file shader_parser.hh.
References data, blender::gpu::shader::parser::Scope::from_position(), and index.
Referenced by first_containing_scope_of_type(), and blender::gpu::shader::parser::Scope::scope().
|
inline |
Definition at line 633 of file shader_parser.hh.
References str(), and str_with_whitespace().
Referenced by str(), and str_exclusive().
|
inline |
Definition at line 640 of file shader_parser.hh.
References str().
|
inline |
Definition at line 604 of file shader_parser.hh.
References index_range(), and blender::gpu::shader::parser::IndexRange::last().
Referenced by blender::gpu::shader::parser::Parser::erase(), blender::gpu::shader::parser::Parser::insert_after(), blender::gpu::shader::parser::Parser::insert_line_number(), blender::gpu::shader::parser::Parser::replace(), blender::gpu::shader::parser::Parser::replace(), blender::gpu::shader::parser::Parser::replace_try(), str_index_last_no_whitespace(), and blender::gpu::shader::parser::Parser::substr_range_inclusive().
|
inline |
Definition at line 609 of file shader_parser.hh.
References data, and str_index_last().
Referenced by full_symbol_name(), blender::gpu::shader::parser::Parser::replace(), blender::gpu::shader::parser::Parser::replace(), and blender::gpu::shader::parser::Parser::replace_try().
|
inline |
Definition at line 599 of file shader_parser.hh.
References index_range(), and blender::gpu::shader::parser::IndexRange::start.
Referenced by char_number(), blender::gpu::shader::parser::Parser::erase(), full_symbol_name(), blender::gpu::shader::parser::Parser::insert_before(), line_end(), line_number(), line_start(), line_str(), blender::gpu::shader::parser::Parser::replace(), blender::gpu::shader::parser::Parser::replace(), blender::gpu::shader::parser::Parser::replace(), blender::gpu::shader::parser::Parser::replace_try(), and blender::gpu::shader::parser::Parser::substr_range_inclusive().
|
inline |
Definition at line 628 of file shader_parser.hh.
References data, index_range(), and size().
Referenced by str().
|
inline |
Definition at line 683 of file shader_parser.hh.
References data, index, blender::gpu::shader::parser::Invalid, and is_invalid().
Referenced by find_next(), first_containing_scope_of_type(), operator!=(), operator!=(), operator==(), and operator==().
| const ParserData* blender::gpu::shader::parser::Token::data |
Definition at line 502 of file shader_parser.hh.
Referenced by char_number(), from_position(), index_range(), is_valid(), line_end(), line_number(), line_start(), line_str(), next(), operator==(), prev(), scope(), str_index_last_no_whitespace(), str_with_whitespace(), and type().
| int64_t blender::gpu::shader::parser::Token::index |
Definition at line 503 of file shader_parser.hh.
Referenced by from_position(), index_range(), is_valid(), next(), operator==(), prev(), scope(), and type().
| std::string_view blender::gpu::shader::parser::Token::str_view |
Definition at line 500 of file shader_parser.hh.