Public Member Functions | |
posWeight () | |
The default constructor. | |
posWeight (const wType &_value) | |
An optional constructor. | |
void | setInfinity () |
Sets the value to the infinity. | |
bool | isInfinity () const |
Returns true iff the value corresponds to the infinity. | |
const wType & | getValue () const |
Returns the value stored in this object. | |
Private Attributes | |
wType | value |
The actual number. | |
Friends | |
bool | operator< (const posWeight &x, const posWeight &y) |
The < operator for comparing the numbers. | |
std::ostream & | operator<< (std::ostream &out, const posWeight &x) |
The operator for showing the number to the output stream. |
Definition at line 486 of file digraph.h.
chomp::homology::diGraph< wType >::posWeight::posWeight | ( | ) | [inline] |
The default constructor.
Definition at line 490 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
chomp::homology::diGraph< wType >::posWeight::posWeight | ( | const wType & | _value | ) | [inline, explicit] |
An optional constructor.
Definition at line 497 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
void chomp::homology::diGraph< wType >::posWeight::setInfinity | ( | ) | [inline] |
Sets the value to the infinity.
Definition at line 507 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
bool chomp::homology::diGraph< wType >::posWeight::isInfinity | ( | ) | const [inline] |
Returns true iff the value corresponds to the infinity.
Definition at line 514 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
const wType& chomp::homology::diGraph< wType >::posWeight::getValue | ( | ) | const [inline] |
Returns the value stored in this object.
Definition at line 520 of file digraph.h.
References chomp::homology::diGraph< wType >::posWeight::value.
std::ostream& operator<< | ( | std::ostream & | out, | |
const posWeight & | x | |||
) | [friend] |
wType chomp::homology::diGraph< wType >::posWeight::value [private] |
The actual number.
Definition at line 549 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().