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

used to iterate over sub-ranges of a range More...

#include <Range.hpp>

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

Public Member Functions

 pair_iterator ()
 
 pair_iterator (PairNode *nodep)
 
 pair_iterator (const pair_iterator &copy)
 
 pair_iterator (const const_iterator &copy)
 
std::pair< EntityHandle, EntityHandle > * operator-> ()
 
pair_iteratoroperator++ ()
 
pair_iterator operator++ (int)
 
pair_iteratoroperator-- ()
 
pair_iterator operator-- (int)
 
bool operator== (const pair_iterator &other) const
 
bool operator!= (const pair_iterator &other) const
 
PairNodenode ()
 

Private Attributes

PairNodemNode
 

Friends

class Range
 

Additional Inherited Members

- Public Types inherited from moab::range_base_iter
typedef range_iter_tag iterator_category
 
typedef EntityID difference_type
 
typedef EntityHandle value_type
 
typedef EntityHandlepointer
 
typedef EntityHandlereference
 

Detailed Description

used to iterate over sub-ranges of a range

Definition at line 399 of file Range.hpp.

Constructor & Destructor Documentation

◆ pair_iterator() [1/4]

moab::Range::pair_iterator::pair_iterator ( )
inline

Definition at line 404 of file Range.hpp.

404 : mNode( NULL ) {}

◆ pair_iterator() [2/4]

moab::Range::pair_iterator::pair_iterator ( PairNode nodep)
inline

Definition at line 405 of file Range.hpp.

405 : mNode( nodep ) {}

◆ pair_iterator() [3/4]

moab::Range::pair_iterator::pair_iterator ( const pair_iterator copy)
inline

Definition at line 406 of file Range.hpp.

406 : mNode( copy.mNode ) {}

◆ pair_iterator() [4/4]

moab::Range::pair_iterator::pair_iterator ( const const_iterator copy)
inline

Definition at line 407 of file Range.hpp.

407 : mNode( copy.mNode ) {}

Member Function Documentation

◆ node()

PairNode* moab::Range::pair_iterator::node ( )
inline

Definition at line 447 of file Range.hpp.

448  {
449  return mNode;
450  }

Referenced by moab::Range::operator-=().

◆ operator!=()

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

Definition at line 442 of file Range.hpp.

443  {
444  return mNode != other.mNode;
445  }

References mNode.

◆ operator++() [1/2]

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

Definition at line 414 of file Range.hpp.

415  {
416  mNode = mNode->mNext;
417  return *this;
418  }

◆ operator++() [2/2]

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

Definition at line 419 of file Range.hpp.

420  {
421  pair_iterator tmp( *this );
422  this->operator++();
423  return tmp;
424  }

References moab::operator++().

◆ operator--() [1/2]

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

Definition at line 426 of file Range.hpp.

427  {
428  mNode = mNode->mPrev;
429  return *this;
430  }

◆ operator--() [2/2]

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

Definition at line 431 of file Range.hpp.

432  {
433  pair_iterator tmp( *this );
434  this->operator--();
435  return tmp;
436  }

◆ operator->()

std::pair< EntityHandle, EntityHandle >* moab::Range::pair_iterator::operator-> ( )
inline

Definition at line 409 of file Range.hpp.

410  {
411  return mNode;
412  }

◆ operator==()

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

Definition at line 437 of file Range.hpp.

438  {
439  return mNode == other.mNode;
440  }

References mNode.

Friends And Related Function Documentation

◆ Range

friend class Range
friend

Definition at line 401 of file Range.hpp.

Member Data Documentation

◆ mNode

PairNode* moab::Range::pair_iterator::mNode
private

Definition at line 453 of file Range.hpp.

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


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