Cortex  10.0.0-a4
Public Types | Public Member Functions | List of all members
IECore::PolygonVertexIterator< VertexValueIterator, VertexIndexIterator > Class Template Reference

#include <PolygonVertexIterator.h>

Public Types

typedef std::forward_iterator_tag iterator_category
 
typedef VertexValueIterator::value_type value_type
 
typedef VertexValueIterator::difference_type difference_type
 
typedef VertexValueIterator::pointer pointer
 
typedef VertexValueIterator::reference reference
 

Public Member Functions

 PolygonVertexIterator ()
 Uninitialised.
 
 PolygonVertexIterator (VertexIndexIterator vertexIndexIterator, VertexValueIterator vertexValuesBegin)
 
PolygonVertexIteratoroperator++ ()
 
PolygonVertexIterator operator++ (int)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const PolygonVertexIterator &rhs) const
 
bool operator!= (const PolygonVertexIterator &rhs) const
 
PolygonVertexIteratoroperator= (const PolygonVertexIterator &rhs)
 

Detailed Description

template<typename VertexValueIterator, typename VertexIndexIterator = std::vector<int>::const_iterator>
class IECore::PolygonVertexIterator< VertexValueIterator, VertexIndexIterator >

An iterator type suitable for applying the PolygonAlgo.h algorithms to a MeshPrimitive. VertexValueIterator is required to be a model of random_access_iterator. Generally it'll be a std::vector::const_iterator instantiated from the Data of a PrimitiveVariable. Generally PolygonVertexIterators aren't created directly, instead they'd be created with the PolygonIterator::vertexBegin() and PolygonIterator::vertexEnd() methods.


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