CommRaT 2.0.0
C++20 Real-Time Messaging Framework
Loading...
Searching...
No Matches
commrat::MailboxResult< T > Class Template Reference

#include <commrat/mailbox/mailbox.hpp>

Public Member Functions

 MailboxResult (T value)
 
 MailboxResult (MailboxError error)
 
 operator bool () const
 
bool has_value () const
 
T & operator* () &
 
const T & operator* () const &
 
T && operator* () &&
 
T * operator-> ()
 
const T * operator-> () const
 
T & value () &
 
const T & value () const &
 
T && value () &&
 
MailboxError error () const
 

Detailed Description

template<typename T>
class commrat::MailboxResult< T >

Definition at line 57 of file mailbox.hpp.

Constructor & Destructor Documentation

◆ MailboxResult() [1/2]

template<typename T >
commrat::MailboxResult< T >::MailboxResult ( value)
inline

Definition at line 64 of file mailbox.hpp.

◆ MailboxResult() [2/2]

template<typename T >
commrat::MailboxResult< T >::MailboxResult ( MailboxError  error)
inline

Definition at line 67 of file mailbox.hpp.

Member Function Documentation

◆ error()

template<typename T >
MailboxError commrat::MailboxResult< T >::error ( ) const
inline

Definition at line 86 of file mailbox.hpp.

Referenced by commrat::RegistryMailbox< Registry >::receive_any_for().

◆ has_value()

template<typename T >
bool commrat::MailboxResult< T >::has_value ( ) const
inline

Definition at line 71 of file mailbox.hpp.

◆ operator bool()

template<typename T >
commrat::MailboxResult< T >::operator bool ( ) const
inlineexplicit

Definition at line 70 of file mailbox.hpp.

◆ operator*() [1/3]

template<typename T >
T & commrat::MailboxResult< T >::operator* ( ) &
inline

Definition at line 74 of file mailbox.hpp.

◆ operator*() [2/3]

template<typename T >
T && commrat::MailboxResult< T >::operator* ( ) &&
inline

Definition at line 76 of file mailbox.hpp.

◆ operator*() [3/3]

template<typename T >
const T & commrat::MailboxResult< T >::operator* ( ) const &
inline

Definition at line 75 of file mailbox.hpp.

◆ operator->() [1/2]

template<typename T >
T * commrat::MailboxResult< T >::operator-> ( )
inline

Definition at line 78 of file mailbox.hpp.

◆ operator->() [2/2]

template<typename T >
const T * commrat::MailboxResult< T >::operator-> ( ) const
inline

Definition at line 79 of file mailbox.hpp.

◆ value() [1/3]

template<typename T >
T & commrat::MailboxResult< T >::value ( ) &
inline

Definition at line 81 of file mailbox.hpp.

◆ value() [2/3]

template<typename T >
T && commrat::MailboxResult< T >::value ( ) &&
inline

Definition at line 83 of file mailbox.hpp.

◆ value() [3/3]

template<typename T >
const T & commrat::MailboxResult< T >::value ( ) const &
inline

Definition at line 82 of file mailbox.hpp.


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