OTB  9.0.0
Orfeo Toolbox
Classes | Public Types | Public Member Functions | Private Attributes | Friends | List of all members
otb::part_iterator< Splitter > Struct Template Reference

#include <otbStringUtilities.h>

+ Collaboration diagram for otb::part_iterator< Splitter >:

Classes

struct  theend
 

Public Types

typedef string_view const * const_pointer
 
typedef string_view const & const_reference
 
typedef std::forward_iterator_tag iterator_category
 
typedef string_viewreference
 

Public Member Functions

const_reference operator* () const
 
part_iteratoroperator++ ()
 
part_iterator operator++ (int)
 
const_pointer operator-> () const
 
 part_iterator (string_view const &global_string, Splitter s)
 
 part_iterator (string_view const &global_string, Splitter s, theend)
 

Private Attributes

string_view m_crt
 
string_view m_global
 
Splitter m_splitter
 

Friends

bool operator!= (part_iterator const &lhs, part_iterator const &rhs)
 
bool operator== (part_iterator const &lhs, part_iterator const &rhs)
 

Detailed Description

template<typename Splitter>
struct otb::part_iterator< Splitter >

Split parts iterator. Not meant to be used directly.

Template Parameters
Splittersplit algorithm used.
See also
part_range
split_on()

Definition at line 355 of file otbStringUtilities.h.

Member Typedef Documentation

◆ const_pointer

template<typename Splitter >
typedef string_view const* otb::part_iterator< Splitter >::const_pointer

Definition at line 359 of file otbStringUtilities.h.

◆ const_reference

template<typename Splitter >
typedef string_view const& otb::part_iterator< Splitter >::const_reference

Definition at line 358 of file otbStringUtilities.h.

◆ iterator_category

template<typename Splitter >
typedef std::forward_iterator_tag otb::part_iterator< Splitter >::iterator_category

Definition at line 360 of file otbStringUtilities.h.

◆ reference

template<typename Splitter >
typedef string_view& otb::part_iterator< Splitter >::reference

Definition at line 357 of file otbStringUtilities.h.

Constructor & Destructor Documentation

◆ part_iterator() [1/2]

template<typename Splitter >
otb::part_iterator< Splitter >::part_iterator ( string_view const &  global_string,
Splitter  s 
)
inline

Definition at line 363 of file otbStringUtilities.h.

◆ part_iterator() [2/2]

template<typename Splitter >
otb::part_iterator< Splitter >::part_iterator ( string_view const &  global_string,
Splitter  s,
theend   
)
inline

Definition at line 369 of file otbStringUtilities.h.

Member Function Documentation

◆ operator*()

template<typename Splitter >
const_reference otb::part_iterator< Splitter >::operator* ( ) const
inline

Definition at line 391 of file otbStringUtilities.h.

References otb::part_iterator< Splitter >::m_crt.

◆ operator++() [1/2]

template<typename Splitter >
part_iterator& otb::part_iterator< Splitter >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename Splitter >
part_iterator otb::part_iterator< Splitter >::operator++ ( int  )
inline

Definition at line 386 of file otbStringUtilities.h.

◆ operator->()

template<typename Splitter >
const_pointer otb::part_iterator< Splitter >::operator-> ( ) const
inline

Definition at line 394 of file otbStringUtilities.h.

References otb::part_iterator< Splitter >::m_crt.

Friends And Related Function Documentation

◆ operator!=

template<typename Splitter >
bool operator!= ( part_iterator< Splitter > const &  lhs,
part_iterator< Splitter > const &  rhs 
)
friend

Definition at line 403 of file otbStringUtilities.h.

◆ operator==

template<typename Splitter >
bool operator== ( part_iterator< Splitter > const &  lhs,
part_iterator< Splitter > const &  rhs 
)
friend

Definition at line 398 of file otbStringUtilities.h.

Member Data Documentation

◆ m_crt

template<typename Splitter >
string_view otb::part_iterator< Splitter >::m_crt
private

◆ m_global

template<typename Splitter >
string_view otb::part_iterator< Splitter >::m_global
private

Definition at line 415 of file otbStringUtilities.h.

Referenced by otb::part_iterator< Splitter >::operator++().

◆ m_splitter

template<typename Splitter >
Splitter otb::part_iterator< Splitter >::m_splitter
private

Definition at line 416 of file otbStringUtilities.h.

Referenced by otb::part_iterator< Splitter >::operator++().


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