politopix  4.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
listOfGeometricObjects< GEOMETRIC_OBJECT > Class Template Reference

This class is designed to contain the list of all generators or half-spaces representing a polytope or a polyhedral cone. More...

#include <GeometricObjectIterator_Rn.h>

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

Public Member Functions

 listOfGeometricObjects ()
 Constructor. More...
 
void push_back (const GEOMETRIC_OBJECT &gn)
 Include a new half space in the list. More...
 
const GEOMETRIC_OBJECT & operator[] (unsigned int i) const
 Return the i-th generator. More...
 
void operator= (const listOfGeometricObjects< GEOMETRIC_OBJECT > &listOfGN)
 Copies all elements from listOfGN to _GN. More...
 
void assign (const listOfGeometricObjects< GEOMETRIC_OBJECT > &listOfGN)
 Copies all elements from listOfGN to _GN. More...
 
bool empty () const
 Check whether the set is empty or not. More...
 
unsigned int size () const
 Get the total number of genuine facets. More...
 
void clear ()
 Clear the whole list. More...
 
void negate ()
 Multiply all generators or half-spaces by -1. More...
 
unsigned int find (const GEOMETRIC_OBJECT &GO) const throw (std::out_of_range)
 Find a given object in list.. More...
 
void removeGeometricObjects (const std::set< GEOMETRIC_OBJECT > &setToRemove)
 Get rid of all the objects stored in the set. More...
 
void removeGeometricObject (unsigned int j)
 Remove the geometric object number j from the list. More...
 
void lexminSort (unsigned int step)
 
void lexmaxSort (unsigned int step)
 

Static Public Member Functions

static bool inferior (const GEOMETRIC_OBJECT &HS1, const GEOMETRIC_OBJECT &HS2)
 Tell whether a given object is declared inferior to another one. More...
 
static bool superior (const GEOMETRIC_OBJECT &HS1, const GEOMETRIC_OBJECT &HS2)
 The opposite of the function inferior(HS1, HS2) More...
 

Protected Attributes

std::vector< GEOMETRIC_OBJECT > _GO
 The full list of half spaces or generators for example. More...
 

Detailed Description

template<class GEOMETRIC_OBJECT>
class listOfGeometricObjects< GEOMETRIC_OBJECT >

This class is designed to contain the list of all generators or half-spaces representing a polytope or a polyhedral cone.

Definition at line 40 of file GeometricObjectIterator_Rn.h.

Constructor & Destructor Documentation

template<class GEOMETRIC_OBJECT>
listOfGeometricObjects< GEOMETRIC_OBJECT >::listOfGeometricObjects ( )
inline

Constructor.

Definition at line 44 of file GeometricObjectIterator_Rn.h.

Member Function Documentation

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::assign ( const listOfGeometricObjects< GEOMETRIC_OBJECT > &  listOfGN)
inline

Copies all elements from listOfGN to _GN.

Definition at line 57 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::clear ( )
inline

Clear the whole list.

Definition at line 67 of file GeometricObjectIterator_Rn.h.

Here is the caller graph for this function:

template<class GEOMETRIC_OBJECT>
bool listOfGeometricObjects< GEOMETRIC_OBJECT >::empty ( ) const
inline

Check whether the set is empty or not.

Definition at line 61 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
unsigned int listOfGeometricObjects< GEOMETRIC_OBJECT >::find ( const GEOMETRIC_OBJECT &  GO) const
throw (std::out_of_range
)
inline

Find a given object in list..

Definition at line 76 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
static bool listOfGeometricObjects< GEOMETRIC_OBJECT >::inferior ( const GEOMETRIC_OBJECT &  HS1,
const GEOMETRIC_OBJECT &  HS2 
)
inlinestatic

Tell whether a given object is declared inferior to another one.

Definition at line 104 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::lexmaxSort ( unsigned int  step)
inline

Definition at line 129 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::lexminSort ( unsigned int  step)
inline

Definition at line 123 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::negate ( )
inline

Multiply all generators or half-spaces by -1.

Definition at line 70 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::operator= ( const listOfGeometricObjects< GEOMETRIC_OBJECT > &  listOfGN)
inline

Copies all elements from listOfGN to _GN.

Definition at line 53 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
const GEOMETRIC_OBJECT& listOfGeometricObjects< GEOMETRIC_OBJECT >::operator[] ( unsigned int  i) const
inline

Return the i-th generator.

Definition at line 50 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::push_back ( const GEOMETRIC_OBJECT &  gn)
inline

Include a new half space in the list.

Definition at line 47 of file GeometricObjectIterator_Rn.h.

Here is the caller graph for this function:

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::removeGeometricObject ( unsigned int  j)
inline

Remove the geometric object number j from the list.

Definition at line 101 of file GeometricObjectIterator_Rn.h.

template<class GEOMETRIC_OBJECT>
void listOfGeometricObjects< GEOMETRIC_OBJECT >::removeGeometricObjects ( const std::set< GEOMETRIC_OBJECT > &  setToRemove)
inline

Get rid of all the objects stored in the set.

Definition at line 91 of file GeometricObjectIterator_Rn.h.

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

Get the total number of genuine facets.

Definition at line 64 of file GeometricObjectIterator_Rn.h.

Here is the caller graph for this function:

template<class GEOMETRIC_OBJECT>
static bool listOfGeometricObjects< GEOMETRIC_OBJECT >::superior ( const GEOMETRIC_OBJECT &  HS1,
const GEOMETRIC_OBJECT &  HS2 
)
inlinestatic

The opposite of the function inferior(HS1, HS2)

Definition at line 119 of file GeometricObjectIterator_Rn.h.

Member Data Documentation

template<class GEOMETRIC_OBJECT>
std::vector< GEOMETRIC_OBJECT > listOfGeometricObjects< GEOMETRIC_OBJECT >::_GO
protected

The full list of half spaces or generators for example.

Definition at line 137 of file GeometricObjectIterator_Rn.h.


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