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

Function print_elem

examples/cpp_api/query_condition_dense.cc:59–66  ·  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

57 * @param d Attribute d's value.
58 */
59void print_elem(std::optional<int> a, std::string b, int32_t c, float d) {
60 if (a == std::nullopt) {
61 std::cout << "{null, " << b << ", " << c << ", " << d << "}\n";
62 } else {
63 std::cout << "{" << a.value() << ", " << b << ", " << c << ", " << d
64 << "}\n";
65 }
66}
67
68/**
69 * @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