libdap++  Updated for version 3.8.2
libdap::GSEClause Class Reference

#include <GSEClause.h>

Collaboration diagram for libdap::GSEClause:
Collaboration graph

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. More...
 
 GSEClause (Grid *grid, const string &map, const double value1, const relop op1, const double value2, const relop op2)
 Create an instance using discrete parameters. More...
 
Accessors
Arrayget_map () const
 Get a pointer to the map variable constrained by this clause. More...
 
string get_map_name () const
 Get the name of the map variable constrained by this clause. More...
 
int get_start () const
 Get the starting index of the clause's map variable as constrained by this clause. More...
 
int get_stop () const
 Get the stopping index of the clause's map variable as constrained by this clause. More...
 
string get_map_min_value () const
 Get the minimum map vector value. More...
 
string get_map_max_value () const
 Get the maximum map vector value. More...
 
Mutators
void set_map (Array *map)
 Set the pointer to the map vector contrained by this clause. More...
 
void set_start (int start)
 Set the starting index. More...
 
void set_stop (int stop)
 Set the stopping index. More...
 

Detailed Description

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.

Author
James Gallagher
See also
GridSelectionExpr

Definition at line 74 of file GSEClause.h.

Constructor & Destructor Documentation

◆ GSEClause() [1/2]

libdap::GSEClause::GSEClause ( Grid grid,
const string &  map,
const double  value,
const relop  op 
)

◆ GSEClause() [2/2]

libdap::GSEClause::GSEClause ( Grid grid,
const string &  map,
const double  value1,
const relop  op1,
const double  value2,
const relop  op2 
)

◆ ~GSEClause()

virtual libdap::GSEClause::~GSEClause ( )
inlinevirtual

Definition at line 109 of file GSEClause.h.

References get_map(), get_map_max_value(), get_map_min_value(), get_map_name(), get_start(), get_stop(), OK(), set_map(), set_start(), and set_stop().

Here is the call graph for this function:

Member Function Documentation

◆ get_map()

Array * libdap::GSEClause::get_map ( ) const
Returns
The Array object.

Definition at line 270 of file GSEClause.cc.

Referenced by ~GSEClause().

◆ get_map_max_value()

string libdap::GSEClause::get_map_max_value ( ) const

Useful in messages back to users.

Returns
The maximum map vetor value.

Definition at line 343 of file GSEClause.cc.

Referenced by ~GSEClause().

◆ get_map_min_value()

string libdap::GSEClause::get_map_min_value ( ) const

Useful in messages back to users.

Returns
The minimum map vetor value.

Definition at line 333 of file GSEClause.cc.

Referenced by ~GSEClause().

◆ get_map_name()

string libdap::GSEClause::get_map_name ( ) const
Returns
The Array object's name.

Definition at line 288 of file GSEClause.cc.

References libdap::BaseType::name().

Referenced by ~GSEClause().

Here is the call graph for this function:

◆ get_start()

int libdap::GSEClause::get_start ( ) const
Returns
The start index.

Definition at line 297 of file GSEClause.cc.

Referenced by ~GSEClause().

◆ get_stop()

int libdap::GSEClause::get_stop ( ) const
Returns
The stop index.

Definition at line 314 of file GSEClause.cc.

References DBG.

Referenced by ~GSEClause().

◆ OK()

bool libdap::GSEClause::OK ( ) const

Class invariant.

Returns
True if the object is valid, otherwise False.

Definition at line 257 of file GSEClause.cc.

Referenced by ~GSEClause().

◆ set_map()

void libdap::GSEClause::set_map ( Array map)

Note that this method also sets the name of the map vector.

Returns
void

Definition at line 280 of file GSEClause.cc.

Referenced by ~GSEClause().

◆ set_start()

void libdap::GSEClause::set_start ( int  start)
Returns
void

Definition at line 305 of file GSEClause.cc.

Referenced by ~GSEClause().

◆ set_stop()

void libdap::GSEClause::set_stop ( int  stop)
Returns
void

Definition at line 323 of file GSEClause.cc.

Referenced by ~GSEClause().


The documentation for this class was generated from the following files: