LLVM 20.0.0git
Public Types | Public Member Functions | Friends | List of all members
llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers > Class Template Reference

arg_iterator - Iterates through arguments stored inside an ArgList. More...

#include "llvm/Option/ArgList.h"

Public Types

using value_type = typename Traits::value_type
 
using reference = typename Traits::reference
 
using pointer = typename Traits::pointer
 
using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 arg_iterator (BaseIter Current, BaseIter End, const OptSpecifier(&Ids)[NumOptSpecifiers ? NumOptSpecifiers :1]={})
 
reference operator* () const
 
pointer operator-> () const
 
arg_iteratoroperator++ ()
 
arg_iterator operator++ (int)
 

Friends

bool operator== (arg_iterator LHS, arg_iterator RHS)
 
bool operator!= (arg_iterator LHS, arg_iterator RHS)
 

Detailed Description

template<typename BaseIter, unsigned NumOptSpecifiers = 0>
class llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >

arg_iterator - Iterates through arguments stored inside an ArgList.

Definition at line 40 of file ArgList.h.

Member Typedef Documentation

◆ difference_type

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
using llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::difference_type = std::ptrdiff_t

Definition at line 76 of file ArgList.h.

◆ iterator_category

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
using llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::iterator_category = std::forward_iterator_tag

Definition at line 75 of file ArgList.h.

◆ pointer

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
using llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::pointer = typename Traits::pointer

Definition at line 74 of file ArgList.h.

◆ reference

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
using llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::reference = typename Traits::reference

Definition at line 73 of file ArgList.h.

◆ value_type

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
using llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::value_type = typename Traits::value_type

Definition at line 72 of file ArgList.h.

Constructor & Destructor Documentation

◆ arg_iterator()

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::arg_iterator ( BaseIter  Current,
BaseIter  End,
const OptSpecifier(&)  Ids[NumOptSpecifiers ? NumOptSpecifiers :1] = {} 
)
inline

Definition at line 78 of file ArgList.h.

Member Function Documentation

◆ operator*()

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
reference llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::operator* ( ) const
inline

Definition at line 87 of file ArgList.h.

◆ operator++() [1/2]

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
arg_iterator & llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::operator++ ( )
inline

Definition at line 90 of file ArgList.h.

◆ operator++() [2/2]

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
arg_iterator llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::operator++ ( int  )
inline

Definition at line 96 of file ArgList.h.

◆ operator->()

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
pointer llvm::opt::arg_iterator< BaseIter, NumOptSpecifiers >::operator-> ( ) const
inline

Definition at line 88 of file ArgList.h.

Friends And Related Function Documentation

◆ operator!=

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
bool operator!= ( arg_iterator< BaseIter, NumOptSpecifiers >  LHS,
arg_iterator< BaseIter, NumOptSpecifiers >  RHS 
)
friend

Definition at line 105 of file ArgList.h.

◆ operator==

template<typename BaseIter , unsigned NumOptSpecifiers = 0>
bool operator== ( arg_iterator< BaseIter, NumOptSpecifiers >  LHS,
arg_iterator< BaseIter, NumOptSpecifiers >  RHS 
)
friend

Definition at line 102 of file ArgList.h.


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