There was an error while loading. Please reload this page.
1 parent 2d9a391 commit cbfedceCopy full SHA for cbfedce
1 file changed
Framework/Core/include/Framework/AnalysisTask.h
@@ -71,12 +71,20 @@ struct WritingCursor<soa::Table<PC...>> {
71
void operator()(T... args)
72
{
73
static_assert(sizeof...(PC) == sizeof...(T), "Argument number mismatch");
74
+ ++mCount;
75
cursor(0, extract(args)...);
76
}
77
78
+ /// Last index inserted in the table
79
+ int64_t lastIndex()
80
+ {
81
+ return mCount;
82
+ }
83
+
84
bool resetCursor(TableBuilder& builder)
85
86
cursor = std::move(FFL(builder.cursor<persistent_table_t>()));
87
+ mCount = -1;
88
return true;
89
90
@@ -93,6 +101,8 @@ struct WritingCursor<soa::Table<PC...>> {
93
101
return arg;
94
102
95
103
104
105
+ int64_t mCount = -1;
96
106
};
97
107
98
108
/// This helper class allow you to declare things which will be crated by a
0 commit comments