OnixS C++ B3 BOE Binary Order Entry  1.2.0
API Documentation
MessagePtr< Message > Class Template Reference

#include <OnixS/B3/BOE/testing/MessagePtr.h>

Public Types

using Container = std::shared_ptr< UInt8 >
 

Public Member Functions

 MessagePtr (Container &&, MessageSize)
 
template<class AnotherType >
 MessagePtr (const MessagePtr< AnotherType > &rhs)
 
template<class AnotherType >
 MessagePtr (MessagePtr< AnotherType > &&rhs)
 
 MessagePtr ()
 
 MessagePtr (const MessagePtr &)=default
 
MessagePtroperator= (const MessagePtr &)=default
 
 MessagePtr (MessagePtr &&rhs) noexcept
 
MessagePtroperator= (MessagePtr &&rhs) noexcept
 
bool valid () const noexcept
 
void swap (MessagePtr &rhs) noexcept
 
Message * operator-> () noexcept
 
const Message * operator-> () const noexcept
 
Message & operator* () noexcept
 
const Message & operator* () const noexcept
 
Message & message () noexcept
 
const Message & message () const noexcept
 
 operator Message () noexcept
 
 operator const Message () const noexcept
 
UInt8 * buf () noexcept
 
void reset ()
 
std::string toString () const
 

Friends

template<class T >
class MessagePtr
 

Detailed Description

template<typename Message>
class OnixS::B3::BOE::Testing::MessagePtr< Message >

Definition at line 51 of file MessagePtr.h.

Member Typedef Documentation

using Container = std::shared_ptr<UInt8>

Definition at line 54 of file MessagePtr.h.

Constructor & Destructor Documentation

MessagePtr ( Container &&  ,
MessageSize   
)

Creates from the given memory block.

MessagePtr ( const MessagePtr< AnotherType > &  rhs)
inlineexplicit

Create from another type.

Definition at line 62 of file MessagePtr.h.

MessagePtr ( MessagePtr< AnotherType > &&  rhs)
inlineexplicit

Creates from the given type.

Definition at line 73 of file MessagePtr.h.

MessagePtr ( )
inline

Creates an empty message container.

Definition at line 82 of file MessagePtr.h.

MessagePtr ( const MessagePtr< Message > &  )
default
MessagePtr ( MessagePtr< Message > &&  rhs)
inlinenoexcept

Definition at line 93 of file MessagePtr.h.

Member Function Documentation

UInt8* buf ( )
inlinenoexcept
Returns
the underlying buffer.

Definition at line 178 of file MessagePtr.h.

Message& message ( )
inlinenoexcept
Returns
the underlying message.

Definition at line 152 of file MessagePtr.h.

const Message& message ( ) const
inlinenoexcept
Returns
the underlying message.

Definition at line 159 of file MessagePtr.h.

operator const Message ( ) const
inlinenoexcept

Definition at line 172 of file MessagePtr.h.

operator Message ( )
inlinenoexcept

Definition at line 166 of file MessagePtr.h.

Message& operator* ( )
inlinenoexcept

Definition at line 140 of file MessagePtr.h.

const Message& operator* ( ) const
inlinenoexcept

Definition at line 146 of file MessagePtr.h.

Message* operator-> ( )
inlinenoexcept

Definition at line 126 of file MessagePtr.h.

const Message* operator-> ( ) const
inlinenoexcept

Definition at line 133 of file MessagePtr.h.

MessagePtr& operator= ( const MessagePtr< Message > &  )
default
MessagePtr& operator= ( MessagePtr< Message > &&  rhs)
inlinenoexcept

Definition at line 100 of file MessagePtr.h.

void reset ( )
inline

Resets the message.

Definition at line 184 of file MessagePtr.h.

void swap ( MessagePtr< Message > &  rhs)
inlinenoexcept

Definition at line 118 of file MessagePtr.h.

std::string toString ( ) const
inline
Returns
the human-readable presentation.

Definition at line 192 of file MessagePtr.h.

bool valid ( ) const
inlinenoexcept

Definition at line 112 of file MessagePtr.h.

Friends And Related Function Documentation

friend class MessagePtr
friend

Definition at line 213 of file MessagePtr.h.


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