IntRange< IntType >::const_reverse_iterator Class Reference

Random-access reverse input iterator with const access. More...

Public Types

typedef std::random_access_iterator_tag iterator_category
 
typedef IntType value_type
 
typedef IntType difference_type
 
typedef IntType reference
 

Public Member Functions

constexpr const_reverse_iterator (const IntType val=0) noexcept
 Construct with specified value, or default construct. More...
 
constexpr IntType operator* () const noexcept
 Return the value. More...
 
constexpr IntType operator[] (const IntType n) const noexcept
 Offset dereference operator. More...
 
const_reverse_iteratoroperator++ () noexcept
 Prefix increment. More...
 
const_reverse_iterator operator++ (int) noexcept
 Postfix increment. More...
 
const_reverse_iteratoroperator-- () noexcept
 Prefix decrement. More...
 
const_reverse_iterator operator-- (int) noexcept
 Postfix decrement. More...
 
const_reverse_iteratoroperator+= (const IntType n) noexcept
 Arbitrary increment. More...
 
const_reverse_iteratoroperator-= (const IntType n) noexcept
 Arbitrary decrement. More...
 
constexpr const_reverse_iterator operator+ (const IntType n) const noexcept
 Return iterator with offset. More...
 
constexpr const_reverse_iterator operator- (const IntType n) const noexcept
 Return iterator with offset. More...
 
constexpr IntType operator- (const const_reverse_iterator &iter) const noexcept
 Difference operator. More...
 
constexpr bool operator== (const const_reverse_iterator &iter) const noexcept
 Test for equality of values. More...
 
constexpr bool operator< (const const_reverse_iterator &iter) const noexcept
 Reverse compare less-than. More...
 
constexpr bool operator!= (const const_reverse_iterator &iter) const noexcept
 
constexpr bool operator<= (const const_reverse_iterator &iter) const noexcept
 
constexpr bool operator> (const const_reverse_iterator &iter) const noexcept
 
constexpr bool operator>= (const const_reverse_iterator &iter) const noexcept
 

Public Attributes

const typedef IntType * pointer
 

Detailed Description

template<class IntType>
class Foam::IntRange< IntType >::const_reverse_iterator

Random-access reverse input iterator with const access.

Note
No operator+(IntType, iterator) since this provokes misleading resolution errors

Definition at line 357 of file IntRange.H.

Member Typedef Documentation

◆ iterator_category

typedef std::random_access_iterator_tag iterator_category

Definition at line 365 of file IntRange.H.

◆ value_type

typedef IntType value_type

Definition at line 366 of file IntRange.H.

◆ difference_type

typedef IntType difference_type

Definition at line 367 of file IntRange.H.

◆ reference

typedef IntType reference

Definition at line 369 of file IntRange.H.

Constructor & Destructor Documentation

◆ const_reverse_iterator()

constexpr const_reverse_iterator ( const IntType  val = 0)
inlineexplicitconstexprnoexcept

Construct with specified value, or default construct.

Definition at line 200 of file IntRangeI.H.

Member Function Documentation

◆ operator*()

constexpr IntType operator* ( ) const
inlineconstexprnoexcept

Return the value.

Definition at line 209 of file IntRangeI.H.

◆ operator[]()

constexpr IntType operator[] ( const IntType  n) const
inlineconstexprnoexcept

Offset dereference operator.

Definition at line 218 of file IntRangeI.H.

References n.

◆ operator++() [1/2]

Foam::IntRange< IntType >::const_reverse_iterator & operator++ ( )
inlinenoexcept

Prefix increment.

Definition at line 227 of file IntRangeI.H.

◆ operator++() [2/2]

Foam::IntRange< IntType >::const_reverse_iterator operator++ ( int  )
inlinenoexcept

Postfix increment.

Definition at line 237 of file IntRangeI.H.

◆ operator--() [1/2]

Foam::IntRange< IntType >::const_reverse_iterator & operator-- ( )
inlinenoexcept

Prefix decrement.

Definition at line 248 of file IntRangeI.H.

◆ operator--() [2/2]

Foam::IntRange< IntType >::const_reverse_iterator operator-- ( int  )
inlinenoexcept

Postfix decrement.

Definition at line 258 of file IntRangeI.H.

◆ operator+=()

Foam::IntRange< IntType >::const_reverse_iterator & operator+= ( const IntType  n)
inlinenoexcept

Arbitrary increment.

Definition at line 269 of file IntRangeI.H.

References n.

◆ operator-=()

Foam::IntRange< IntType >::const_reverse_iterator & operator-= ( const IntType  n)
inlinenoexcept

Arbitrary decrement.

Definition at line 279 of file IntRangeI.H.

References n.

◆ operator+()

constexpr Foam::IntRange< IntType >::const_reverse_iterator operator+ ( const IntType  n) const
inlineconstexprnoexcept

Return iterator with offset.

Definition at line 289 of file IntRangeI.H.

References n.

◆ operator-() [1/2]

constexpr Foam::IntRange< IntType >::const_reverse_iterator operator- ( const IntType  n) const
inlineconstexprnoexcept

Return iterator with offset.

Definition at line 298 of file IntRangeI.H.

References n.

◆ operator-() [2/2]

constexpr IntType operator- ( const const_reverse_iterator iter) const
inlineconstexprnoexcept

Difference operator.

Definition at line 307 of file IntRangeI.H.

◆ operator==()

constexpr bool operator== ( const const_reverse_iterator iter) const
inlineconstexprnoexcept

Test for equality of values.

Definition at line 316 of file IntRangeI.H.

◆ operator<()

constexpr bool operator< ( const const_reverse_iterator iter) const
inlineconstexprnoexcept

Reverse compare less-than.

Definition at line 325 of file IntRangeI.H.

◆ operator!=()

constexpr bool operator!= ( const const_reverse_iterator iter) const
inlineconstexprnoexcept

Definition at line 439 of file IntRange.H.

◆ operator<=()

constexpr bool operator<= ( const const_reverse_iterator iter) const
inlineconstexprnoexcept

Definition at line 445 of file IntRange.H.

◆ operator>()

constexpr bool operator> ( const const_reverse_iterator iter) const
inlineconstexprnoexcept

Definition at line 451 of file IntRange.H.

◆ operator>=()

constexpr bool operator>= ( const const_reverse_iterator iter) const
inlineconstexprnoexcept

Definition at line 457 of file IntRange.H.

Member Data Documentation

◆ pointer

const typedef IntType* pointer

Definition at line 368 of file IntRange.H.


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