libabigail
Public Types | Public Member Functions | List of all members
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

typedef base_iterator::difference_type difference_type
 
typedef std::forward_iterator_tag iterator_category
 
typedef base_iterator::pointer pointer
 
typedef base_iterator::reference reference
 
typedef base_iterator::value_type 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). More...
 
symtab_iteratoroperator++ ()
 Pre-increment operator to advance to the next matching element. More...
 
symtab_iterator operator++ (int)
 Post-increment operator to advance to the next matching element. More...
 

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.

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 128 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 138 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 149 of file abg-symtab-reader.h.


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