libdap++ Updated for version 3.8.2
|
#include <GSEClause.h>
Public Member Functions | |
bool | OK () const |
virtual | ~GSEClause () |
Constructors | |
GSEClause (Grid *grid, const string &map, const double value, const relop op) | |
Create an instance using discrete parameters. | |
GSEClause (Grid *grid, const string &map, const double value1, const relop op1, const double value2, const relop op2) | |
Create an instance using discrete parameters. | |
Accessors | |
Array * | get_map () const |
Get a pointer to the map variable constrained by this clause. | |
string | get_map_name () const |
Get the name of the map variable constrained by this clause. | |
int | get_start () const |
Get the starting index of the clause's map variable as constrained by this clause. | |
int | get_stop () const |
Get the stopping index of the clause's map variable as constrained by this clause. | |
string | get_map_min_value () const |
Get the minimum map vector value. | |
string | get_map_max_value () const |
Get the maximum map vector value. | |
Mutators | |
void | set_map (Array *map) |
Set the pointer to the map vector contrained by this clause. | |
void | set_start (int start) |
Set the starting index. | |
void | set_stop (int stop) |
Set the stopping index. |
Holds the results of parsing one of the Grid Selection Expression clauses. The Grid selection function takes a set of clauses as arguments and must create one instance of this class for each of those clauses. The GridSelectionExpr class holds N instances of this class.
Definition at line 74 of file GSEClause.h.
libdap::GSEClause::GSEClause | ( | Grid * | grid, |
const string & | map, | ||
const double | value, | ||
const relop | op | ||
) |
Definition at line 209 of file GSEClause.cc.
References DBG, libdap::Array::dim_begin(), libdap::Array::dimension_start(), libdap::Array::dimension_stop(), libdap::BaseType::name(), libdap::BaseType::toString(), and libdap::Grid::var().
libdap::GSEClause::GSEClause | ( | Grid * | grid, |
const string & | map, | ||
const double | value1, | ||
const relop | op1, | ||
const double | value2, | ||
const relop | op2 | ||
) |
Definition at line 232 of file GSEClause.cc.
References DBG, libdap::Array::dim_begin(), libdap::Array::dimension_start(), libdap::Array::dimension_stop(), libdap::BaseType::name(), libdap::BaseType::toString(), and libdap::Grid::var().
virtual libdap::GSEClause::~GSEClause | ( | ) | [inline, virtual] |
Definition at line 109 of file GSEClause.h.
Array * libdap::GSEClause::get_map | ( | ) | const |
Definition at line 270 of file GSEClause.cc.
string libdap::GSEClause::get_map_max_value | ( | ) | const |
Useful in messages back to users.
Definition at line 343 of file GSEClause.cc.
string libdap::GSEClause::get_map_min_value | ( | ) | const |
Useful in messages back to users.
Definition at line 333 of file GSEClause.cc.
string libdap::GSEClause::get_map_name | ( | ) | const |
Definition at line 288 of file GSEClause.cc.
References libdap::BaseType::name().
int libdap::GSEClause::get_start | ( | ) | const |
Definition at line 297 of file GSEClause.cc.
int libdap::GSEClause::get_stop | ( | ) | const |
bool libdap::GSEClause::OK | ( | ) | const |
Class invariant.
Definition at line 257 of file GSEClause.cc.
void libdap::GSEClause::set_map | ( | Array * | map | ) |
Note that this method also sets the name of the map vector.
Definition at line 280 of file GSEClause.cc.
void libdap::GSEClause::set_start | ( | int | start | ) |
Definition at line 305 of file GSEClause.cc.
void libdap::GSEClause::set_stop | ( | int | stop | ) |
Definition at line 323 of file GSEClause.cc.