Multiscale Universal Interface  2.0
A Concurrent Framework for Coupling Heterogeneous Solvers
mui::comm_fd Class Reference

#include <comm_tcp.h>

Inheritance diagram for mui::comm_fd:
Collaboration diagram for mui::comm_fd:

Public Member Functions

 comm_fd (int local_rank, int local_size, std::vector< unique_fd_ > &&wfds, std::vector< unique_fd_ > &&rfds)
 
 ~comm_fd ()
 
int local_rank () const
 
int local_size () const
 
int remote_size () const
 
- Public Member Functions inherited from mui::communicator
 communicator ()
 
virtual ~communicator ()
 
virtual std::string uri_host () const
 
virtual std::string uri_path () const
 
virtual std::string uri_protocol () const
 
void send (message msg, const std::vector< bool > &is_sending)
 
void send (message msg)
 
message recv ()
 

Protected Member Functions

void send_impl_ (message msg, const std::vector< bool > &dest)
 
message recv_impl_ ()
 

Constructor & Destructor Documentation

◆ comm_fd()

mui::comm_fd::comm_fd ( int  local_rank,
int  local_size,
std::vector< unique_fd_ > &&  wfds,
std::vector< unique_fd_ > &&  rfds 
)
inline

◆ ~comm_fd()

mui::comm_fd::~comm_fd ( )
inline

Member Function Documentation

◆ local_rank()

int mui::comm_fd::local_rank ( ) const
inlinevirtual

Reimplemented from mui::communicator.

◆ local_size()

int mui::comm_fd::local_size ( ) const
inlinevirtual

Reimplemented from mui::communicator.

◆ recv_impl_()

message mui::comm_fd::recv_impl_ ( )
inlineprotectedvirtual

Implements mui::communicator.

◆ remote_size()

int mui::comm_fd::remote_size ( ) const
inlinevirtual

Reimplemented from mui::communicator.

◆ send_impl_()

void mui::comm_fd::send_impl_ ( message  msg,
const std::vector< bool > &  dest 
)
inlineprotectedvirtual

Implements mui::communicator.


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