Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::MeshSet::hdl_iter Struct Reference

#include <MeshSet.hpp>

Classes

struct  iterator_category
 

Public Types

typedef EntityID difference_type
 
typedef EntityHandle value_type
 
typedef EntityHandlepointer
 
typedef EntityHandlereference
 

Public Member Functions

 hdl_iter (EntityHandle val)
 
hdl_iteroperator++ ()
 
hdl_iteroperator-- ()
 
hdl_iter operator++ (int)
 
hdl_iter operator-- (int)
 
hdl_iteroperator+= (size_t s)
 
hdl_iteroperator-= (size_t s)
 
EntityHandle operator* () const
 
bool operator== (hdl_iter other) const
 
bool operator!= (hdl_iter other) const
 
bool operator< (hdl_iter other) const
 
bool operator> (hdl_iter other) const
 
bool operator<= (hdl_iter other) const
 
bool operator>= (hdl_iter other) const
 

Public Attributes

EntityHandle h
 

Detailed Description

Iterate over range of handles. That is, given [first_handle,last_handle], step through all contained values.

Definition at line 316 of file MeshSet.hpp.

Member Typedef Documentation

◆ difference_type

◆ pointer

Definition at line 382 of file MeshSet.hpp.

◆ reference

Definition at line 383 of file MeshSet.hpp.

◆ value_type

Definition at line 381 of file MeshSet.hpp.

Constructor & Destructor Documentation

◆ hdl_iter()

moab::MeshSet::hdl_iter::hdl_iter ( EntityHandle  val)
inline

Definition at line 319 of file MeshSet.hpp.

319 : h( val ) {}

Referenced by operator++(), and operator--().

Member Function Documentation

◆ operator!=()

bool moab::MeshSet::hdl_iter::operator!= ( hdl_iter  other) const
inline

Definition at line 356 of file MeshSet.hpp.

357  {
358  return h != other.h;
359  }

References h.

◆ operator*()

EntityHandle moab::MeshSet::hdl_iter::operator* ( ) const
inline

Definition at line 348 of file MeshSet.hpp.

349  {
350  return h;
351  }

References h.

◆ operator++() [1/2]

hdl_iter& moab::MeshSet::hdl_iter::operator++ ( )
inline

Definition at line 320 of file MeshSet.hpp.

321  {
322  ++h;
323  return *this;
324  }

References h.

◆ operator++() [2/2]

hdl_iter moab::MeshSet::hdl_iter::operator++ ( int  )
inline

Definition at line 330 of file MeshSet.hpp.

331  {
332  return hdl_iter( h++ );
333  }

References h, and hdl_iter().

◆ operator+=()

hdl_iter& moab::MeshSet::hdl_iter::operator+= ( size_t  s)
inline

Definition at line 338 of file MeshSet.hpp.

339  {
340  h += s;
341  return *this;
342  }

References h.

◆ operator--() [1/2]

hdl_iter& moab::MeshSet::hdl_iter::operator-- ( )
inline

Definition at line 325 of file MeshSet.hpp.

326  {
327  --h;
328  return *this;
329  }

References h.

◆ operator--() [2/2]

hdl_iter moab::MeshSet::hdl_iter::operator-- ( int  )
inline

Definition at line 334 of file MeshSet.hpp.

335  {
336  return hdl_iter( h-- );
337  }

References h, and hdl_iter().

◆ operator-=()

hdl_iter& moab::MeshSet::hdl_iter::operator-= ( size_t  s)
inline

Definition at line 343 of file MeshSet.hpp.

344  {
345  h -= s;
346  return *this;
347  }

References h.

◆ operator<()

bool moab::MeshSet::hdl_iter::operator< ( hdl_iter  other) const
inline

Definition at line 360 of file MeshSet.hpp.

361  {
362  return h < other.h;
363  }

References h.

◆ operator<=()

bool moab::MeshSet::hdl_iter::operator<= ( hdl_iter  other) const
inline

Definition at line 368 of file MeshSet.hpp.

369  {
370  return h <= other.h;
371  }

References h.

◆ operator==()

bool moab::MeshSet::hdl_iter::operator== ( hdl_iter  other) const
inline

Definition at line 352 of file MeshSet.hpp.

353  {
354  return h == other.h;
355  }

References h.

◆ operator>()

bool moab::MeshSet::hdl_iter::operator> ( hdl_iter  other) const
inline

Definition at line 364 of file MeshSet.hpp.

365  {
366  return h > other.h;
367  }

References h.

◆ operator>=()

bool moab::MeshSet::hdl_iter::operator>= ( hdl_iter  other) const
inline

Definition at line 372 of file MeshSet.hpp.

373  {
374  return h >= other.h;
375  }

References h.

Member Data Documentation

◆ h


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