FMI 1.0
FaaS Message Interface
Public Member Functions | Friends | List of all members
FMI::Comm::Data< T > Class Template Reference

Small data wrapper around a generic type T with some helper utilities. More...

#include <Data.h>

Collaboration diagram for FMI::Comm::Data< T >:
Collaboration graph

Public Member Functions

 Data ()=default
 
 Data (T value)
 
std::size_t size_in_bytes ()
 
char * data ()
 Gets pointer to the start of the buffer. More...
 
get () const
 Returns the value. More...
 

Friends

std::ostream & operator<< (std::ostream &o, const Data &t)
 
bool operator== (const Data &lhs, const Data &rhs)
 

Detailed Description

template<typename T>
class FMI::Comm::Data< T >

Small data wrapper around a generic type T with some helper utilities.

Constructor & Destructor Documentation

◆ Data() [1/2]

template<typename T >
FMI::Comm::Data< T >::Data ( )
default

◆ Data() [2/2]

template<typename T >
FMI::Comm::Data< T >::Data ( value)
inline

Member Function Documentation

◆ data()

template<typename T >
char * FMI::Comm::Data< T >::data ( )
inline

Gets pointer to the start of the buffer.

◆ get()

template<typename T >
T FMI::Comm::Data< T >::get ( ) const
inline

Returns the value.

◆ size_in_bytes()

template<typename T >
std::size_t FMI::Comm::Data< T >::size_in_bytes ( )
inline

Friends And Related Function Documentation

◆ operator<<

template<typename T >
std::ostream & operator<< ( std::ostream &  o,
const Data< T > &  t 
)
friend

◆ operator==

template<typename T >
bool operator== ( const Data< T > &  lhs,
const Data< T > &  rhs 
)
friend

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