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

Function print_elem

examples/cpp_api/query_condition_sparse.cc:55–62  ·  view source on GitHub ↗

* @brief Function to print the values of all the attributes for one * index of this array. * * @param a Attribute a's value. * @param b Attribute b's value. * @param c Attribute c's value. * @param d Attribute d's value. */

Source from the content-addressed store, hash-verified

53 * @param d Attribute d's value.
54 */
55void print_elem(std::optional<int> a, std::string b, int32_t c, float d) {
56 if (a == std::nullopt) {
57 std::cout << "{null, " << b << ", " << c << ", " << d << "}\n";
58 } else {
59 std::cout << "{" << a.value() << ", " << b << ", " << c << ", " << d
60 << "}\n";
61 }
62}
63
64/**
65 * @brief Function to create the TileDB array used in this example.

Callers 1

read_array_with_qcFunction · 0.70

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected