}
/* Only call once. */
- json::json transfer_fragment()
+ json::json move_fragment()
{
return std::move(_environment);
}
}
/* Only call once. */
- json::json transfer_fragment()
+ json::json move_fragment()
{
return std::move(_fragment);
}
field.get_type().accept(field_type_visitor);
_fragment["name"] = field.name;
- _fragment["field-class"] = field_type_visitor.transfer_fragment();
+ _fragment["field-class"] = field_type_visitor.move_fragment();
}
virtual void visit(const lst::integer_type& type) override final
::ctf2::field_visitor element_visitor;
type.element_type->accept(element_visitor);
- _fragment["element-field-class"] = element_visitor.transfer_fragment();
+ _fragment["element-field-class"] = element_visitor.move_fragment();
if (type.alignment != 0) {
_fragment["minimum-alignment"] = type.alignment;
::ctf2::field_visitor element_visitor;
type.element_type->accept(element_visitor);
- _fragment["element-field-class"] = element_visitor.transfer_fragment();
+ _fragment["element-field-class"] = element_visitor.move_fragment();
if (type.alignment != 0) {
_fragment["minimum-alignment"] = type.alignment;
json::json member_class;
field->accept(member_visitor);
- member_classes_value.emplace_back(member_visitor.transfer_fragment());
+ member_classes_value.emplace_back(member_visitor.move_fragment());
}
_fragment["member-classes"] = std::move(member_classes_value);
/* TODO missing selector-field-range. */
member_class["selector-field-ranges"] = {{option.first.range.begin, option.first.range.end}};
option.second->accept(option_visitor);
- member_class["field-class"] = option_visitor.transfer_fragment();
+ member_class["field-class"] = option_visitor.move_fragment();
options_value.emplace_back(std::move(member_class));
}
::ctf2::trace_environment_visitor environment_visitor;
trace_class.accept(environment_visitor);
- trace_class_fragment["environment"] = environment_visitor.transfer_fragment();
+ trace_class_fragment["environment"] = environment_visitor.move_fragment();
const auto packet_header = trace_class.get_packet_header();
if (packet_header) {
::ctf2::field_visitor field_visitor;
packet_header->accept(field_visitor);
- trace_class_fragment["packet-header-field-class"] = field_visitor.transfer_fragment();
+ trace_class_fragment["packet-header-field-class"] = field_visitor.move_fragment();
}
append_metadata_fragment(trace_class_fragment);
::ctf2::field_visitor visitor;
packet_context->accept(visitor);
- stream_class_fragment["packet-context-field-class"] = visitor.transfer_fragment();
+ stream_class_fragment["packet-context-field-class"] = visitor.move_fragment();
}
const auto event_header = stream_class.get_event_header();
event_header->accept(visitor);
stream_class_fragment["event-record-header-field-class"] =
- visitor.transfer_fragment();
+ visitor.move_fragment();
}
const auto event_context = stream_class.get_event_context();
event_context->accept(visitor);
stream_class_fragment["event-record-common-context-field-class"] =
- visitor.transfer_fragment();
+ visitor.move_fragment();
}
append_metadata_fragment(stream_class_fragment);
::ctf2::field_visitor visitor;
event_class.payload->accept(visitor);
- event_class_fragment["payload-field-class"] = visitor.transfer_fragment();
+ event_class_fragment["payload-field-class"] = visitor.move_fragment();
}
append_metadata_fragment(event_class_fragment);
}
/* Only call once. */
- std::string transfer_description()
+ std::string move_description()
{
return std::move(_description);
}
}
/* Only call once. */
- std::string transfer_description()
+ std::string move_description()
{
_environment += "};\n\n";
return std::move(_environment);
fmt::arg("uuid", lttng::utils::uuid_to_str(trace_class.uuid)),
fmt::arg("byte_order",
trace_class.abi.byte_order == lst::byte_order::BIG_ENDIAN_ ? "be" : "le"),
- fmt::arg("packet_header_layout", packet_header_visitor.transfer_description()));
+ fmt::arg("packet_header_layout", packet_header_visitor.move_description()));
/* Declare trace scope and type aliases. */
append_metadata_fragment(trace_class_tsdl);
tsdl_trace_environment_visitor environment_visitor;
trace_class.accept(environment_visitor);
- append_metadata_fragment(environment_visitor.transfer_description());
+ append_metadata_fragment(environment_visitor.move_description());
}
void tsdl::trace_class_visitor::visit(const lttng::sessiond::trace::clock_class& clock_class)
event_header->accept(variant_sanitizer);
event_header->accept(event_header_visitor);
stream_class_str += fmt::format(" event.header := {};\n",
- event_header_visitor.transfer_description());
+ event_header_visitor.move_description());
}
const auto *packet_context = stream_class.get_packet_context();
packet_context->accept(variant_sanitizer);
packet_context->accept(packet_context_visitor);
stream_class_str += fmt::format(" packet.context := {};\n",
- packet_context_visitor.transfer_description());
+ packet_context_visitor.move_description());
}
const auto *event_context = stream_class.get_event_context();
event_context->accept(variant_sanitizer);
event_context->accept(event_context_visitor);
stream_class_str += fmt::format(" event.context := {};\n",
- event_context_visitor.transfer_description());
+ event_context_visitor.move_description());
}
stream_class_str += "};\n\n";
event_class.payload->accept(payload_visitor);
event_class_str += fmt::format(
- " fields := {};\n}};\n\n", payload_visitor.transfer_description());
+ " fields := {};\n}};\n\n", payload_visitor.move_description());
append_metadata_fragment(event_class_str);
}