The Original CHomP Software
|
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 |
The default constructor.
Definition at line 518 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
|
inlineexplicit |
An optional constructor.
Definition at line 525 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
|
inline |
Returns the value stored in this object.
Definition at line 548 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
|
inline |
Returns true iff the value corresponds to the infinity.
Definition at line 542 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
|
inline |
Sets the value to the infinity.
Definition at line 535 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
The < operator for comparing the numbers.
Definition at line 554 of file digraph.h.
|
friend |
The operator for showing the number to the output stream.
Definition at line 565 of file digraph.h.
|
private |
The actual number.
Definition at line 577 of file digraph.h.
Referenced by chomp::homology::diGraph< wType >::posWeight::getValue(), chomp::homology::diGraph< wType >::posWeight::isInfinity(), chomp::homology::diGraph< wType >::posWeight::posWeight(), and chomp::homology::diGraph< wType >::posWeight::setInfinity().