@@ -59,32 +59,23 @@ struct TestingCClassObj : public Object {
59
59
60
60
explicit TestingCClassObj (int8_t i8 , int16_t i16 , int32_t i32 , int64_t i64 , float f32 , double f64 , void *raw_ptr,
61
61
DLDataType dtype, DLDevice device, Any any, Func func, UList ulist, UDict udict, Str str_,
62
- Str str_readonly,
63
- //
64
- List<Any> list_any, List<List<int >> list_list_int, Dict<Any, Any> dict_any_any,
65
- Dict<Str, Any> dict_str_any, Dict<Any, Str> dict_any_str,
66
- Dict<Str, List<int >> dict_str_list_int,
67
- //
68
- Optional<int64_t > opt_i64, Optional<double > opt_f64, Optional<void *> opt_raw_ptr,
69
- Optional<DLDataType> opt_dtype, Optional<DLDevice> opt_device, Optional<Func> opt_func,
70
- Optional<UList> opt_ulist, Optional<UDict> opt_udict, Optional<Str> opt_str,
71
- //
72
- Optional<List<Any>> opt_list_any, Optional<List<List<int >>> opt_list_list_int,
73
- Optional<Dict<Any, Any>> opt_dict_any_any, Optional<Dict<Str, Any>> opt_dict_str_any,
74
- Optional<Dict<Any, Str>> opt_dict_any_str,
62
+ Str str_readonly, List<Any> list_any, List<List<int >> list_list_int,
63
+ Dict<Any, Any> dict_any_any, Dict<Str, Any> dict_str_any, Dict<Any, Str> dict_any_str,
64
+ Dict<Str, List<int >> dict_str_list_int, Optional<int64_t > opt_i64, Optional<double > opt_f64,
65
+ Optional<void *> opt_raw_ptr, Optional<DLDataType> opt_dtype, Optional<DLDevice> opt_device,
66
+ Optional<Func> opt_func, Optional<UList> opt_ulist, Optional<UDict> opt_udict,
67
+ Optional<Str> opt_str, Optional<List<Any>> opt_list_any,
68
+ Optional<List<List<int >>> opt_list_list_int, Optional<Dict<Any, Any>> opt_dict_any_any,
69
+ Optional<Dict<Str, Any>> opt_dict_str_any, Optional<Dict<Any, Str>> opt_dict_any_str,
75
70
Optional<Dict<Str, List<int >>> opt_dict_str_list_int)
76
71
: i8(i8 ), i16(i16 ), i32(i32 ), i64(i64 ), f32(f32 ), f64(f64 ), raw_ptr(raw_ptr), dtype(dtype), device(device),
77
- any(any), func(func), ulist(ulist), udict(udict), str_(str_), str_readonly(str_readonly),
78
- //
79
- list_any(list_any), list_list_int(list_list_int), dict_any_any(dict_any_any), dict_str_any(dict_str_any),
80
- dict_any_str(dict_any_str), dict_str_list_int(dict_str_list_int),
81
- //
82
- opt_i64(opt_i64), opt_f64(opt_f64), opt_raw_ptr(opt_raw_ptr), opt_dtype(opt_dtype), opt_device(opt_device),
83
- opt_func(opt_func), opt_ulist(opt_ulist), opt_udict(opt_udict), opt_str(opt_str),
84
- //
85
- opt_list_any(opt_list_any), opt_list_list_int(opt_list_list_int), opt_dict_any_any(opt_dict_any_any),
86
- opt_dict_str_any(opt_dict_str_any), opt_dict_any_str(opt_dict_any_str),
87
- opt_dict_str_list_int(opt_dict_str_list_int) {}
72
+ any(any), func(func), ulist(ulist), udict(udict), str_(str_), str_readonly(str_readonly), list_any(list_any),
73
+ list_list_int(list_list_int), dict_any_any(dict_any_any), dict_str_any(dict_str_any),
74
+ dict_any_str(dict_any_str), dict_str_list_int(dict_str_list_int), opt_i64(opt_i64), opt_f64(opt_f64),
75
+ opt_raw_ptr(opt_raw_ptr), opt_dtype(opt_dtype), opt_device(opt_device), opt_func(opt_func),
76
+ opt_ulist(opt_ulist), opt_udict(opt_udict), opt_str(opt_str), opt_list_any(opt_list_any),
77
+ opt_list_list_int(opt_list_list_int), opt_dict_any_any(opt_dict_any_any), opt_dict_str_any(opt_dict_str_any),
78
+ opt_dict_any_str(opt_dict_any_str), opt_dict_str_list_int(opt_dict_str_list_int) {}
88
79
89
80
int64_t i64_plus_one () const { return i64 + 1 ; }
90
81
@@ -108,14 +99,12 @@ struct TestingCClass : public ObjectRef {
108
99
.Field(" udict" , &TestingCClassObj::udict)
109
100
.Field(" str_" , &TestingCClassObj::str_)
110
101
.FieldReadOnly(" str_readonly" , &TestingCClassObj::str_readonly)
111
- //
112
102
.Field(" list_any" , &TestingCClassObj::list_any)
113
103
.Field(" list_list_int" , &TestingCClassObj::list_list_int)
114
104
.Field(" dict_any_any" , &TestingCClassObj::dict_any_any)
115
105
.Field(" dict_str_any" , &TestingCClassObj::dict_str_any)
116
106
.Field(" dict_any_str" , &TestingCClassObj::dict_any_str)
117
107
.Field(" dict_str_list_int" , &TestingCClassObj::dict_str_list_int)
118
- //
119
108
.Field(" opt_i64" , &TestingCClassObj::opt_i64)
120
109
.Field(" opt_f64" , &TestingCClassObj::opt_f64)
121
110
.Field(" opt_raw_ptr" , &TestingCClassObj::opt_raw_ptr)
@@ -125,25 +114,19 @@ struct TestingCClass : public ObjectRef {
125
114
.Field(" opt_ulist" , &TestingCClassObj::opt_ulist)
126
115
.Field(" opt_udict" , &TestingCClassObj::opt_udict)
127
116
.Field(" opt_str" , &TestingCClassObj::opt_str)
128
- //
129
117
.Field(" opt_list_any" , &TestingCClassObj::opt_list_any)
130
118
.Field(" opt_list_list_int" , &TestingCClassObj::opt_list_list_int)
131
119
.Field(" opt_dict_any_any" , &TestingCClassObj::opt_dict_any_any)
132
120
.Field(" opt_dict_str_any" , &TestingCClassObj::opt_dict_str_any)
133
121
.Field(" opt_dict_any_str" , &TestingCClassObj::opt_dict_any_str)
134
122
.Field(" opt_dict_str_list_int" , &TestingCClassObj::opt_dict_str_list_int)
135
- //
136
123
.MemFn(" i64_plus_one" , &TestingCClassObj::i64_plus_one)
137
124
.StaticFn(" __init__" ,
138
125
InitOf<TestingCClassObj, int8_t , int16_t , int32_t , int64_t , float , double , void *, DLDataType, DLDevice,
139
- Any, Func, UList, UDict, Str, Str,
140
- //
141
- List<Any>, List<List<int >>, Dict<Any, Any>, Dict<Str, Any>, Dict<Any, Str>, Dict<Str, List<int >>,
142
- //
143
- Optional<int64_t >, Optional<double >, Optional<void *>, Optional<DLDataType>, Optional<DLDevice>,
144
- Optional<Func>, Optional<UList>, Optional<UDict>, Optional<Str>,
145
- //
146
- Optional<List<Any>>, Optional<List<List<int >>>, Optional<Dict<Any, Any>>,
126
+ Any, Func, UList, UDict, Str, Str, List<Any>, List<List<int >>, Dict<Any, Any>, Dict<Str, Any>,
127
+ Dict<Any, Str>, Dict<Str, List<int >>, Optional<int64_t >, Optional<double >, Optional<void *>,
128
+ Optional<DLDataType>, Optional<DLDevice>, Optional<Func>, Optional<UList>, Optional<UDict>,
129
+ Optional<Str>, Optional<List<Any>>, Optional<List<List<int >>>, Optional<Dict<Any, Any>>,
147
130
Optional<Dict<Str, Any>>, Optional<Dict<Any, Str>>, Optional<Dict<Str, List<int >>>>);
148
131
};
149
132
0 commit comments