template<typename SpecificType>
slang::ast::Scope::specific_symbol_iterator class

An iterator for members in the scope of the specified type.

Base classes

template<typename Derived, bool Contiguous = false>
class slang::iterator_facade<specific_symbol_iterator<SpecificType>>
Iterator facade which infers iterator types and functionality.

Constructors, destructors, conversion operators

specific_symbol_iterator()
Constructs a default iterator that points nowhere.
specific_symbol_iterator(const Symbol* firstSymbol)
Constructs an iterator pointing at the given child symbol in the scope.

Public functions

auto dereference() const -> const SpecificType&
Dereferences the iterator, resolving it to a symbol.
void increment()
Advances the iterator to the next symbol in the scope that is of the desired type.
auto equals(const specific_symbol_iterator& other) const -> bool

Function documentation

template<typename SpecificType>
slang::ast::Scope::specific_symbol_iterator<SpecificType>::specific_symbol_iterator(const Symbol* firstSymbol)

Constructs an iterator pointing at the given child symbol in the scope.

template<typename SpecificType>
bool slang::ast::Scope::specific_symbol_iterator<SpecificType>::equals(const specific_symbol_iterator& other) const

Returns true if the given iterator is equal to this one.