The Node class represents the concept of a node in the network.
More...
#include <Node.hpp>
|
| | Node (Id id) |
| | Construct a new Node object with capacity 1.
|
| |
| | Node (Id id, geometry::Point point) |
| | Construct a new Node object with capacity 1.
|
| |
|
| Node (Node const &other) |
| |
|
Node & | operator= (Node const &other) |
| |
| void | setId (Id id) noexcept |
| | Set the node's id.
|
| |
| void | setGeometry (geometry::Point point) noexcept |
| | Set the node's geometry.
|
| |
| void | setName (const std::string &name) noexcept |
| | Set the node's name.
|
| |
|
void | addIngoingEdge (Id edgeId) |
| |
|
void | addOutgoingEdge (Id edgeId) |
| |
| Id | id () const |
| | Get the node's id.
|
| |
| std::optional< geometry::Point > const & | geometry () const noexcept |
| | Get the node's geometry.
|
| |
| std::string const & | name () const noexcept |
| | Get the node's name.
|
| |
|
std::vector< Id > const & | ingoingEdges () const noexcept |
| |
|
std::vector< Id > const & | outgoingEdges () const noexcept |
| |
| virtual bool | isStation () const noexcept |
| |
|
|
Id | m_id |
| |
|
std::optional< geometry::Point > | m_geometry |
| |
|
std::string | m_name |
| |
|
std::vector< Id > | m_ingoingEdges |
| |
|
std::vector< Id > | m_outgoingEdges |
| |
The Node class represents the concept of a node in the network.
- Template Parameters
-
| Id | The type of the node's id |
| Size | The type of the node's capacity |
◆ Node() [1/2]
Construct a new Node object with capacity 1.
- Parameters
-
◆ Node() [2/2]
Construct a new Node object with capacity 1.
- Parameters
-
◆ geometry()
Get the node's geometry.
- Returns
- std::optional<geometry::Point> A geometry::Point
◆ id()
| Id dsf::Node::id |
( |
| ) |
const |
|
inline |
Get the node's id.
- Returns
- Id The node's id
◆ isStation()
| virtual bool dsf::Node::isStation |
( |
| ) |
const |
|
inlinevirtualnoexcept |
◆ name()
| std::string const & dsf::Node::name |
( |
| ) |
const |
|
inlinenoexcept |
Get the node's name.
- Returns
- std::string The node's name
◆ setGeometry()
Set the node's geometry.
- Parameters
-
◆ setId()
| void dsf::Node::setId |
( |
Id | id | ) |
|
|
inlinenoexcept |
Set the node's id.
- Parameters
-
◆ setName()
| void dsf::Node::setName |
( |
const std::string & | name | ) |
|
|
inlinenoexcept |
Set the node's name.
- Parameters
-
The documentation for this class was generated from the following file: