The CyMeAlg Software (Release 0.01)
|
A class for representing a positive number with negative values serving as the infinity (used in the Dijkstra algorithm). More...
Public Member Functions | |
posWeight () | |
The default constructor. More... | |
posWeight (const wType &_value) | |
An optional constructor. More... | |
void | setInfinity () |
Sets the value to the infinity. More... | |
bool | isInfinity () const |
Returns true iff the value corresponds to the infinity. More... | |
const wType & | getValue () const |
Returns the value stored in this object. More... | |
Private Attributes | |
wType | value |
The actual number. More... | |
Friends | |
bool | operator< (const posWeight &x, const posWeight &y) |
The < operator for comparing the numbers. More... | |
std::ostream & | operator<< (std::ostream &out, const posWeight &x) |
The operator for showing the number to the output stream. More... | |
A class for representing a positive number with negative values serving as the infinity (used in the Dijkstra algorithm).
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |