OnixS C++ CME MDP Conflated TCP Handler  1.2.1
API Documentation
MessagePtr< Message > Class Template Reference

#include <OnixS/CME/ConflatedTCP/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
 
void swap (MessagePtr &rhs) noexcept
 
Message * operator-> () noexcept
 
const Message * operator-> () const noexcept
 
Message & message () noexcept
 
const Message & message () const noexcept
 
 operator Message ()
 
 operator const Message () const
 
UInt8buf () noexcept
 
void reset ()
 
std::string toString () const
 

Friends

template<class T >
class MessagePtr
 

Detailed Description

template<typename Message>
class OnixS::CME::ConflatedTCP::Testing::MessagePtr< Message >

Definition at line 44 of file MessagePtr.h.

Member Typedef Documentation

using Container = std::shared_ptr<UInt8>

Definition at line 47 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 55 of file MessagePtr.h.

MessagePtr ( MessagePtr< AnotherType > &&  rhs)
inlineexplicit

Creates from the given type.

Definition at line 66 of file MessagePtr.h.

MessagePtr ( )
inline

Creates an empty message container.

Definition at line 75 of file MessagePtr.h.

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

Definition at line 86 of file MessagePtr.h.

Member Function Documentation

UInt8* buf ( )
inlinenoexcept
Returns
the underlying buffer.

Definition at line 149 of file MessagePtr.h.

Message& message ( )
inlinenoexcept
Returns
the underlying message.

Definition at line 125 of file MessagePtr.h.

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

Definition at line 131 of file MessagePtr.h.

operator const Message ( ) const
inline

Definition at line 143 of file MessagePtr.h.

operator Message ( )
inline

Definition at line 137 of file MessagePtr.h.

Message* operator-> ( )
inlinenoexcept

Definition at line 113 of file MessagePtr.h.

const Message* operator-> ( ) const
inlinenoexcept

Definition at line 119 of file MessagePtr.h.

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

Definition at line 93 of file MessagePtr.h.

void reset ( )
inline

Resets the message.

Definition at line 155 of file MessagePtr.h.

void swap ( MessagePtr< Message > &  rhs)
inlinenoexcept

Definition at line 105 of file MessagePtr.h.

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

Definition at line 163 of file MessagePtr.h.

Friends And Related Function Documentation

friend class MessagePtr
friend

Definition at line 201 of file MessagePtr.h.


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