Line data Source code
1 : /**
2 : * Copyright Soramitsu Co., Ltd. All Rights Reserved.
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #include "interfaces/query_responses/query_response_variant.hpp"
7 :
8 : #include "interfaces/query_responses/account_asset_response.hpp"
9 : #include "interfaces/query_responses/account_detail_response.hpp"
10 : #include "interfaces/query_responses/account_response.hpp"
11 : #include "interfaces/query_responses/asset_response.hpp"
12 : #include "interfaces/query_responses/block_response.hpp"
13 : #include "interfaces/query_responses/error_query_response.hpp"
14 : #include "interfaces/query_responses/role_permissions.hpp"
15 : #include "interfaces/query_responses/roles_response.hpp"
16 : #include "interfaces/query_responses/signatories_response.hpp"
17 : #include "interfaces/query_responses/transactions_page_response.hpp"
18 : #include "interfaces/query_responses/transactions_response.hpp"
19 : #include "utils/visitor_apply_for_all.hpp"
20 :
21 : using Variant =
22 : shared_model::interface::QueryResponse::QueryResponseVariantType;
23 : template Variant::~variant();
24 : template Variant::variant(Variant &&);
25 : template bool Variant::operator==(const Variant &) const;
26 : template void Variant::destroy_content() noexcept;
27 : template int Variant::which() const noexcept;
28 : template void Variant::indicate_which(int) noexcept;
29 : template bool Variant::using_backup() const noexcept;
30 : template Variant::convert_copy_into::convert_copy_into(void *) noexcept;
31 :
32 : namespace shared_model {
33 : namespace interface {
34 :
35 : std::string QueryResponse::toString() const {
36 0 : return boost::apply_visitor(detail::ToStringVisitor(), get());
37 : }
38 :
39 : bool QueryResponse::operator==(const ModelType &rhs) const {
40 1 : return queryHash() == rhs.queryHash() and get() == rhs.get();
41 : }
42 :
43 : } // namespace interface
44 : } // namespace shared_model
|