Link Class Reference

API: cTopology::Link Class Reference
API
cTopology::Link Class Reference
Inheritance diagram for cTopology::Link:
[legend]

Public Member Functions

 Link (double weight=1)
double getWeight () const
void setWeight (double d)
bool isEnabled () const
void enable ()
void disable ()

Description

Supporting class for cTopology, represents a link in the graph.

Constructor & Destructor Documentation

◆ Link()

Link ( double weight = 1)
inline

Constructor.

Member Function Documentation

◆ getWeight()

double getWeight ( ) const
inline

Returns the weight of this link. Weight is used with the weighted shortest path finder methods of cTopology.

◆ setWeight()

void setWeight ( double d)
inline

Sets the weight of this link. Weight is used with the weighted shortest path finder methods of cTopology.

◆ isEnabled()

bool isEnabled ( ) const
inline

Returns true of this link is enabled. This has significance with the shortest path finder methods of cTopology.

◆ enable()

void enable ( )
inline

Enables this link. This has significance with the shortest path finder methods of cTopology.

◆ disable()

void disable ( )
inline

Disables this link. This has significance with the shortest path finder methods of cTopology.