clang  6.0.0svn
Public Types | Public Member Functions | Friends | List of all members
clang::specific_attr_iterator< SpecificAttr, Container > Class Template Reference

specific_attr_iterator - Iterates over a subrange of an AttrVec, only providing attributes that are of a specific type. More...

#include "clang/AST/AttrIterator.h"

Public Types

using value_type = SpecificAttr *
 
using reference = SpecificAttr *
 
using pointer = SpecificAttr *
 
using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 specific_attr_iterator ()=default
 
 specific_attr_iterator (Iterator i)
 
reference operator* () const
 
pointer operator-> () const
 
specific_attr_iteratoroperator++ ()
 
specific_attr_iterator operator++ (int)
 

Friends

bool operator== (specific_attr_iterator Left, specific_attr_iterator Right)
 
bool operator!= (specific_attr_iterator Left, specific_attr_iterator Right)
 

Detailed Description

template<typename SpecificAttr, typename Container = AttrVec>
class clang::specific_attr_iterator< SpecificAttr, Container >

specific_attr_iterator - Iterates over a subrange of an AttrVec, only providing attributes that are of a specific type.

Definition at line 54 of file AttrIterator.h.

Member Typedef Documentation

◆ difference_type

template<typename SpecificAttr, typename Container = AttrVec>
using clang::specific_attr_iterator< SpecificAttr, Container >::difference_type = std::ptrdiff_t

Definition at line 81 of file AttrIterator.h.

◆ iterator_category

template<typename SpecificAttr, typename Container = AttrVec>
using clang::specific_attr_iterator< SpecificAttr, Container >::iterator_category = std::forward_iterator_tag

Definition at line 80 of file AttrIterator.h.

◆ pointer

template<typename SpecificAttr, typename Container = AttrVec>
using clang::specific_attr_iterator< SpecificAttr, Container >::pointer = SpecificAttr *

Definition at line 79 of file AttrIterator.h.

◆ reference

template<typename SpecificAttr, typename Container = AttrVec>
using clang::specific_attr_iterator< SpecificAttr, Container >::reference = SpecificAttr *

Definition at line 78 of file AttrIterator.h.

◆ value_type

template<typename SpecificAttr, typename Container = AttrVec>
using clang::specific_attr_iterator< SpecificAttr, Container >::value_type = SpecificAttr *

Definition at line 77 of file AttrIterator.h.

Constructor & Destructor Documentation

◆ specific_attr_iterator() [1/2]

template<typename SpecificAttr, typename Container = AttrVec>
clang::specific_attr_iterator< SpecificAttr, Container >::specific_attr_iterator ( )
default

◆ specific_attr_iterator() [2/2]

template<typename SpecificAttr, typename Container = AttrVec>
clang::specific_attr_iterator< SpecificAttr, Container >::specific_attr_iterator ( Iterator  i)
inlineexplicit

Definition at line 84 of file AttrIterator.h.

Member Function Documentation

◆ operator*()

template<typename SpecificAttr, typename Container = AttrVec>
reference clang::specific_attr_iterator< SpecificAttr, Container >::operator* ( ) const
inline

Definition at line 86 of file AttrIterator.h.

◆ operator++() [1/2]

template<typename SpecificAttr, typename Container = AttrVec>
specific_attr_iterator& clang::specific_attr_iterator< SpecificAttr, Container >::operator++ ( )
inline

Definition at line 95 of file AttrIterator.h.

◆ operator++() [2/2]

template<typename SpecificAttr, typename Container = AttrVec>
specific_attr_iterator clang::specific_attr_iterator< SpecificAttr, Container >::operator++ ( int  )
inline

Definition at line 99 of file AttrIterator.h.

◆ operator->()

template<typename SpecificAttr, typename Container = AttrVec>
pointer clang::specific_attr_iterator< SpecificAttr, Container >::operator-> ( ) const
inline

Definition at line 90 of file AttrIterator.h.

Friends And Related Function Documentation

◆ operator!=

template<typename SpecificAttr, typename Container = AttrVec>
bool operator!= ( specific_attr_iterator< SpecificAttr, Container >  Left,
specific_attr_iterator< SpecificAttr, Container >  Right 
)
friend

Definition at line 114 of file AttrIterator.h.

◆ operator==

template<typename SpecificAttr, typename Container = AttrVec>
bool operator== ( specific_attr_iterator< SpecificAttr, Container >  Left,
specific_attr_iterator< SpecificAttr, Container >  Right 
)
friend

Definition at line 105 of file AttrIterator.h.


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