MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::MsqFreeVertexIndexIterator Class Reference

iterates over indexes of free vetices in a PatchData. More...

#include <MsqFreeVertexIndexIterator.hpp>

+ Collaboration diagram for MBMesquite::MsqFreeVertexIndexIterator:

Public Member Functions

 MsqFreeVertexIndexIterator (const PatchData &p_pd, MsqError &)
void reset ()
bool next ()
 Increments the iterator. returns false if there is no more free vertex.
std::size_t value ()
 Returns an index corresponding to a free vertex.

Private Attributes

const PatchDataiterOriginator
std::size_t iterCurrentIndex

Detailed Description

iterates over indexes of free vetices in a PatchData.

A free vertex is defined as not having the MSQ_CULLED and MSQ_HARD_FIXED flags activated.

Use the iterator as follow: MsqFreeVertexIndexIterator ind(&patch_data,err); ind.reset(); while (ind.next()) { cout << ind.value(); } .

Definition at line 62 of file MsqFreeVertexIndexIterator.hpp.


Constructor & Destructor Documentation

Definition at line 65 of file MsqFreeVertexIndexIterator.hpp.

        : iterOriginator( p_pd ), iterCurrentIndex( (size_t)-1 )
    {
    }

Member Function Documentation


Member Data Documentation

Definition at line 85 of file MsqFreeVertexIndexIterator.hpp.

Referenced by next(), reset(), and value().

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