helics
3.5.2
|
#include <CommsBroker.hpp>
Public Member Functions | |
CommsBroker () noexcept | |
CommsBroker (bool arg) noexcept | |
CommsBroker (std::string_view obj_name) | |
~CommsBroker () | |
virtual void | transmit (route_id rid, const ActionMessage &cmd) override |
virtual void | transmit (route_id rid, ActionMessage &&cmd) override |
virtual void | addRoute (route_id rid, int interfaceId, std::string_view routeInfo) override |
virtual void | removeRoute (route_id rid) override |
COMMS * | getCommsObjectPointer () |
Protected Attributes | |
std::atomic< int > | disconnectionStage {0} |
the stage of disconnection | |
std::unique_ptr< COMMS > | comms |
the actual comms object | |
std::atomic< bool > | brokerInitialized {false} |
atomic protecting local initialization | |
helper class defining some common functionality for brokers and cores that use different communication methods
|
noexcept |
default constructor
|
explicitnoexcept |
create from a single argument
|
explicit |
create from an object name
helics::CommsBroker< COMMS, BrokerT >::~CommsBroker |
destructor
References helics::BrokerBase::haltOperations, and helics::BrokerBase::joinAllThreads().
COMMS * helics::CommsBroker< COMMS, BrokerT >::getCommsObjectPointer |
get a pointer to the comms object