An Edge connects a node to itself or to another node.
More...
#include <edge_p.h>
|
class | AbstractGraph |
|
class | TestEdge |
|
An Edge connects a node to itself or to another node.
- Attention
- An edge can only be created by an AbstractGraph derived object.
◆ addAttr()
void evoplex::BaseEdge::addAttr |
( |
QString |
name, |
|
|
Value |
value |
|
) |
| |
|
inline |
Appends the attribute name
with the value value
.
- Parameters
-
name | The attribute's name. |
value | The attribute's value. |
◆ attr() [1/2]
const Value & evoplex::BaseEdge::attr |
( |
int |
id | ) |
const |
|
inline |
Gets the value of the attribute at id
.
- Parameters
-
- Exceptions
-
std::out_of_range | if the id is not present. |
◆ attr() [2/2]
Value evoplex::BaseEdge::attr |
( |
const QString & |
name, |
|
|
Value |
defaultValue = Value() |
|
) |
| const |
|
inline |
Gets the value corresponding to name
.
- Parameters
-
name | The attribute's name. |
defaultValue | A Value to be returned if name is not present. |
◆ setAttr()
void evoplex::BaseEdge::setAttr |
( |
int |
id, |
|
|
const Value & |
value |
|
) |
| |
|
inline |
Sets the value at id
.
- Parameters
-
id | The attribute's id. |
value | The new attribute's value. |
- Exceptions
-
std::out_of_range | if the id is not present. |
The documentation for this class was generated from the following file: