_FixId Class Reference

#include <lemon/lp_base.h>

List of all members.


Detailed Description

Todo:
This might be implemented to be also usable in other places.


Public Member Functions

int fixId (int n) const
 Convert a floating id to a fix one.
int floatingId (int n) const
 Convert a fix id to a floating one.
int insert (int n)
 Add a new floating id.
void erase (int n)
 Remove a fix id.
std::size_t maxFixId ()
 An upper bound on the largest fix id.


Member Function Documentation

int fixId int  n  )  const [inline]
 

Parameters:
n is a floating id
Returns:
the corresponding fix id

int floatingId int  n  )  const [inline]
 

Parameters:
n is a fix id
Returns:
the corresponding floating id

int insert int  n  )  [inline]
 

Parameters:
n is a floating id
Returns:
the fix id of the new value
Todo:
Multiple additions should also be handled.
Todo:
Create an own exception type.

void erase int  n  )  [inline]
 

Parameters:
n is a fix id

std::size_t maxFixId  )  [inline]
 

Todo:
Do we need this?


The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:42:06 2006 for LEMON by  doxygen 1.4.6