MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / run_all_combinations

Method run_all_combinations

test/src/test-cppapi-aggregates.cc:186–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185template <class T>
186void CppAggregatesFx<T>::run_all_combinations(std::function<void()> fn) {
187 for (bool use_dim : use_dim_values_) {
188 use_dim_ = use_dim;
189 for (std::string dim_name : dim_name_values_) {
190 dim_name_ = dim_name;
191 for (bool set_ranges : {true, false}) {
192 set_ranges_ = set_ranges;
193 for (bool request_data : {true, false}) {
194 request_data_ = request_data;
195 for (bool set_qc : set_qc_values_) {
196 set_qc_ = set_qc;
197 for (tiledb_layout_t layout : layout_values_) {
198 // Filter invalid combination. The legacy reader does not support
199 // aggregates, and we cannot automatically switch to unordered
200 // reads if we are requesting both the aggregates and the data.
201 if (request_data && layout != TILEDB_UNORDERED) {
202 continue;
203 }
204 layout_ = layout;
205 fn();
206 }
207 }
208 }
209 }
210 }
211 }
212}
213
214template <class T>
215void CppAggregatesFx<T>::create_dense_array(bool var) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected