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

Class QueryCondition

tiledb/sm/cpp_api/query_condition.h:44–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42namespace tiledb {
43
44class QueryCondition {
45 public:
46 /* ********************************* */
47 /* CONSTRUCTORS & DESTRUCTORS */
48 /* ********************************* */
49
50 /**
51 * Creates a TileDB query condition object.
52 * @param ctx TileDB context.
53 */
54 QueryCondition(const Context& ctx)
55 : ctx_(ctx) {
56 tiledb_query_condition_t* qc;
57 ctx.handle_error(tiledb_query_condition_alloc(ctx.ptr().get(), &qc));
58 query_condition_ = std::shared_ptr<tiledb_query_condition_t>(qc, deleter_);
59 }
60
61 /** Copy constructor. */
62 QueryCondition(const QueryCondition&) = default;
63
64 /** Move constructor. */
65 QueryCondition(QueryCondition&&) = default;
66
67 /** Destructor. */
68 ~QueryCondition() = default;
69
70 /**
71 * Constructs an instance directly from a C-API query condition object.
72 *
73 * @param ctx The TileDB context.
74 * @param qc The C-API query condition object.
75 */
76 QueryCondition(const Context& ctx, tiledb_query_condition_t* const qc)
77 : ctx_(ctx)
78 , query_condition_(
79 std::shared_ptr<tiledb_query_condition_t>(qc, deleter_)) {
80 }
81
82 /* ********************************* */
83 /* CONSTRUCTORS & DESTRUCTORS */
84 /* ********************************* */
85
86 /** Copy-assignment operator. */
87 QueryCondition& operator=(const QueryCondition&) = default;
88
89 /** Move-assignment operator. */
90 QueryCondition& operator=(QueryCondition&&) = default;
91
92 /* ********************************* */
93 /* API */
94 /* ********************************* */
95
96 /**
97 * Initialize a TileDB query condition object.
98 *
99 * **Example:**
100 *
101 * @code{.cpp}

Callers 3

createMethod · 0.70
combineMethod · 0.70
negateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected