* Return a query condition representing a negation of this query condition. * Currently this is performed by applying De Morgan's theorem recursively * to the query condition's internal representation. * * **Example:** * * @code{.cpp} * int qc1_cmp_value = 10; * tiledb::QueryCondition qc1; * qc1.init("a1", &qc1_cmp_value, sizeof(int), TILEDB_LT); * tiledb::QueryCondit
| 226 | * @endcode |
| 227 | */ |
| 228 | QueryCondition negate() const { |
| 229 | auto& ctx = ctx_.get(); |
| 230 | tiledb_query_condition_t* negated_qc; |
| 231 | ctx.handle_error(tiledb_query_condition_negate( |
| 232 | ctx.ptr().get(), query_condition_.get(), &negated_qc)); |
| 233 | |
| 234 | return QueryCondition(ctx_, negated_qc); |
| 235 | } |
| 236 | |
| 237 | /* ********************************* */ |
| 238 | /* STATIC FUNCTIONS */ |
no test coverage detected