SimplexIterator< ISS > Class Template Reference

A simplex iterator for a mesh. More...

#include <SimplexIterator.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 ISS IssType
 Indexed simplex set (mesh).

Public Member Functions

Constructors etc.

 SimplexIterator (const IssType &iss)
 Construct a simplex iterator for a mesh.
 SimplexIterator (const SimplexIterator &other)
 Copy constructor.
SimplexIteratoroperator= (const SimplexIterator &other)
 Assignment operator.
 ~SimplexIterator ()
 Destructor.
Forward iterator requirements

reference operator* () const
 Dereference.
pointer operator-> () const
 Pointer dereference.
SimplexIteratoroperator++ ()
 Pre-increment.
SimplexIterator operator++ (int)
 Post-increment.
Bidirectional iterator requirements

SimplexIteratoroperator-- ()
 Pre-decrement.
SimplexIterator operator-- (int)
 Post-decrement.
Random access iterator requirements

reference operator[] (const difference_type n) const
 Iterator indexing.
SimplexIteratoroperator+= (const difference_type n)
 Positive offseting.
SimplexIterator operator+ (const difference_type n) const
 Positive offseting.
SimplexIteratoroperator-= (const difference_type n)
 Negative offseting.
SimplexIterator operator- (const difference_type n) const
 Negative offseting.
int getBase () const
 Return the index.

Detailed Description

template<class ISS>
class SimplexIterator< ISS >

A simplex iterator for a mesh.

Parameters:
ISS is the mesh.

This is a const iterator.


Constructor & Destructor Documentation

template<class ISS>
SimplexIterator< ISS >::SimplexIterator ( const IssType iss  )  [inline]

Construct a simplex iterator for a mesh.

It is initialized to point to the first simplex.


Member Function Documentation

template<class ISS>
SimplexIterator SimplexIterator< ISS >::operator+ ( const difference_type  n  )  const [inline]

Positive offseting.

Note:
This is not efficient. If possible, use += instead.
template<class ISS>
SimplexIterator SimplexIterator< ISS >::operator++ ( int   )  [inline]

Post-increment.

Note:
This is not efficient. If possible, use the pre-increment operator instead.
template<class ISS>
SimplexIterator SimplexIterator< ISS >::operator- ( const difference_type  n  )  const [inline]

Negative offseting.

Note:
This is not efficient. If possible, use -= instead.
template<class ISS>
SimplexIterator SimplexIterator< ISS >::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