1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 4 --hash 53178f8de9b8861df391cf0593f6f3e08adad33d -t --stability vintf --min_sdk_version 30 -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common_interface/6/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/staging/android/hardware/neuralnetworks/Subgraph.cpp.d -h out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/staging -Nhardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4 hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/Subgraph.aidl
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include <cstdint>
12 #include <memory>
13 #include <optional>
14 #include <string>
15 #include <vector>
16 #include <android/binder_interface_utils.h>
17 #include <android/binder_parcelable_utils.h>
18 #include <android/binder_to_string.h>
19 #include <aidl/android/hardware/neuralnetworks/Operand.h>
20 #include <aidl/android/hardware/neuralnetworks/Operation.h>
21 #ifdef BINDER_STABILITY_SUPPORT
22 #include <android/binder_stability.h>
23 #endif  // BINDER_STABILITY_SUPPORT
24 
25 namespace aidl::android::hardware::neuralnetworks {
26 class Operand;
27 class Operation;
28 }  // namespace aidl::android::hardware::neuralnetworks
29 namespace aidl {
30 namespace android {
31 namespace hardware {
32 namespace neuralnetworks {
33 class Subgraph {
34 public:
35   typedef std::false_type fixed_size;
36   static const char* descriptor;
37 
38   std::vector<::aidl::android::hardware::neuralnetworks::Operand> operands;
39   std::vector<::aidl::android::hardware::neuralnetworks::Operation> operations;
40   std::vector<int32_t> inputIndexes;
41   std::vector<int32_t> outputIndexes;
42 
43   binder_status_t readFromParcel(const AParcel* parcel);
44   binder_status_t writeToParcel(AParcel* parcel) const;
45 
46   inline bool operator==(const Subgraph& _rhs) const {
47     return std::tie(operands, operations, inputIndexes, outputIndexes) == std::tie(_rhs.operands, _rhs.operations, _rhs.inputIndexes, _rhs.outputIndexes);
48   }
49   inline bool operator<(const Subgraph& _rhs) const {
50     return std::tie(operands, operations, inputIndexes, outputIndexes) < std::tie(_rhs.operands, _rhs.operations, _rhs.inputIndexes, _rhs.outputIndexes);
51   }
52   inline bool operator!=(const Subgraph& _rhs) const {
53     return !(*this == _rhs);
54   }
55   inline bool operator>(const Subgraph& _rhs) const {
56     return _rhs < *this;
57   }
58   inline bool operator>=(const Subgraph& _rhs) const {
59     return !(*this < _rhs);
60   }
61   inline bool operator<=(const Subgraph& _rhs) const {
62     return !(_rhs < *this);
63   }
64 
65   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()66   inline std::string toString() const {
67     std::ostringstream _aidl_os;
68     _aidl_os << "Subgraph{";
69     _aidl_os << "operands: " << ::android::internal::ToString(operands);
70     _aidl_os << ", operations: " << ::android::internal::ToString(operations);
71     _aidl_os << ", inputIndexes: " << ::android::internal::ToString(inputIndexes);
72     _aidl_os << ", outputIndexes: " << ::android::internal::ToString(outputIndexes);
73     _aidl_os << "}";
74     return _aidl_os.str();
75   }
76 };
77 }  // namespace neuralnetworks
78 }  // namespace hardware
79 }  // namespace android
80 }  // namespace aidl
81