iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::ServiceBuilderBlackboardCreator< KeyType, S > Class Template Reference

Builder to create new [MessagingPattern::Blackboard] based [Service]s. More...

#include <service_builder_blackboard.hpp>

Public Member Functions

auto max_readers (const uint64_t value) -> decltype(auto)
 Defines how many [Reader]s shall be supported at most.
auto max_nodes (const uint64_t value) -> decltype(auto)
 Defines how many [Node]s shall be able to open it in parallel.
 ServiceBuilderBlackboardCreator (ServiceBuilderBlackboardCreator &&rhs) noexcept
auto operator= (ServiceBuilderBlackboardCreator &&rhs) noexcept -> ServiceBuilderBlackboardCreator &
 ~ServiceBuilderBlackboardCreator ()
 ServiceBuilderBlackboardCreator (const ServiceBuilderBlackboardCreator &)=delete
auto operator= (const ServiceBuilderBlackboardCreator &) -> ServiceBuilderBlackboardCreator &=delete
template<typename ValueType>
auto add (KeyType key, ValueType value) -> ServiceBuilderBlackboardCreator &&
 Adds key-value pairs to the blackboard.
template<typename ValueType>
auto add_with_default (KeyType key) -> ServiceBuilderBlackboardCreator &&
 Adds key-value pairs to the blackboard where value is a default value.
auto create () &&-> bb::Expected< PortFactoryBlackboard< S, KeyType >, BlackboardCreateError >
 Creates a new [Service].
auto create_with_attributes (const AttributeSpecifier &attributes) &&-> bb::Expected< PortFactoryBlackboard< S, KeyType >, BlackboardCreateError >
 Creates a new [Service] with a set of attributes.

Friends

template<ServiceType>
class ServiceBuilder

Detailed Description

template<typename KeyType, ServiceType S>
class iox2::ServiceBuilderBlackboardCreator< KeyType, S >

Builder to create new [MessagingPattern::Blackboard] based [Service]s.

Definition at line 31 of file service_builder_blackboard.hpp.

Constructor & Destructor Documentation

◆ ServiceBuilderBlackboardCreator() [1/2]

template<typename KeyType, ServiceType S>
iox2::ServiceBuilderBlackboardCreator< KeyType, S >::ServiceBuilderBlackboardCreator ( ServiceBuilderBlackboardCreator< KeyType, S > && rhs)
inlinenoexcept

◆ ~ServiceBuilderBlackboardCreator()

template<typename KeyType, ServiceType S>
iox2::ServiceBuilderBlackboardCreator< KeyType, S >::~ServiceBuilderBlackboardCreator ( )
inline

Definition at line 186 of file service_builder_blackboard.hpp.

◆ ServiceBuilderBlackboardCreator() [2/2]

template<typename KeyType, ServiceType S>
iox2::ServiceBuilderBlackboardCreator< KeyType, S >::ServiceBuilderBlackboardCreator ( const ServiceBuilderBlackboardCreator< KeyType, S > & )
delete

Member Function Documentation

◆ add()

template<typename KeyType, ServiceType S>
template<typename ValueType>
auto iox2::ServiceBuilderBlackboardCreator< KeyType, S >::add ( KeyType key,
ValueType value )->ServiceBuilderBlackboardCreator &&
inline

Adds key-value pairs to the blackboard.

Definition at line 206 of file service_builder_blackboard.hpp.

References iox2::internal::get_type_name(), and ServiceBuilderBlackboardCreator().

Referenced by add_with_default().

◆ add_with_default()

template<typename KeyType, ServiceType S>
template<typename ValueType>
auto iox2::ServiceBuilderBlackboardCreator< KeyType, S >::add_with_default ( KeyType key) ->ServiceBuilderBlackboardCreator &&
inline

Adds key-value pairs to the blackboard where value is a default value.

Definition at line 237 of file service_builder_blackboard.hpp.

References add(), and ServiceBuilderBlackboardCreator().

◆ create()

template<typename KeyType, ServiceType S>
auto iox2::ServiceBuilderBlackboardCreator< KeyType, S >::create ( ) &&->bb::Expected< PortFactoryBlackboard< S, KeyType >, BlackboardCreateError >
inline

Creates a new [Service].

Definition at line 243 of file service_builder_blackboard.hpp.

References iox2::bb::err(), and iox2::bb::into().

◆ create_with_attributes()

template<typename KeyType, ServiceType S>
auto iox2::ServiceBuilderBlackboardCreator< KeyType, S >::create_with_attributes ( const AttributeSpecifier & attributes) &&->bb::Expected< PortFactoryBlackboard< S, KeyType >, BlackboardCreateError >
inline

Creates a new [Service] with a set of attributes.

Definition at line 259 of file service_builder_blackboard.hpp.

References iox2::bb::err(), and iox2::bb::into().

◆ max_nodes()

template<typename KeyType, ServiceType S>
auto iox2::ServiceBuilderBlackboardCreator< KeyType, S >::max_nodes ( const uint64_t value) ->decltype(auto)

Defines how many [Node]s shall be able to open it in parallel.

References max_nodes(), and ServiceBuilderBlackboardCreator().

Referenced by max_nodes().

◆ max_readers()

template<typename KeyType, ServiceType S>
auto iox2::ServiceBuilderBlackboardCreator< KeyType, S >::max_readers ( const uint64_t value) ->decltype(auto)

Defines how many [Reader]s shall be supported at most.

References max_readers().

Referenced by max_readers().

◆ operator=() [1/2]

template<typename KeyType, ServiceType S>
auto iox2::ServiceBuilderBlackboardCreator< KeyType, S >::operator= ( const ServiceBuilderBlackboardCreator< KeyType, S > & ) ->ServiceBuilderBlackboardCreator &=delete
delete

◆ operator=() [2/2]

template<typename KeyType, ServiceType S>
auto iox2::ServiceBuilderBlackboardCreator< KeyType, S >::operator= ( ServiceBuilderBlackboardCreator< KeyType, S > && rhs) ->ServiceBuilderBlackboardCreator &
inlinenoexcept

Definition at line 172 of file service_builder_blackboard.hpp.

References ServiceBuilderBlackboardCreator().

◆ ServiceBuilder

template<typename KeyType, ServiceType S>
template<ServiceType>
friend class ServiceBuilder
friend

Definition at line 81 of file service_builder_blackboard.hpp.

References ServiceBuilder.

Referenced by ServiceBuilder.


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