libabigail
Loading...
Searching...
No Matches
symtab_iterator Class Reference

An iterator to walk a vector of elf_symbols filtered by symtab_filter. More...

#include <abg-symtab-reader.h>

Inheritance diagram for symtab_iterator:
[legend]

Public Types

using difference_type
 
using iterator_category
 
using iterator_concept
 
using pointer
 
using reference
 
using value_type
 

Public Member Functions

 symtab_iterator (base_iterator begin, base_iterator end, const symtab_filter &filter=symtab_filter())
 Construct the iterator based on a pair of underlying iterators and a symtab_filter object. Immediately fast forward to the next element that matches the criteria (if any).
 
symtab_iteratoroperator++ ()
 Pre-increment operator to advance to the next matching element.
 
symtab_iterator operator++ (int)
 Post-increment operator to advance to the next matching element.
 

Detailed Description

An iterator to walk a vector of elf_symbols filtered by symtab_filter.

The implementation inherits all properties from the vector's const_iterator, but intercepts where necessary to allow effective filtering. This makes it a STL compatible iterator for general purpose usage.

Definition at line 110 of file abg-symtab-reader.h.

Member Typedef Documentation

◆ difference_type

using difference_type

Definition at line 116 of file abg-symtab-reader.h.

◆ iterator_category

using iterator_category

Definition at line 117 of file abg-symtab-reader.h.

◆ iterator_concept

using iterator_concept

Definition at line 118 of file abg-symtab-reader.h.

◆ pointer

using pointer

Definition at line 115 of file abg-symtab-reader.h.

◆ reference

using reference

Definition at line 114 of file abg-symtab-reader.h.

◆ value_type

using value_type

Definition at line 113 of file abg-symtab-reader.h.

Constructor & Destructor Documentation

◆ symtab_iterator()

symtab_iterator ( base_iterator begin,
base_iterator end,
const symtab_filter & filter = symtab_filter() )
inline

Construct the iterator based on a pair of underlying iterators and a symtab_filter object. Immediately fast forward to the next element that matches the criteria (if any).

Parameters
beginthe underlying begin iterator
beginthe underlying end iterator
filterthe symtab_filter to apply

Definition at line 129 of file abg-symtab-reader.h.

Member Function Documentation

◆ operator++() [1/2]

symtab_iterator & operator++ ( )
inline

Pre-increment operator to advance to the next matching element.

Returns
itself after incrementing

Definition at line 139 of file abg-symtab-reader.h.

◆ operator++() [2/2]

symtab_iterator operator++ ( int )
inline

Post-increment operator to advance to the next matching element.

Returns
a copy of the iterator before incrementing

Definition at line 150 of file abg-symtab-reader.h.


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