politopix  5.0.0
lexIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT > Class Template Reference

Insert the half-spaces in the list in a lexicographically order, whether min or max. More...

#include <GeometricObjectIterator_Rn.h>

Inheritance diagram for lexIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >:
Inheritance graph
Collaboration diagram for lexIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >:
Collaboration graph

Public Member Functions

 lexIteratorOfListOfGeometricObjects (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...
 
bool end () const
 Tell whether we have reached the end of the list. More...
 
const GEOMETRIC_OBJECT current ()
 Return the current geometric element. More...
 
int currentIteratorNumber () const
 Return the current position in the list. More...
 

Protected Attributes

unsigned int _iterator
 The current position in the list. More...
 
listOfGeometricObjects< GEOMETRIC_OBJECT > & _list
 The actual list of geometric elements. More...
 
bool _alreadySorted
 Not to do the same job twice. More...
 
unsigned int _step
 Sort after a step. More...
 

Detailed Description

template<class GEOMETRIC_OBJECT>
class lexIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >

Insert the half-spaces in the list in a lexicographically order, whether min or max.

Definition at line 204 of file GeometricObjectIterator_Rn.h.

Constructor & Destructor Documentation

◆ lexIteratorOfListOfGeometricObjects()

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

Constructor.

Definition at line 208 of file GeometricObjectIterator_Rn.h.

Member Function Documentation

◆ begin()

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

Move the iterator at the beginning of the list.

Definition at line 213 of file GeometricObjectIterator_Rn.h.

◆ current()

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

Return the current geometric element.

Definition at line 225 of file GeometricObjectIterator_Rn.h.

◆ currentIteratorNumber()

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

Return the current position in the list.

Definition at line 233 of file GeometricObjectIterator_Rn.h.

◆ end()

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

Tell whether we have reached the end of the list.

Definition at line 222 of file GeometricObjectIterator_Rn.h.

◆ next()

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

Move the iterator one step forward.

Definition at line 216 of file GeometricObjectIterator_Rn.h.

◆ setStep()

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

Step forward in the list geometric elements.

Definition at line 219 of file GeometricObjectIterator_Rn.h.

Member Data Documentation

◆ _alreadySorted

template<class GEOMETRIC_OBJECT >
bool lexIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::_alreadySorted
protected

Not to do the same job twice.

Definition at line 241 of file GeometricObjectIterator_Rn.h.

◆ _iterator

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

The current position in the list.

Definition at line 237 of file GeometricObjectIterator_Rn.h.

◆ _list

template<class GEOMETRIC_OBJECT >
listOfGeometricObjects<GEOMETRIC_OBJECT>& lexIteratorOfListOfGeometricObjects< GEOMETRIC_OBJECT >::_list
protected

The actual list of geometric elements.

Definition at line 239 of file GeometricObjectIterator_Rn.h.

◆ _step

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

Sort after a step.

Definition at line 243 of file GeometricObjectIterator_Rn.h.


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