Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::Range::const_pair_iterator Class Reference

#include <Range.hpp>

+ Collaboration diagram for moab::Range::const_pair_iterator:

Public Member Functions

 const_pair_iterator ()
 
 const_pair_iterator (const PairNode *node)
 
 const_pair_iterator (const const_iterator &i)
 
const PairNodeoperator* () const
 
const PairNodeoperator-> () const
 
const_pair_iteratoroperator-- ()
 
const_pair_iteratoroperator++ ()
 
const_pair_iterator operator-- (int)
 
const_pair_iterator operator++ (int)
 
bool operator== (const const_pair_iterator &other) const
 
bool operator!= (const const_pair_iterator &other) const
 

Private Attributes

const PairNodemyNode
 

Detailed Description

Definition at line 682 of file Range.hpp.

Constructor & Destructor Documentation

◆ const_pair_iterator() [1/3]

moab::Range::const_pair_iterator::const_pair_iterator ( )
inline

Definition at line 685 of file Range.hpp.

685 : myNode( NULL ) {}

◆ const_pair_iterator() [2/3]

moab::Range::const_pair_iterator::const_pair_iterator ( const PairNode node)
inline

Definition at line 686 of file Range.hpp.

686 : myNode( node ) {}

◆ const_pair_iterator() [3/3]

moab::Range::const_pair_iterator::const_pair_iterator ( const const_iterator i)
inline

Definition at line 687 of file Range.hpp.

687 : myNode( i.mNode ) {}

Member Function Documentation

◆ operator!=()

bool moab::Range::const_pair_iterator::operator!= ( const const_pair_iterator other) const
inline

Definition at line 730 of file Range.hpp.

731  {
732  return other.myNode != myNode;
733  }

References myNode.

◆ operator*()

const PairNode& moab::Range::const_pair_iterator::operator* ( ) const
inline

Definition at line 689 of file Range.hpp.

690  {
691  return *myNode;
692  }

◆ operator++() [1/2]

const_pair_iterator& moab::Range::const_pair_iterator::operator++ ( )
inline

Definition at line 705 of file Range.hpp.

706  {
707  myNode = myNode->mNext;
708  return *this;
709  }

References moab::Range::PairNode::mNext.

◆ operator++() [2/2]

const_pair_iterator moab::Range::const_pair_iterator::operator++ ( int  )
inline

Definition at line 718 of file Range.hpp.

719  {
720  const_pair_iterator rval( *this );
721  this->operator++();
722  return rval;
723  }

References moab::operator++().

◆ operator--() [1/2]

const_pair_iterator& moab::Range::const_pair_iterator::operator-- ( )
inline

Definition at line 699 of file Range.hpp.

700  {
701  myNode = myNode->mPrev;
702  return *this;
703  }

References moab::Range::PairNode::mPrev.

◆ operator--() [2/2]

const_pair_iterator moab::Range::const_pair_iterator::operator-- ( int  )
inline

Definition at line 711 of file Range.hpp.

712  {
713  const_pair_iterator rval( *this );
714  this->operator--();
715  return rval;
716  }

◆ operator->()

const PairNode* moab::Range::const_pair_iterator::operator-> ( ) const
inline

Definition at line 694 of file Range.hpp.

695  {
696  return myNode;
697  }

◆ operator==()

bool moab::Range::const_pair_iterator::operator== ( const const_pair_iterator other) const
inline

Definition at line 725 of file Range.hpp.

726  {
727  return other.myNode == myNode;
728  }

References myNode.

Member Data Documentation

◆ myNode

const PairNode* moab::Range::const_pair_iterator::myNode
private

Definition at line 736 of file Range.hpp.

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


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