CORESENSE4home_Architecture
Loading...
Searching...
No Matches
Flow Class Reference

Represents a sequence of nodes within a robotic system, with utilities to manage and print the node sequence. More...

#include <Flow.hpp>

Public Member Functions

 Flow (const std::vector< std::string > &nodes)
 Constructs a Flow object with a specified sequence of nodes.
 
const std::vector< std::string > & get_nodes () const
 Retrieves the sequence of nodes in the flow.
 
void print () const
 Prints the sequence of nodes in the flow to the standard output.
 

Detailed Description

Represents a sequence of nodes within a robotic system, with utilities to manage and print the node sequence.

Constructor & Destructor Documentation

◆ Flow()

Flow ( const std::vector< std::string > & nodes)
explicit

Constructs a Flow object with a specified sequence of nodes.

Constructs a Flow object with a list of nodes.

Parameters
nodesA vector of node names to initialize the flow sequence.

Member Function Documentation

◆ get_nodes()

const std::vector< std::string > & get_nodes ( ) const

Retrieves the sequence of nodes in the flow.

Returns
A constant reference to the vector of node names.

◆ print()

void print ( ) const

Prints the sequence of nodes in the flow to the standard output.

This function outputs each node name in the flow, prefixed by an arrow (->) to represent the sequence visually.


The documentation for this class was generated from the following files: