36#include "D4FilterClause.h"
46 for (D4FilterClauseList::citer i = src.cbegin(), e = src.cend(); i != e; ++i) {
47 D4FilterClause *fc = *i;
48 d_clauses.push_back(
new D4FilterClause(*fc));
52D4FilterClauseList::~D4FilterClauseList() {
53 for (D4FilterClauseList::iter i = d_clauses.begin(), e = d_clauses.end(); i != e; ++i) {
70 for (D4FilterClauseList::iter i = d_clauses.begin(), e = d_clauses.end(); i != e; ++i) {
71 if ((*i)->value(dmr) ==
false)
89 for (D4FilterClauseList::iter i = d_clauses.begin(), e = d_clauses.end(); i != e; ++i) {
90 if ((*i)->value() ==
false)
108 case D4RValue::basetype:
111 case D4RValue::constant:
112 d_arg1 =
new D4RValue(*(rhs.d_arg1));
115 throw Error(malformed_expr,
"found a filter clause with a function call.");
119 case D4RValue::basetype:
122 case D4RValue::constant:
123 d_arg2 =
new D4RValue(*(rhs.d_arg2));
126 throw Error(malformed_expr,
"found a filter clause with a function call.");
141 throw InternalErr(__FILE__, __LINE__,
"While evaluating a constraint filter clause: Found a null operator");
150 return cmp(d_op, d_arg1->value(dmr), d_arg2->value(dmr));
155 "While evaluating a constraint filter clause: Filter operator not implemented");
158 throw InternalErr(__FILE__, __LINE__,
"While evaluating a constraint filter clause: Unrecognized operator");
172 throw InternalErr(__FILE__, __LINE__,
"While evaluating a constraint filter clause: Found a null operator");
181 return cmp(d_op, d_arg1->value(), d_arg2->value());
186 "While evaluating a constraint filter clause: Filter operator not implemented");
189 throw InternalErr(__FILE__, __LINE__,
"While evaluating a constraint filter clause: Unrecognized operator");
The basic data type for the DODS DAP types.
virtual bool d4_ops(BaseType *b, int op)
Evaluator a relop for DAP4.
List of DAP4 Filter Clauses.
bool value()
Evaluate the list of clauses.
bool value()
Get the value of this relational expression. This version of value() will not work for clauses where ...
value_kind get_kind() const
What kind of thing holds the value Values in DAP4 constraints are either constants,...
A class for error processing.
A class for software fault reporting.
top level DAP object to house generic methods