Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
moab::Range::const_reverse_iterator Class Reference

a const reverse iterator which iterates over an Range More...

#include <Range.hpp>

+ Inheritance diagram for moab::Range::const_reverse_iterator:
+ Collaboration diagram for moab::Range::const_reverse_iterator:

Public Member Functions

 const_reverse_iterator ()
 default constructor - intialize base default constructor
 const_reverse_iterator (const_iterator fwd_iter)
 const_reverse_iterator (const PairNode *iter, const EntityHandle val)
 constructor used by Range
const EntityHandleoperator* () const
 dereference that value this iterator points to returns a const reference
const_reverse_iteratoroperator++ ()
 prefix incrementer
const_reverse_iterator operator++ (int)
 postfix incrementer
const_reverse_iteratoroperator-- ()
 prefix decrementer
const_reverse_iterator operator-- (int)
 postfix decrementer
const_reverse_iteratoroperator+= (EntityID step)
 Advance iterator specified amount. Potentially O(n), but typically better. Always more efficient than calling operator++ step times.
const_reverse_iteratoroperator-= (EntityID step)
 Regress iterator specified amount. Potentially O(n), but typically better. Always more efficient than calling operator-- step times.
bool operator== (const const_reverse_iterator &other) const
 equals operator
bool operator!= (const const_reverse_iterator &other) const
 not equals operator

Protected Attributes

const_iterator myIter
 the node we are pointing at

Friends

class Range
class pair_iterator

Detailed Description

a const reverse iterator which iterates over an Range

Definition at line 599 of file Range.hpp.


Constructor & Destructor Documentation

default constructor - intialize base default constructor

Definition at line 606 of file Range.hpp.

{}

Definition at line 608 of file Range.hpp.

: myIter( fwd_iter ) {}

constructor used by Range

Definition at line 611 of file Range.hpp.

: myIter( iter, val ) {}

Member Function Documentation

bool moab::Range::const_reverse_iterator::operator!= ( const const_reverse_iterator other) const [inline]

not equals operator

Definition at line 671 of file Range.hpp.

References myIter.

        {
            return myIter != other.myIter;
        }
const EntityHandle& moab::Range::const_reverse_iterator::operator* ( ) const [inline]

dereference that value this iterator points to returns a const reference

Definition at line 615 of file Range.hpp.

        {
            return *myIter;
        }
const_reverse_iterator& moab::Range::const_reverse_iterator::operator++ ( ) [inline]

prefix incrementer

Definition at line 621 of file Range.hpp.

        {
            --myIter;
            return *this;
        }
const_reverse_iterator moab::Range::const_reverse_iterator::operator++ ( int  ) [inline]

postfix incrementer

Definition at line 628 of file Range.hpp.

        {
            return const_reverse_iterator( myIter-- );
        }
const_reverse_iterator& moab::Range::const_reverse_iterator::operator+= ( EntityID  step) [inline]

Advance iterator specified amount. Potentially O(n), but typically better. Always more efficient than calling operator++ step times.

Definition at line 649 of file Range.hpp.

        {
            myIter -= step;
            return *this;
        }
const_reverse_iterator& moab::Range::const_reverse_iterator::operator-- ( ) [inline]

prefix decrementer

Definition at line 634 of file Range.hpp.

        {
            ++myIter;
            return *this;
        }
const_reverse_iterator moab::Range::const_reverse_iterator::operator-- ( int  ) [inline]

postfix decrementer

Definition at line 641 of file Range.hpp.

        {
            return const_reverse_iterator( myIter++ );
        }
const_reverse_iterator& moab::Range::const_reverse_iterator::operator-= ( EntityID  step) [inline]

Regress iterator specified amount. Potentially O(n), but typically better. Always more efficient than calling operator-- step times.

Definition at line 658 of file Range.hpp.

        {
            myIter += step;
            return *this;
        }
bool moab::Range::const_reverse_iterator::operator== ( const const_reverse_iterator other) const [inline]

equals operator

Definition at line 665 of file Range.hpp.

References myIter.

        {
            return myIter == other.myIter;
        }

Friends And Related Function Documentation

friend class pair_iterator [friend]

Definition at line 602 of file Range.hpp.

friend class Range [friend]

Definition at line 601 of file Range.hpp.


Member Data Documentation

the node we are pointing at

Definition at line 678 of file Range.hpp.

Referenced by operator!=(), and operator==().

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines