LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
IDocumentMarkAccess::iterator Class Reference

wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances can be retrieved directly. More...

#include <IDocumentMarkAccess.hxx>

Public Types

typedef std::ptrdiff_t difference_type
 
typedef ::sw::mark::IMarkvalue_type
 
typedef ::sw::mark::IMark *const * pointer
 
typedef ::sw::mark::IMark *const & reference
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

std::vector<::sw::mark::MarkBase * >::const_iterator const & get () const
 
 iterator ()
 
 iterator (std::vector<::sw::mark::MarkBase * >::const_iterator const &rIter)
 
 iterator (iterator const &rOther)
 
iteratoroperator= (iterator const &rOther)
 
 iterator (iterator &&rOther) noexcept
 
iteratoroperator= (iterator &&rOther) noexcept
 
::sw::mark::IMarkoperator* () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (iterator const &rOther) const
 
bool operator!= (iterator const &rOther) const
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iteratoroperator+= (difference_type)
 
iterator operator+ (difference_type) const
 
iteratoroperator-= (difference_type)
 
iterator operator- (difference_type) const
 
difference_type operator- (iterator const &) const
 
value_type operator[] (difference_type) const
 
bool operator< (iterator const &rOther) const
 
bool operator> (iterator const &rOther) const
 
bool operator<= (iterator const &rOther) const
 
bool operator>= (iterator const &rOther) const
 

Private Attributes

std::optional< std::vector<::sw::mark::MarkBase * >::const_iterator > m_pIter
 

Detailed Description

wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances can be retrieved directly.

Definition at line 60 of file IDocumentMarkAccess.hxx.

Member Typedef Documentation

◆ difference_type

Definition at line 69 of file IDocumentMarkAccess.hxx.

◆ iterator_category

typedef std::random_access_iterator_tag IDocumentMarkAccess::iterator::iterator_category

Definition at line 73 of file IDocumentMarkAccess.hxx.

◆ pointer

Definition at line 71 of file IDocumentMarkAccess.hxx.

◆ reference

Definition at line 72 of file IDocumentMarkAccess.hxx.

◆ value_type

Definition at line 70 of file IDocumentMarkAccess.hxx.

Constructor & Destructor Documentation

◆ iterator() [1/4]

IDocumentMarkAccess::iterator::iterator ( )

Definition at line 119 of file docbm.cxx.

◆ iterator() [2/4]

IDocumentMarkAccess::iterator::iterator ( std::vector<::sw::mark::MarkBase * >::const_iterator const &  rIter)

Definition at line 63 of file docbm.cxx.

◆ iterator() [3/4]

IDocumentMarkAccess::iterator::iterator ( iterator const &  rOther)

Definition at line 68 of file docbm.cxx.

◆ iterator() [4/4]

IDocumentMarkAccess::iterator::iterator ( iterator &&  rOther)
noexcept

Definition at line 79 of file docbm.cxx.

Member Function Documentation

◆ get()

std::vector<::sw::mark::MarkBase * >::const_iterator const & IDocumentMarkAccess::iterator::get ( ) const

Definition at line 58 of file docbm.cxx.

References m_pIter.

Referenced by sw::mark::MarkManager::deleteMark().

◆ operator!=()

bool IDocumentMarkAccess::iterator::operator!= ( iterator const &  rOther) const

Definition at line 114 of file docbm.cxx.

References m_pIter.

◆ operator*()

sw::mark::IMark * IDocumentMarkAccess::iterator::operator* ( void  ) const

Definition at line 92 of file docbm.cxx.

◆ operator+()

auto IDocumentMarkAccess::iterator::operator+ ( difference_type  n) const

Definition at line 143 of file docbm.cxx.

References n.

◆ operator++() [1/2]

auto IDocumentMarkAccess::iterator::operator++ ( void  )

Definition at line 97 of file docbm.cxx.

◆ operator++() [2/2]

auto IDocumentMarkAccess::iterator::operator++ ( int  )

Definition at line 102 of file docbm.cxx.

◆ operator+=()

auto IDocumentMarkAccess::iterator::operator+= ( difference_type  n)

Definition at line 137 of file docbm.cxx.

References n.

◆ operator-() [1/2]

auto IDocumentMarkAccess::iterator::operator- ( difference_type  n) const

Definition at line 154 of file docbm.cxx.

References n.

◆ operator-() [2/2]

auto IDocumentMarkAccess::iterator::operator- ( iterator const &  rOther) const

Definition at line 159 of file docbm.cxx.

References m_pIter.

◆ operator--() [1/2]

auto IDocumentMarkAccess::iterator::operator-- ( )

Definition at line 124 of file docbm.cxx.

◆ operator--() [2/2]

auto IDocumentMarkAccess::iterator::operator-- ( int  )

Definition at line 130 of file docbm.cxx.

◆ operator-=()

auto IDocumentMarkAccess::iterator::operator-= ( difference_type  n)

Definition at line 148 of file docbm.cxx.

References n.

◆ operator<()

bool IDocumentMarkAccess::iterator::operator< ( iterator const &  rOther) const

Definition at line 169 of file docbm.cxx.

References m_pIter.

◆ operator<=()

bool IDocumentMarkAccess::iterator::operator<= ( iterator const &  rOther) const

Definition at line 177 of file docbm.cxx.

References m_pIter.

◆ operator=() [1/2]

auto IDocumentMarkAccess::iterator::operator= ( iterator &&  rOther)
noexcept

Definition at line 84 of file docbm.cxx.

◆ operator=() [2/2]

auto IDocumentMarkAccess::iterator::operator= ( iterator const &  rOther)

Definition at line 73 of file docbm.cxx.

References m_pIter.

◆ operator==()

bool IDocumentMarkAccess::iterator::operator== ( iterator const &  rOther) const

Definition at line 109 of file docbm.cxx.

References m_pIter.

◆ operator>()

bool IDocumentMarkAccess::iterator::operator> ( iterator const &  rOther) const

Definition at line 173 of file docbm.cxx.

References m_pIter.

◆ operator>=()

bool IDocumentMarkAccess::iterator::operator>= ( iterator const &  rOther) const

Definition at line 181 of file docbm.cxx.

References m_pIter.

◆ operator[]()

auto IDocumentMarkAccess::iterator::operator[] ( difference_type  n) const

Definition at line 164 of file docbm.cxx.

References n.

Member Data Documentation

◆ m_pIter

std::optional<std::vector<::sw::mark::MarkBase*>::const_iterator> IDocumentMarkAccess::iterator::m_pIter
private

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