politopix  5.0.0
constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT > Class Template Reference

This class is designed to run the list of all geometric objects representing a polytope. More...

#include <GeometricObjectIterator_Rn.h>

Collaboration diagram for constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >:
Collaboration graph

Public Member Functions

 constIteratorOfListOfGeometricObjects (const listOfGeometricObjects< GEOMETRIC_OBJECT > &l)
 Constructor. More...
 
void begin ()
 Move the iterator at the beginning of the list. More...
 
void next ()
 Move the iterator one step forward. More...
 
void setStep (unsigned int n)
 Step forward in the list geometric elements. More...
 
unsigned int size () const
 Get the total number of stored elements. More...
 
void advance (unsigned int n)
 Step forward in the list geometric elements. More...
 
bool end () const
 Tell whether we have reached the end of the list. More...
 
const GEOMETRIC_OBJECT current ()
 Return the current geometric element. More...
 
void swapElements (unsigned int ind1, unsigned int ind2)
 
int currentIteratorNumber () const
 Return the current position in the list. More...
 

Protected Attributes

unsigned int _iterator
 The current position in the list. More...
 
const listOfGeometricObjects< GEOMETRIC_OBJECT > & _list
 The actual list of geometric elements. More...
 
unsigned int _step
 To perform a step. More...
 

Detailed Description

template<class GEOMETRIC_OBJECT>
class constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >

This class is designed to run the list of all geometric objects representing a polytope.

Definition at line 142 of file GeometricObjectIterator_Rn.h.

Constructor & Destructor Documentation

◆ constIteratorOfListOfGeometricObjects()

template<class GEOMETRIC_OBJECT >
constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::constIteratorOfListOfGeometricObjects ( const listOfGeometricObjects< GEOMETRIC_OBJECT > &  l)
inline

Constructor.

Definition at line 146 of file GeometricObjectIterator_Rn.h.

Member Function Documentation

◆ advance()

template<class GEOMETRIC_OBJECT >
void constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::advance ( unsigned int  n)
inline

Step forward in the list geometric elements.

Definition at line 162 of file GeometricObjectIterator_Rn.h.

◆ begin()

template<class GEOMETRIC_OBJECT >
void constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::begin ( )
inline

Move the iterator at the beginning of the list.

Definition at line 150 of file GeometricObjectIterator_Rn.h.

◆ current()

template<class GEOMETRIC_OBJECT >
const GEOMETRIC_OBJECT constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::current ( )
inline

Return the current geometric element.

Return the current geometric element.

Definition at line 177 of file GeometricObjectIterator_Rn.h.

◆ currentIteratorNumber()

template<class GEOMETRIC_OBJECT >
int constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::currentIteratorNumber ( ) const
inline

Return the current position in the list.

Definition at line 192 of file GeometricObjectIterator_Rn.h.

Here is the caller graph for this function:

◆ end()

template<class GEOMETRIC_OBJECT >
bool constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::end ( ) const
inline

Tell whether we have reached the end of the list.

Definition at line 174 of file GeometricObjectIterator_Rn.h.

◆ next()

template<class GEOMETRIC_OBJECT >
void constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::next ( )
inline

Move the iterator one step forward.

Definition at line 153 of file GeometricObjectIterator_Rn.h.

◆ setStep()

template<class GEOMETRIC_OBJECT >
void constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::setStep ( unsigned int  n)
inline

Step forward in the list geometric elements.

Definition at line 156 of file GeometricObjectIterator_Rn.h.

◆ size()

template<class GEOMETRIC_OBJECT >
unsigned int constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::size ( ) const
inline

Get the total number of stored elements.

Definition at line 159 of file GeometricObjectIterator_Rn.h.

◆ swapElements()

template<class GEOMETRIC_OBJECT >
void constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::swapElements ( unsigned int  ind1,
unsigned int  ind2 
)
inline

Definition at line 185 of file GeometricObjectIterator_Rn.h.

Member Data Documentation

◆ _iterator

template<class GEOMETRIC_OBJECT >
unsigned int constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::_iterator
protected

The current position in the list.

Definition at line 196 of file GeometricObjectIterator_Rn.h.

◆ _list

template<class GEOMETRIC_OBJECT >
const listOfGeometricObjects<GEOMETRIC_OBJECT>& constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::_list
protected

The actual list of geometric elements.

Definition at line 198 of file GeometricObjectIterator_Rn.h.

◆ _step

template<class GEOMETRIC_OBJECT >
unsigned int constIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::_step
protected

To perform a step.

Definition at line 200 of file GeometricObjectIterator_Rn.h.


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