Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MeshImplVertIter Class Reference

VertexIterator for MeshImpl. More...

#include <MeshImplData.hpp>

Inheritance diagram for MeshImplVertIter:
Collaboration diagram for MeshImplVertIter:

Public Member Functions

 MeshImplVertIter (MeshImplData *data)
 
virtual ~MeshImplVertIter ()
 
virtual void restart ()
 Moves the iterator back to the first entity in the list. More...
 
virtual void operator++ ()
 ++iterator More...
 
virtual Mesh::VertexHandle operator* () const
 *iterator. More...
 
virtual bool is_at_end () const
 Returns false until the iterator has been advanced PAST the last entity. More...
 
 MeshImplVertIter (MeshImplData *data)
 
virtual ~MeshImplVertIter ()
 
virtual void restart ()
 Moves the iterator back to the first entity in the list. More...
 
virtual void operator++ ()
 ++iterator More...
 
virtual Mesh::VertexHandle operator* () const
 *iterator. More...
 
virtual bool is_at_end () const
 Returns false until the iterator has been advanced PAST the last entity. More...
 
- Public Member Functions inherited from EntityIterator
virtual ~EntityIterator ()
 

Private Attributes

MeshImplDatamesh
 
size_t index
 

Detailed Description

VertexIterator for MeshImpl.

Iterate over valid vertex indices

Definition at line 245 of file includeLinks/MeshImplData.hpp.

Constructor & Destructor Documentation

MeshImplVertIter ( MeshImplData data)
inline

Definition at line 253 of file includeLinks/MeshImplData.hpp.

References MeshImplVertIter::restart().

254  : mesh(data) { restart(); }
virtual void restart()
Moves the iterator back to the first entity in the list.

Here is the call graph for this function:

~MeshImplVertIter ( )
virtual

Definition at line 703 of file Mesh/MeshImplData.cpp.

704  {}
MeshImplVertIter ( MeshImplData data)
inline

Definition at line 253 of file src/Mesh/MeshImplData.hpp.

References MeshImplVertIter::restart().

254  : mesh(data) { restart(); }
virtual void restart()
Moves the iterator back to the first entity in the list.

Here is the call graph for this function:

virtual ~MeshImplVertIter ( )
virtual

Member Function Documentation

bool is_at_end ( ) const
virtual

Returns false until the iterator has been advanced PAST the last entity.

Once is_at_end() returns true, *iterator returns 0.

Implements EntityIterator.

Definition at line 727 of file Mesh/MeshImplData.cpp.

References MeshImplVertIter::index, MeshImplData::max_vertex_index(), and MeshImplVertIter::mesh.

Here is the call graph for this function:

virtual bool is_at_end ( ) const
virtual

Returns false until the iterator has been advanced PAST the last entity.

Once is_at_end() returns true, *iterator returns 0.

Implements EntityIterator.

Mesh::VertexHandle operator* ( ) const
virtual

*iterator.

Return the handle currently being pointed at by the iterator.

Implements EntityIterator.

Definition at line 722 of file Mesh/MeshImplData.cpp.

References MeshImplVertIter::index.

723 {
724  return reinterpret_cast<Mesh::VertexHandle>(index);
725 }
EntityHandle VertexHandle
virtual Mesh::VertexHandle operator* ( ) const
virtual

*iterator.

Return the handle currently being pointed at by the iterator.

Implements EntityIterator.

void operator++ ( )
virtual

++iterator

Implements EntityIterator.

Definition at line 713 of file Mesh/MeshImplData.cpp.

References MeshImplVertIter::index, MeshImplData::is_corner_node(), MeshImplData::is_vertex_valid(), and MeshImplVertIter::mesh.

714 {
715  ++index;
716  while (index < mesh->max_vertex_index() &&
717  (!mesh->is_vertex_valid(index) ||
719  ++index;
720 }
bool is_vertex_valid(size_t index) const
Check if passed vertex index is valid.
bool is_corner_node(size_t index) const
Check if the specified node is used as a corner vertex on any element.

Here is the call graph for this function:

virtual void operator++ ( )
virtual

++iterator

Implements EntityIterator.

void restart ( )
virtual

Moves the iterator back to the first entity in the list.

Implements EntityIterator.

Definition at line 706 of file Mesh/MeshImplData.cpp.

References MeshImplVertIter::index, MeshImplData::is_vertex_valid(), and MeshImplVertIter::mesh.

Referenced by MeshImplVertIter::MeshImplVertIter().

707 {
708  index = 0;
709  if (!mesh->is_vertex_valid( index ))
710  operator++();
711 }
bool is_vertex_valid(size_t index) const
Check if passed vertex index is valid.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void restart ( )
virtual

Moves the iterator back to the first entity in the list.

Implements EntityIterator.

Member Data Documentation


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