OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
otb::string_view::char_iterator Struct Reference

Public Types

typedef std::ptrdiff_t difference_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef char const * pointer
 
typedef char const & reference
 
typedef std::vcl_size_t size_type
 
typedef const char value_type
 

Public Member Functions

 char_iterator (const_pointer p)
 
const_reference operator* () const
 
char_iteratoroperator++ ()
 
char_iterator operator++ (int)
 
char_iteratoroperator+= (difference_type off)
 
char_iteratoroperator-- ()
 
char_iterator operator-- (int)
 
char_iteratoroperator-= (difference_type off)
 

Private Attributes

const_pointer m_ptr
 

Friends

bool operator!= (char_iterator lhs, char_iterator rhs)
 
char_iterator operator+ (char_iterator lhs, difference_type off)
 
char_iterator operator+ (difference_type off, char_iterator rhs)
 
difference_type operator- (char_iterator lhs, char_iterator rhs)
 
char_iterator operator- (char_iterator lhs, difference_type off)
 
char_iterator operator- (difference_type off, char_iterator rhs)
 
bool operator< (char_iterator lhs, char_iterator rhs)
 
bool operator<= (char_iterator lhs, char_iterator rhs)
 
bool operator== (char_iterator lhs, char_iterator rhs)
 

Detailed Description

Strict view iterator.

Definition at line 69 of file otbStringUtilities.h.

Member Typedef Documentation

◆ difference_type

Definition at line 75 of file otbStringUtilities.h.

◆ iterator_category

typedef std::random_access_iterator_tag otb::string_view::char_iterator::iterator_category

Definition at line 76 of file otbStringUtilities.h.

◆ pointer

Definition at line 73 of file otbStringUtilities.h.

◆ reference

Definition at line 72 of file otbStringUtilities.h.

◆ size_type

Definition at line 74 of file otbStringUtilities.h.

◆ value_type

Definition at line 71 of file otbStringUtilities.h.

Constructor & Destructor Documentation

◆ char_iterator()

otb::string_view::char_iterator::char_iterator ( const_pointer  p)
inlineexplicit

Definition at line 78 of file otbStringUtilities.h.

Member Function Documentation

◆ operator*()

const_reference otb::string_view::char_iterator::operator* ( ) const
inline

Definition at line 83 of file otbStringUtilities.h.

References m_ptr.

◆ operator++() [1/2]

char_iterator& otb::string_view::char_iterator::operator++ ( )
inline

Definition at line 79 of file otbStringUtilities.h.

References m_ptr.

◆ operator++() [2/2]

char_iterator otb::string_view::char_iterator::operator++ ( int  )
inline

Definition at line 80 of file otbStringUtilities.h.

References m_ptr.

◆ operator+=()

char_iterator& otb::string_view::char_iterator::operator+= ( difference_type  off)
inline

Definition at line 85 of file otbStringUtilities.h.

References m_ptr.

◆ operator--() [1/2]

char_iterator& otb::string_view::char_iterator::operator-- ( )
inline

Definition at line 81 of file otbStringUtilities.h.

References m_ptr.

◆ operator--() [2/2]

char_iterator otb::string_view::char_iterator::operator-- ( int  )
inline

Definition at line 82 of file otbStringUtilities.h.

References m_ptr.

◆ operator-=()

char_iterator& otb::string_view::char_iterator::operator-= ( difference_type  off)
inline

Definition at line 86 of file otbStringUtilities.h.

References m_ptr.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( char_iterator  lhs,
char_iterator  rhs 
)
friend

Definition at line 98 of file otbStringUtilities.h.

◆ operator+ [1/2]

char_iterator operator+ ( char_iterator  lhs,
difference_type  off 
)
friend

Definition at line 88 of file otbStringUtilities.h.

◆ operator+ [2/2]

char_iterator operator+ ( difference_type  off,
char_iterator  rhs 
)
friend

Definition at line 89 of file otbStringUtilities.h.

◆ operator- [1/3]

difference_type operator- ( char_iterator  lhs,
char_iterator  rhs 
)
friend

Definition at line 93 of file otbStringUtilities.h.

◆ operator- [2/3]

char_iterator operator- ( char_iterator  lhs,
difference_type  off 
)
friend

Definition at line 90 of file otbStringUtilities.h.

◆ operator- [3/3]

char_iterator operator- ( difference_type  off,
char_iterator  rhs 
)
friend

Definition at line 91 of file otbStringUtilities.h.

◆ operator<

bool operator< ( char_iterator  lhs,
char_iterator  rhs 
)
friend

Definition at line 101 of file otbStringUtilities.h.

◆ operator<=

bool operator<= ( char_iterator  lhs,
char_iterator  rhs 
)
friend

Definition at line 105 of file otbStringUtilities.h.

◆ operator==

bool operator== ( char_iterator  lhs,
char_iterator  rhs 
)
friend

Definition at line 95 of file otbStringUtilities.h.

Member Data Documentation

◆ m_ptr

const_pointer otb::string_view::char_iterator::m_ptr
private

Definition at line 109 of file otbStringUtilities.h.

Referenced by operator*(), operator++(), operator+=(), operator--(), and operator-=().


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