slang::ast::Scope::iterator class

An iterator for members in the scope.

Base classes

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

Constructors, destructors, conversion operators

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

Public functions

auto dereference() const -> const Symbol&
Dereferences the iterator, resolving it to a symbol.
void increment()
Advances the iterator to the next symbol in the scope.
auto equals(const iterator& other) const -> bool

Function documentation

bool slang::ast::Scope::iterator::equals(const iterator& other) const

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