1 /**
2 * Autogenerated by Thrift for src/module.thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated @nocommit
6 */
7 #include "thrift/compiler/test/fixtures/split/gen-cpp2/module_types.h"
8 #include "thrift/compiler/test/fixtures/split/gen-cpp2/module_types.tcc"
9
10 #include <thrift/lib/cpp2/gen/module_types_cpp.h>
11
12 #include "thrift/compiler/test/fixtures/split/gen-cpp2/module_data.h"
13
14
15 namespace apache {
16 namespace thrift {
17 namespace detail {
18
translateFieldName(folly::StringPiece _fname,int16_t & fid,apache::thrift::protocol::TType & _ftype)19 void TccStructTraits<::cpp2::MyDataItem>::translateFieldName(
20 folly::StringPiece _fname,
21 int16_t& fid,
22 apache::thrift::protocol::TType& _ftype) noexcept {
23 using data = apache::thrift::TStructDataStorage<::cpp2::MyDataItem>;
24 static const st::translate_field_name_table table{
25 data::fields_size,
26 data::fields_names.data(),
27 data::fields_ids.data(),
28 data::fields_types.data()};
29 st::translate_field_name(_fname, fid, _ftype, table);
30 }
31
32 } // namespace detail
33 } // namespace thrift
34 } // namespace apache
35
36 namespace cpp2 {
37
38
MyDataItem(apache::thrift::FragileConstructor)39 MyDataItem::MyDataItem(apache::thrift::FragileConstructor) {}
40
41
__fbthrift_clear()42 void MyDataItem::__fbthrift_clear() {
43 // clear all fields
44 }
45
operator ==(const MyDataItem & rhs) const46 bool MyDataItem::operator==(const MyDataItem& rhs) const {
47 (void)rhs;
48 auto& lhs = *this;
49 (void)lhs;
50 return true;
51 }
52
operator <(const MyDataItem & rhs) const53 bool MyDataItem::operator<(const MyDataItem& rhs) const {
54 (void)rhs;
55 auto& lhs = *this;
56 (void)lhs;
57 return false;
58 }
59
60
swap(MyDataItem & a,MyDataItem & b)61 void swap(MyDataItem& a, MyDataItem& b) {
62 using ::std::swap;
63 (void)a;
64 (void)b;
65 }
66
67 template void MyDataItem::readNoXfer<>(apache::thrift::BinaryProtocolReader*);
68 template uint32_t MyDataItem::write<>(apache::thrift::BinaryProtocolWriter*) const;
69 template uint32_t MyDataItem::serializedSize<>(apache::thrift::BinaryProtocolWriter const*) const;
70 template uint32_t MyDataItem::serializedSizeZC<>(apache::thrift::BinaryProtocolWriter const*) const;
71 template void MyDataItem::readNoXfer<>(apache::thrift::CompactProtocolReader*);
72 template uint32_t MyDataItem::write<>(apache::thrift::CompactProtocolWriter*) const;
73 template uint32_t MyDataItem::serializedSize<>(apache::thrift::CompactProtocolWriter const*) const;
74 template uint32_t MyDataItem::serializedSizeZC<>(apache::thrift::CompactProtocolWriter const*) const;
75
76
77
78 } // cpp2
79
80 namespace cpp2 { namespace {
validateAdapters()81 FOLLY_MAYBE_UNUSED FOLLY_ERASE void validateAdapters() {
82 }
83 }} // cpp2
84