iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::NodeState< T > Class Template Reference

Describes the state of a [Node]. More...

#include <node_state.hpp>

Public Member Functions

 NodeState (const NodeState &)=default
 NodeState (NodeState &&)=default
auto operator= (const NodeState &) -> NodeState &=default
auto operator= (NodeState &&) -> NodeState &=default
 ~NodeState ()=default
auto node_id () const -> const UniqueNodeId &
 Returns the [UniqueNodeId] of the corresponding [Node].
auto alive (const iox2::bb::StaticFunction< void(AliveNodeView< T > &)> &callback) -> NodeState &
auto dead (const iox2::bb::StaticFunction< void(DeadNodeView< T > &)> &callback) -> NodeState &
auto inaccessible (const iox2::bb::StaticFunction< void(UniqueNodeId &)> &callback) -> NodeState &
auto undefined (const iox2::bb::StaticFunction< void(UniqueNodeId &)> &callback) -> NodeState &

Friends

template<ServiceType>
auto internal::list_callback (iox2_node_state_e, iox2_unique_node_id_ptr, const char *, iox2_node_name_ptr, iox2_config_ptr, iox2_callback_context) -> iox2_callback_progression_e

Detailed Description

template<ServiceType T>
class iox2::NodeState< T >

Describes the state of a [Node].

Definition at line 90 of file node_state.hpp.

Constructor & Destructor Documentation

◆ NodeState() [1/2]

template<ServiceType T>
iox2::NodeState< T >::NodeState ( const NodeState< T > & )
default

◆ NodeState() [2/2]

template<ServiceType T>
iox2::NodeState< T >::NodeState ( NodeState< T > && )
default

References NodeState().

◆ ~NodeState()

template<ServiceType T>
iox2::NodeState< T >::~NodeState ( )
default

Member Function Documentation

◆ alive()

template<ServiceType T>
auto iox2::NodeState< T >::alive ( const iox2::bb::StaticFunction< void(AliveNodeView< T > &)> & callback) ->NodeState &

If the [Node] is alive the provided callback is called with an [AliveNodeView] as argument.

References alive(), and NodeState().

Referenced by alive().

◆ dead()

template<ServiceType T>
auto iox2::NodeState< T >::dead ( const iox2::bb::StaticFunction< void(DeadNodeView< T > &)> & callback) ->NodeState &

If the [Node] is dead the provided callback is called with a [DeadNodeView] as argument.

References dead(), and NodeState().

Referenced by dead().

◆ inaccessible()

template<ServiceType T>
auto iox2::NodeState< T >::inaccessible ( const iox2::bb::StaticFunction< void(UniqueNodeId &)> & callback) ->NodeState &

If the [Node] is inaccessible due to a lack of permissions the provided callback is called with a [NodeId] as argument.

References inaccessible(), and NodeState().

Referenced by inaccessible().

◆ node_id()

template<ServiceType T>
auto iox2::NodeState< T >::node_id ( ) const->constUniqueNodeId &

Returns the [UniqueNodeId] of the corresponding [Node].

Referenced by internal::list_callback.

◆ operator=() [1/2]

template<ServiceType T>
auto iox2::NodeState< T >::operator= ( const NodeState< T > & ) ->NodeState &=default
default

References NodeState().

◆ operator=() [2/2]

template<ServiceType T>
auto iox2::NodeState< T >::operator= ( NodeState< T > && ) ->NodeState &=default
default

References NodeState().

◆ undefined()

template<ServiceType T>
auto iox2::NodeState< T >::undefined ( const iox2::bb::StaticFunction< void(UniqueNodeId &)> & callback) ->NodeState &

If the [Node] is files are corrupted or some essential constructs are missing the provided callback is called with a [NodeId] as argument.

References NodeState(), and undefined().

Referenced by undefined().

◆ internal::list_callback

template<ServiceType T>
template<ServiceType>
auto internal::list_callback ( iox2_node_state_e ,
iox2_unique_node_id_ptr ,
const char * ,
iox2_node_name_ptr ,
iox2_config_ptr ,
iox2_callback_context  )->iox2_callback_progression_e
friend

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