Skip to content

Struct astrea::trace::IdPair

ClassList > astrea > trace > IdPair

Represents a pair of IDs for sender and receiver.

  • #include <IdPair.hpp>

Public Attributes

Type Name
std::size_t receiver
The ID of the receiver.
std::size_t sender
< The ID of the sender.

Public Functions

Type Name
IdPair () = default
Default constructor for IdPair .
IdPair (std::size_t sender, std::size_t receiver)
Constructs an IdPair with specified sender and receiver IDs.
IdPair (const IdPair & other)
Copy constructor for IdPair .
bool operator== (const IdPair & other) const
Equality operator for IdPair .
~IdPair () = default
Default destructor for IdPair .

Public Attributes Documentation

variable receiver

The ID of the receiver.

std::size_t astrea::trace::IdPair::receiver;


variable sender

< The ID of the sender.

std::size_t astrea::trace::IdPair::sender;


Public Functions Documentation

function IdPair [1/3]

Default constructor for IdPair .

astrea::trace::IdPair::IdPair () = default


function IdPair [2/3]

Constructs an IdPair with specified sender and receiver IDs.

inline astrea::trace::IdPair::IdPair (
    std::size_t sender,
    std::size_t receiver
) 

Parameters:

  • sender The ID of the sender.
  • receiver The ID of the receiver.

function IdPair [3/3]

Copy constructor for IdPair .

inline astrea::trace::IdPair::IdPair (
    const IdPair & other
) 

Parameters:

  • other The IdPair to copy from.

function operator==

Equality operator for IdPair .

inline bool astrea::trace::IdPair::operator== (
    const IdPair & other
) const

Parameters:

  • other The IdPair to compare with.

Returns:

True if both sender and receiver IDs are equal, false otherwise.


function ~IdPair

Default destructor for IdPair .

astrea::trace::IdPair::~IdPair () = default



The documentation for this class was generated from the following file astrea/trace/trace/types/IdPair.hpp