File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,15 @@ void SeriesIndex::setAggr(const std::string &aggr)
8585 aggregator = Refl::get_enum<dataframe::aggregator_type>(aggr);
8686}
8787
88+ std::string SeriesIndex::toJSON () const
89+ {
90+ std::string res;
91+ Conv::JSONObj obj{res};
92+ obj (" name" , name);
93+ if (aggregator) obj (" aggregator" , Conv::toString (*aggregator));
94+ return res;
95+ }
96+
8897DataCube::iterator_t DataCube::begin () const
8998{
9099 iterator_t res{this ,
Original file line number Diff line number Diff line change @@ -69,11 +69,7 @@ class SeriesIndex
6969
7070 [[nodiscard]] bool isDimension () const { return !aggregator; }
7171
72- [[nodiscard]] consteval static auto members ()
73- {
74- return std::tuple{&SeriesIndex::name,
75- &SeriesIndex::aggregator};
76- }
72+ [[nodiscard]] std::string toJSON () const ;
7773};
7874
7975using SeriesList = Type::UniqueList<SeriesIndex>;
You can’t perform that action at this time.
0 commit comments