Blender V5.3
blender::gpu::TokenStream::Iterator Struct Reference

Public Member Functions

 Iterator (const TokenStream &stream, const Token *tok)
 Iterator (const Iterator &other)=default
bool is_valid () const
TokenType type () const
TokenAtom atom () const
std::string_view str () const
bool followed_by_whitespace () const
Iterator next () const
Iterator prev () const
Iterator & operator++ ()
const Iterator & operator* ()

Public Attributes

const TokenStream * stream
const Token * tok

Friends

bool operator== (const Iterator &a, const Iterator &b)
bool operator!= (const Iterator &a, const Iterator &b)
bool operator== (const Iterator &a, TokenType b)
bool operator!= (const Iterator &a, TokenType b)

Detailed Description

Definition at line 600 of file gpu_shader_preprocessor.cc.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

blender::gpu::TokenStream::Iterator::Iterator ( const TokenStream & stream,
const Token * tok )
inline

◆ Iterator() [2/2]

blender::gpu::TokenStream::Iterator::Iterator ( const Iterator & other)
default

References Iterator().

Member Function Documentation

◆ atom()

TokenAtom blender::gpu::TokenStream::Iterator::atom ( ) const
inline

Definition at line 616 of file gpu_shader_preprocessor.cc.

References lexit::Token::atom(), and tok.

◆ followed_by_whitespace()

bool blender::gpu::TokenStream::Iterator::followed_by_whitespace ( ) const
inline

Definition at line 626 of file gpu_shader_preprocessor.cc.

References lexit::Token::flag, and tok.

Referenced by blender::gpu::TokenStream::operator<<().

◆ is_valid()

bool blender::gpu::TokenStream::Iterator::is_valid ( ) const
inline

Definition at line 607 of file gpu_shader_preprocessor.cc.

References tok.

◆ next()

Iterator blender::gpu::TokenStream::Iterator::next ( ) const
inline

Definition at line 631 of file gpu_shader_preprocessor.cc.

References Iterator(), stream, tok, and blender::gpu::TokenStream::tokens.

◆ operator*()

const Iterator & blender::gpu::TokenStream::Iterator::operator* ( )
inline

Definition at line 675 of file gpu_shader_preprocessor.cc.

References Iterator().

◆ operator++()

Iterator & blender::gpu::TokenStream::Iterator::operator++ ( )
inline

Definition at line 665 of file gpu_shader_preprocessor.cc.

References Iterator(), stream, tok, and blender::gpu::TokenStream::tokens.

◆ prev()

Iterator blender::gpu::TokenStream::Iterator::prev ( ) const
inline

Definition at line 638 of file gpu_shader_preprocessor.cc.

References Iterator(), stream, tok, and blender::gpu::TokenStream::tokens.

◆ str()

std::string_view blender::gpu::TokenStream::Iterator::str ( ) const
inline

Definition at line 621 of file gpu_shader_preprocessor.cc.

References lexit::Token::str(), and tok.

◆ type()

TokenType blender::gpu::TokenStream::Iterator::type ( ) const
inline

Definition at line 612 of file gpu_shader_preprocessor.cc.

References lexit::Invalid, tok, and lexit::Token::type().

Referenced by operator!=, and operator==.

◆ operator!= [1/2]

bool operator!= ( const Iterator & a,
const Iterator & b )
friend

Definition at line 650 of file gpu_shader_preprocessor.cc.

References b, Iterator(), and tok.

◆ operator!= [2/2]

bool operator!= ( const Iterator & a,
TokenType b )
friend

Definition at line 659 of file gpu_shader_preprocessor.cc.

References b, Iterator(), and type().

◆ operator== [1/2]

bool operator== ( const Iterator & a,
const Iterator & b )
friend

Definition at line 646 of file gpu_shader_preprocessor.cc.

References b, Iterator(), and tok.

◆ operator== [2/2]

bool operator== ( const Iterator & a,
TokenType b )
friend

Definition at line 655 of file gpu_shader_preprocessor.cc.

References b, Iterator(), and type().

Member Data Documentation

◆ stream

const TokenStream* blender::gpu::TokenStream::Iterator::stream

Definition at line 601 of file gpu_shader_preprocessor.cc.

Referenced by Iterator(), next(), operator++(), and prev().

◆ tok

const Token* blender::gpu::TokenStream::Iterator::tok

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