|
Blender V5.0
|
#include <shader_parser.hh>
Public Member Functions | |
| Parser (const std::string &input, ParserData::report_callback &report_error, bool keep_whitespace=false) | |
| void | foreach_scope (ScopeType type, std::function< void(Scope)> callback) |
| void | foreach_match (const std::string &pattern, std::function< void(const std::vector< Token >)> callback) |
| void | foreach_token (const TokenType token_type, std::function< void(const Token)> callback) |
| void | foreach_function (std::function< void(bool is_static, Token type, Token name, Scope args, bool is_const, Scope body)> callback) |
| std::string | substr_range_inclusive (size_t start, size_t end) |
| std::string | substr_range_inclusive (Token start, Token end) |
| bool | replace_try (size_t from, size_t to, const std::string &replacement) |
| bool | replace_try (Token from, Token to, const std::string &replacement, bool keep_trailing_whitespaces=false) |
| void | replace (size_t from, size_t to, const std::string &replacement) |
| void | replace (Token from, Token to, const std::string &replacement) |
| void | replace (Token tok, const std::string &replacement, bool keep_trailing_whitespaces=false) |
| void | replace (Scope scope, const std::string &replacement, bool keep_trailing_whitespaces=false) |
| void | erase (size_t from, size_t to) |
| void | erase (Token from, Token to) |
| void | erase (Token tok) |
| void | erase (Scope scope) |
| void | insert_after (size_t at, const std::string &content) |
| void | insert_after (Token at, const std::string &content) |
| void | insert_line_number (size_t at, int line) |
| void | insert_line_number (Token at, int line) |
| void | insert_before (size_t at, const std::string &content) |
| void | insert_before (Token at, const std::string &content) |
| bool | only_apply_mutations () |
| bool | apply_mutations () |
| const std::string & | result_get () |
| const ParserData & | data_get () |
| std::string | serialize_mutations () const |
| void | print_stats () |
| void | debug_print () |
Definition at line 1222 of file shader_parser.hh.
|
inline |
Definition at line 1253 of file shader_parser.hh.
References input.
|
inline |
Definition at line 1477 of file shader_parser.hh.
References only_apply_mutations().
|
inline |
Definition at line 1494 of file shader_parser.hh.
|
inline |
Definition at line 1559 of file shader_parser.hh.
|
inline |
Definition at line 1413 of file shader_parser.hh.
References blender::gpu::shader::parser::Scope::end(), erase(), and blender::gpu::shader::parser::Scope::start().
|
inline |
Definition at line 1388 of file shader_parser.hh.
References replace(), blender::gpu::shader::parser::IndexRange::size, and blender::gpu::shader::parser::IndexRange::start.
Definition at line 1401 of file shader_parser.hh.
References erase(), blender::gpu::shader::parser::Token::str_index_last(), and blender::gpu::shader::parser::Token::str_index_start().
|
inline |
Definition at line 1407 of file shader_parser.hh.
References erase().
|
inline |
Definition at line 1286 of file shader_parser.hh.
References blender::gpu::shader::parser::Const, foreach_match(), name, and blender::gpu::shader::parser::Static.
|
inline |
Definition at line 1272 of file shader_parser.hh.
References blender::gpu::shader::parser::Scope::foreach_match(), foreach_scope(), and blender::gpu::shader::parser::Global.
Referenced by foreach_function(), and foreach_token().
|
inline |
Definition at line 1263 of file shader_parser.hh.
References blender::gpu::shader::parser::Scope::from_position(), and pos.
Referenced by foreach_match().
|
inline |
Definition at line 1279 of file shader_parser.hh.
References foreach_match(), and str.
|
inline |
Definition at line 1418 of file shader_parser.hh.
Referenced by insert_after(), insert_before(), and insert_line_number().
|
inline |
Definition at line 1423 of file shader_parser.hh.
References insert_after(), and blender::gpu::shader::parser::Token::str_index_last().
|
inline |
Definition at line 1437 of file shader_parser.hh.
|
inline |
Definition at line 1442 of file shader_parser.hh.
References insert_after(), and blender::gpu::shader::parser::Token::str_index_start().
|
inline |
Definition at line 1428 of file shader_parser.hh.
References insert_after().
Referenced by insert_line_number().
|
inline |
Definition at line 1432 of file shader_parser.hh.
References insert_line_number(), and blender::gpu::shader::parser::Token::str_index_last().
|
inline |
Definition at line 1448 of file shader_parser.hh.
Referenced by apply_mutations(), and result_get().
|
inline |
Definition at line 1550 of file shader_parser.hh.
|
inline |
Definition at line 1352 of file shader_parser.hh.
References assert, and replace_try().
|
inline |
Definition at line 1359 of file shader_parser.hh.
References replace(), blender::gpu::shader::parser::Token::str_index_last(), and blender::gpu::shader::parser::Token::str_index_start().
|
inline |
Definition at line 1364 of file shader_parser.hh.
References replace(), blender::gpu::shader::parser::Token::str_index_last(), blender::gpu::shader::parser::Token::str_index_last_no_whitespace(), and blender::gpu::shader::parser::Token::str_index_start().
|
inline |
Definition at line 1327 of file shader_parser.hh.
Referenced by replace(), and replace_try().
|
inline |
Definition at line 1340 of file shader_parser.hh.
References replace_try(), blender::gpu::shader::parser::Token::str_index_last(), blender::gpu::shader::parser::Token::str_index_last_no_whitespace(), and blender::gpu::shader::parser::Token::str_index_start().
|
inline |
Definition at line 1487 of file shader_parser.hh.
References only_apply_mutations().
|
inline |
Definition at line 1500 of file shader_parser.hh.
References out.
|
inline |
Definition at line 1316 of file shader_parser.hh.
Referenced by substr_range_inclusive().
|
inline |
Definition at line 1320 of file shader_parser.hh.
References blender::gpu::shader::parser::Token::str_index_last(), blender::gpu::shader::parser::Token::str_index_start(), and substr_range_inclusive().