QuOc

 

Public Types | Public Member Functions | Protected Attributes | Private Types

aol::TriangMesh< DataType >::TriangleIterator Class Reference

#include <triangMesh.h>

List of all members.

Public Types

typedef TriangleIterator Self
typedef MeshT BeginType
typedef MeshT EndType
typedef Vec3< intIteratedType

Public Member Functions

 TriangleIterator (const MeshT &mesh)
bool operator== (const EndType &) const
bool operator!= (const EndType &) const
bool atEnd () const
bool notAtEnd () const
Selfoperator++ ()
const IteratedTypeoperator* () const
const IteratedTypeoperator-> () const
int getIndex () const
Vec3< intgetNodeIndices () const

Protected Attributes

const MeshT_mesh
unsigned int _iter

Private Types

typedef TriangMesh< DataTypeMeshT

Detailed Description

template<typename DataType>
class aol::TriangMesh< DataType >::TriangleIterator

Definition at line 39 of file triangMesh.h.


Member Typedef Documentation

template<typename DataType>
typedef MeshT aol::TriangMesh< DataType >::TriangleIterator::BeginType

Definition at line 49 of file triangMesh.h.

template<typename DataType>
typedef MeshT aol::TriangMesh< DataType >::TriangleIterator::EndType

Definition at line 50 of file triangMesh.h.

template<typename DataType>
typedef Vec3<int> aol::TriangMesh< DataType >::TriangleIterator::IteratedType

Definition at line 51 of file triangMesh.h.

template<typename DataType>
typedef TriangMesh<DataType> aol::TriangMesh< DataType >::TriangleIterator::MeshT [private]

Definition at line 41 of file triangMesh.h.

template<typename DataType>
typedef TriangleIterator aol::TriangMesh< DataType >::TriangleIterator::Self

Definition at line 48 of file triangMesh.h.


Constructor & Destructor Documentation

template<typename DataType>
aol::TriangMesh< DataType >::TriangleIterator::TriangleIterator ( const MeshT mesh  )  [inline]

Definition at line 53 of file triangMesh.h.

        : _mesh ( mesh ),
        _iter ( 0 ) {}


Member Function Documentation

template<typename DataType>
bool aol::TriangMesh< DataType >::TriangleIterator::atEnd (  )  const [inline]
template<typename DataType>
int aol::TriangMesh< DataType >::TriangleIterator::getIndex (  )  const [inline]

Definition at line 86 of file triangMesh.h.

References aol::TriangMesh< DataType >::TriangleIterator::_iter.

                          {
      return static_cast<int> ( _iter );
    }

template<typename DataType>
Vec3<int> aol::TriangMesh< DataType >::TriangleIterator::getNodeIndices (  )  const [inline]

Definition at line 89 of file triangMesh.h.

References aol::TriangMesh< DataType >::TriangleIterator::operator*().

                                     {
      return operator* ();
    }

template<typename DataType>
bool aol::TriangMesh< DataType >::TriangleIterator::notAtEnd (  )  const [inline]
template<typename DataType>
bool aol::TriangMesh< DataType >::TriangleIterator::operator!= ( const EndType  )  const [inline]

Definition at line 61 of file triangMesh.h.

References aol::TriangMesh< DataType >::TriangleIterator::notAtEnd().

                                              {
      return notAtEnd();
    }

template<typename DataType>
const IteratedType& aol::TriangMesh< DataType >::TriangleIterator::operator* (  )  const [inline]
template<typename DataType>
Self& aol::TriangMesh< DataType >::TriangleIterator::operator++ (  )  [inline]

Definition at line 73 of file triangMesh.h.

References aol::TriangMesh< DataType >::TriangleIterator::_iter.

                        {
      ++_iter;
      return *this;
    }

template<typename DataType>
const IteratedType* aol::TriangMesh< DataType >::TriangleIterator::operator-> (  )  const [inline]
template<typename DataType>
bool aol::TriangMesh< DataType >::TriangleIterator::operator== ( const EndType  )  const [inline]

Definition at line 57 of file triangMesh.h.

References aol::TriangMesh< DataType >::TriangleIterator::atEnd().

                                              {
      return atEnd();
    }


Member Data Documentation

template<typename DataType>
unsigned int aol::TriangMesh< DataType >::TriangleIterator::_iter [protected]
template<typename DataType>
const MeshT& aol::TriangMesh< DataType >::TriangleIterator::_mesh [protected]

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

Generated on Fri Sep 9 2011 21:09:19 for QuocMesh by doxygen 1.7.1