From bfeda55904829952fb80e255270d160e833b1c58 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Sat, 9 Sep 2023 13:20:20 +0200 Subject: [PATCH] WIP: check format compatibility --- src/lib/ranges/yrange.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/lib/ranges/yrange.cc b/src/lib/ranges/yrange.cc index b050def..45a45dd 100644 --- a/src/lib/ranges/yrange.cc +++ b/src/lib/ranges/yrange.cc @@ -370,8 +370,19 @@ namespace CNORXZ Vector YIndex::deepFormat() const { - CXZ_ERROR("implement!!!"); - return Vector {1}; + Vector> dfv(mIs.size()); + SizeT osize = 0; + for(SizeT j = 0; j != dfv.size(); ++j){ + dfv[j] = mIs[j]->deepFormat(); + osize += dfv[j].size(); + } + Vector o(osize); + SizeT off = 0; + for(SizeT j = 0; j != dfv.size(); ++j){ + std::copy(dfv[j].begin(), dfv[j].end(), o.begin()+off); + off += dfv[j].size(); + } + return o; } const YFormat& YIndex::format() const