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

Method range

tiledb/sm/cpp_api/ndrectangle.h:237–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 */
236 template <class T>
237 std::array<T, 2> range(const std::string& dim_name) {
238 auto& ctx = ctx_.get();
239 tiledb_range_t range;
240 ctx.handle_error(tiledb_ndrectangle_get_range_from_name(
241 ctx.ptr().get(), ndrect_.get(), dim_name.c_str(), &range));
242
243 return {*(const T*)range.min, *(const T*)range.max};
244 }
245
246 /**
247 * Retrieves a range for a given dimension index. The template datatype must

Callers

nothing calls this directly

Calls 6

handle_errorMethod · 0.80
c_strMethod · 0.80
getMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected