WarpX
|
#include <MsgLogger.H>
Public Member Functions | |
std::vector< char > | serialize () const |
This function returns a byte representation of the struct. More... | |
Static Public Member Functions | |
static MsgWithCounter | deserialize (std::vector< char >::const_iterator &it) |
This function generates a MsgWithCounter struct from a byte vector. More... | |
static MsgWithCounter | deserialize (std::vector< char >::const_iterator &&it) |
Same as static Msg MsgWithCounter(std::vector<char>::const_iterator& it) but accepting an rvalue as an argument. More... | |
Public Attributes | |
Msg | msg |
std::int64_t | counter |
This struct represents a message with counter, which is composed by a message and a counter. The latter is intended to store the number of times a message is recorded. The struct also provides methods for serialization and deserialization.
|
static |
Same as static Msg MsgWithCounter(std::vector<char>::const_iterator& it) but accepting an rvalue as an argument.
[in] | it | iterator of a byte array |
|
static |
This function generates a MsgWithCounter struct from a byte vector.
[in] | it | iterator of a byte array |
std::vector< char > MsgWithCounter::serialize | ( | ) | const |
This function returns a byte representation of the struct.
std::int64_t ablastr::utils::msg_logger::MsgWithCounter::counter |
The counter
Msg ablastr::utils::msg_logger::MsgWithCounter::msg |
A message