EdgeIterator< _Mesh, Const > Class Template Reference

An iterator on edges in a simplicial mesh. More...

#include <EdgeIterator.h>

List of all members.

Public Types

typedef Base::iterator_category iterator_category
 Iterator category.
typedef Base::value_type value_type
 Value type.
typedef Base::difference_type difference_type
 Pointer difference type.
typedef Base::pointer pointer
 Pointer to the value type.
typedef Base::reference reference
 Reference to the value type.
typedef value_type Edge
 An edge in the mesh.
typedef Loki::Select< Const,
typename
Mesh::CellConstIterator,
typename Mesh::CellIterator >
::Result 
CellIterator
 Cell iterator.

Public Member Functions

Constructors for the mesh to call.

 EdgeIterator (const CellIterator c, const CellIterator cellsEnd)
 Construct a edge const iterator for the mesh.
Constructors etc.

 EdgeIterator (const EdgeIterator &other)
 Copy constructor.
EdgeIteratoroperator= (const EdgeIterator &other)
 Assignment operator.
 ~EdgeIterator ()
 Destructor.
const EdgegetEdge () const
 The edge.
const CellIteratorgetCellsEnd () const
 The end of the list of cells.
template<bool _Const>
 EdgeIterator (const EdgeIterator< Mesh, _Const > &other)
 Conversion from iterator to const iterator.
Forward iterator requirements

reference operator* () const
 Dereference.
pointer operator-> () const
 Return a const pointer to the edge.
EdgeIteratoroperator++ ()
 Pre-increment.
EdgeIterator operator++ (int)
 Post-increment.
Bidirectional iterator requirements

EdgeIteratoroperator-- ()
 Pre-decrement.
EdgeIterator operator-- (int)
 Post-decrement.
Equality.

bool operator== (const EdgeIterator &x)
 Return true if x is an iterator to the same edge.
bool operator!= (const EdgeIterator &x)
 Return true if x is not an iterator to the same edge.

Detailed Description

template<class _Mesh, bool Const = true>
class EdgeIterator< _Mesh, Const >

An iterator on edges in a simplicial mesh.


Member Function Documentation

template<class _Mesh, bool Const = true>
const CellIterator& EdgeIterator< _Mesh, Const >::getCellsEnd (  )  const [inline]

The end of the list of cells.

This is needed for the conversion constructor.

template<class _Mesh, bool Const = true>
const Edge& EdgeIterator< _Mesh, Const >::getEdge (  )  const [inline]

The edge.

This is needed for the conversion constructor.

template<class _Mesh, bool Const = true>
EdgeIterator EdgeIterator< _Mesh, Const >::operator++ ( int   )  [inline]

Post-increment.

Note:
This is not efficient. If possible, use the pre-increment operator instead.
template<class _Mesh, bool Const = true>
EdgeIterator EdgeIterator< _Mesh, Const >::operator-- ( int   )  [inline]

Post-decrement.

Note:
This is not efficient. If possible, use the pre-decrement operator instead.

The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:58 2016 for Computational Geometry Package by  doxygen 1.6.3