Multiscale Universal Interface  2.0
A Concurrent Framework for Coupling Heterogeneous Solvers
mui::message Struct Reference

#include <message.h>

Public Types

using id_type = std::string
 

Public Member Functions

 message ()
 
bool has_id () const
 
const id_typeid () const
 
const char * data () const
 
std::size_t size () const
 
std::vector< char > detach ()
 

Static Public Member Functions

template<typename... types>
static message make (const id_type &id, types &&... data)
 
static message make (std::vector< char > data)
 

Friends

ostreamoperator<< (ostream &, const message &)
 

Member Typedef Documentation

◆ id_type

using mui::message::id_type = std::string

Constructor & Destructor Documentation

◆ message()

mui::message::message ( )
inline

Member Function Documentation

◆ data()

const char* mui::message::data ( ) const
inline

◆ detach()

std::vector<char> mui::message::detach ( )
inline

◆ has_id()

bool mui::message::has_id ( ) const
inline

◆ id()

const id_type& mui::message::id ( ) const
inline

◆ make() [1/2]

template<typename... types>
static message mui::message::make ( const id_type id,
types &&...  data 
)
inlinestatic

◆ make() [2/2]

static message mui::message::make ( std::vector< char >  data)
inlinestatic

◆ size()

std::size_t mui::message::size ( ) const
inline

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream stream,
const message m 
)
friend

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