blob: fc2ec68161387ecf681ad870c60fd1c66e81eac7 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
// fidl_experiment = output_index_json
#include <fidl/test.protocollayoutssamelibrary/cpp/natural_types.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
::test_protocollayoutssamelibrary::TablePayload::Storage_ test_protocollayoutssamelibrary::TablePayload::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_protocollayoutssamelibrary::ComposedProtocolOneWayAnonComposedRequest::Storage_ test_protocollayoutssamelibrary::ComposedProtocolOneWayAnonComposedRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedResponse::Storage_ test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedResponse::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedWithErrorRequest::Storage_ test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedWithErrorRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_protocollayoutssamelibrary::MainProtocolOneWayAnonRequest::Storage_ test_protocollayoutssamelibrary::MainProtocolOneWayAnonRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_protocollayoutssamelibrary::MainProtocolTwoWayAnonResponse::Storage_ test_protocollayoutssamelibrary::MainProtocolTwoWayAnonResponse::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
::test_protocollayoutssamelibrary::MainProtocolTwoWayAnonWithErrorRequest::Storage_ test_protocollayoutssamelibrary::MainProtocolTwoWayAnonWithErrorRequest::CloneStorage_() const {
return Storage_{
::fidl::internal::NaturalClone(storage_.a)};
}
std::shared_ptr<::test_protocollayoutssamelibrary::UnionPayload::Storage_> test_protocollayoutssamelibrary::UnionPayload::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedRequest::Storage_> test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedRequest::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedWithErrorResponse::Storage_> test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedWithErrorResponse::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedWithErrorResult::Storage_> test_protocollayoutssamelibrary::ComposedProtocolTwoWayAnonComposedWithErrorResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::ComposedProtocolOnAnonComposedRequest::Storage_> test_protocollayoutssamelibrary::ComposedProtocolOnAnonComposedRequest::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::ComposedProtocolTwoWayNamedComposedWithErrorResult::Storage_> test_protocollayoutssamelibrary::ComposedProtocolTwoWayNamedComposedWithErrorResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::MainProtocolTwoWayLocalWithErrorResult::Storage_> test_protocollayoutssamelibrary::MainProtocolTwoWayLocalWithErrorResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::MainProtocolTwoWayAnonRequest::Storage_> test_protocollayoutssamelibrary::MainProtocolTwoWayAnonRequest::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::MainProtocolTwoWayAnonWithErrorResponse::Storage_> test_protocollayoutssamelibrary::MainProtocolTwoWayAnonWithErrorResponse::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::MainProtocolTwoWayAnonWithErrorResult::Storage_> test_protocollayoutssamelibrary::MainProtocolTwoWayAnonWithErrorResult::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
case 2:
return std::make_shared<Storage_>(
std::in_place_index<2>,
::fidl::internal::NaturalClone(std::get<2>(storage)));
default:
return std::make_shared<Storage_>();
}
}
std::shared_ptr<::test_protocollayoutssamelibrary::MainProtocolOnAnonRequest::Storage_> test_protocollayoutssamelibrary::MainProtocolOnAnonRequest::CloneStorage_() const {
const Storage_& storage = *storage_;
switch (storage_->index()) {
case 1:
return std::make_shared<Storage_>(
std::in_place_index<1>,
::fidl::internal::NaturalClone(std::get<1>(storage)));
default:
return std::make_shared<Storage_>();
}
}
#pragma clang diagnostic pop