SOLA
Loading...
Searching...
No Matches
Public Member Functions | List of all members
minhton::MinhtonMessage< T > Class Template Reference

#include <message.h>

Public Member Functions

MinhtonMessageHeader getHeader () const
 
NodeInfo getSender () const
 
NodeInfo getTarget () const
 
void setTarget (NodeInfo new_target)
 
getFullMessage () const
 

Detailed Description

template<typename T>
class minhton::MinhtonMessage< T >

Representation of the minimal set of properties for a MinhtonMessage. Each MinhtonMessage consists of a MinhtonMessageHeader which is inside a specific message type next to its payload.

Member Function Documentation

◆ getHeader()

template<typename T >
MinhtonMessageHeader minhton::MinhtonMessage< T >::getHeader ( ) const

Helper method to access the header

Returns
the header of the message

◆ getSender()

template<typename T >
NodeInfo minhton::MinhtonMessage< T >::getSender ( ) const

Helper method to access the sender from the header equivalent to header_.getSender()

Returns
the NodeInfo of the sender

◆ getTarget()

template<typename T >
NodeInfo minhton::MinhtonMessage< T >::getTarget ( ) const

Helper method to access the sender from the header equivalent to header_.getTarget()

Returns
the NodeInfo of the target

◆ setTarget()

template<typename T >
void minhton::MinhtonMessage< T >::setTarget ( NodeInfo  new_target)

Helper method to change the target. Only to be used for Search Exact or Entity Search, where the query target needs to be adjusted

Parameters
new_targetNew Target

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