MCPcopy Create free account
hub / github.com/apache/singa / Message

Method Message

src/io/network/message.cc:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace singa {
33
34Message::Message(Message &&msg) {
35 std::swap(msize_, msg.msize_);
36 std::swap(psize_, msg.psize_);
37 std::swap(msg_, msg.msg_);
38 std::swap(type_, msg.type_);
39 std::swap(id_, msg.id_);
40}
41
42Message::Message(int type, uint32_t ack_msg_id) : type_(type), id_(ack_msg_id) {
43 if (type_ == MSG_ACK)

Callers

nothing calls this directly

Calls 1

appendIntegerFunction · 0.50

Tested by

no test coverage detected