53 #ifndef _constructor_h 54 #include "Constructor.h" 57 #ifndef constraint_evaluator_h 58 #include "ConstraintEvaluator.h" 129 void m_duplicate(
const Grid &s);
133 Grid(
const string &n);
134 Grid(
const string &n,
const string &d);
138 typedef std::vector<BaseType *>::const_iterator Map_citer ;
139 typedef std::vector<BaseType *>::iterator Map_iter ;
140 typedef std::vector<BaseType *>::reverse_iterator Map_riter ;
162 virtual int components(
bool constrained =
false);
168 virtual void print_decl(ostream &out,
string space =
" ",
169 bool print_semi =
true,
170 bool constraint_info =
false,
171 bool constrained =
false);
173 virtual void print_xml(ostream &out,
string space =
" ",
174 bool constrained =
false);
177 virtual void print_val(ostream &out,
string space =
"",
178 bool print_decl_p =
true);
180 virtual void print_decl(FILE *out,
string space =
" ",
181 bool print_semi =
true,
182 bool constraint_info =
false,
183 bool constrained =
false);
184 virtual void print_xml(FILE *out,
string space =
" ",
185 bool constrained =
false);
186 virtual void print_val(FILE *out,
string space =
"",
187 bool print_decl_p =
true);
199 virtual void dump(ostream &strm)
const ;
virtual Array * prepend_map(Array *p_new_map, bool add_copy)
virtual void add_var_nocopy(BaseType *bt, Part part)
Part
Names the parts of multi-section constructor data types.
Contains the attributes for a dataset.
virtual void print_xml(ostream &out, string space=" ", bool constrained=false)
virtual void dump(ostream &strm) const
dumps information about this object
top level DAP object to house generic methods
virtual int components(bool constrained=false)
Returns the number of components in the Grid object.
Map_riter map_rbegin()
Returns an iterator referencing the first Map vector.
virtual void set_array(Array *p_new_arr)
virtual bool projection_yields_grid()
Map_iter map_begin()
Returns an iterator referencing the first Map vector.
virtual BaseType * ptr_duplicate()
Map_iter get_map_iter(int i)
virtual void add_var(BaseType *bt, Part part)
virtual void transfer_attributes(AttrTable *at_container)
virtual void clear_constraint()
Holds the Grid data type.
virtual void print_val(ostream &out, string space="", bool print_decl_p=true)
Prints the value of the variable.
virtual Array * add_map(Array *p_new_map, bool add_copy)
Array * get_array()
Returns the Grid Array. This method returns the array using an Array*, so no cast is required...
virtual bool is_dap2_only_type()
virtual void print_decl(ostream &out, string space=" ", bool print_semi=true, bool constraint_info=false, bool constrained=false)
Print an ASCII representation of the variable structure.
The basic data type for the DODS DAP types.
virtual bool check_semantics(string &msg, bool all=false)
Return true if this Grid is well formed.
virtual void transform_to_dap4(D4Group *root, Constructor *container)
DAP2 to DAP4 transform.
BaseType * array_var()
Returns the Grid Array.
A multidimensional array of identical data types.
virtual void print_xml_writer(XMLWriter &xml, bool constrained=false)
Grid(const string &n)
The Grid constructor.