OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::msgbus::node_connections Class Reference

Class providing information about connections from the perspective of a node. More...

#include <eagine/message_bus/remote_node.hpp>

Public Member Functions

auto origin () -> remote_node
 Returns the origin node connected by the listed connections.
 
auto count () const noexcept -> span_size_t
 Returns the number of adjacent connections of the origin node. More...
 
auto get (span_size_t index) -> node_connection
 Returns the i-th connection of the origin node. More...
 
auto remote (span_size_t index) -> remote_node
 Returns the node connected through the i-th connection. More...
 

Detailed Description

Class providing information about connections from the perspective of a node.

See also
remote_node_tracker
remote_node
remote_host
remote_instance
node_connection

Member Function Documentation

◆ count()

auto eagine::msgbus::node_connections::count ( ) const -> span_size_t
inlinenoexcept

Returns the number of adjacent connections of the origin node.

See also
get
remote

◆ get()

auto eagine::msgbus::node_connections::get ( span_size_t  index) -> node_connection
inline

Returns the i-th connection of the origin node.

See also
count
remote
Precondition
index >= 0 && index < count()

◆ remote()

auto eagine::msgbus::node_connections::remote ( span_size_t  index) -> remote_node
inline

Returns the node connected through the i-th connection.

See also
count
get
Precondition
index >= 0 && index < count()

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).