55 #ifndef _constructor_h
59 #ifndef constraint_evaluator_h
125 std::vector<BaseType *> d_map_vars;
132 Grid(
const string &n);
133 Grid(
const string &n,
const string &d);
137 typedef std::vector<BaseType *>::const_iterator
Map_citer ;
138 typedef std::vector<BaseType *>::iterator
Map_iter ;
139 typedef std::vector<BaseType *>::reverse_iterator
Map_riter ;
166 virtual unsigned int width(
bool constrained =
false);
168 virtual unsigned int width(
bool constrained);
170 virtual int components(
bool constrained =
false);
180 virtual unsigned int val2buf(
void *buf,
bool reuse =
false);
181 virtual unsigned int buf2val(
void **val);
184 virtual void print_decl(ostream &out,
string space =
" ",
185 bool print_semi =
true,
186 bool constraint_info =
false,
187 bool constrained =
false);
189 virtual void print_xml(ostream &out,
string space =
" ",
190 bool constrained =
false);
193 virtual void print_val(ostream &out,
string space =
"",
194 bool print_decl_p =
true);
196 virtual void print_decl(FILE *out,
string space =
" ",
197 bool print_semi =
true,
198 bool constraint_info =
false,
199 bool constrained =
false);
200 virtual void print_xml(FILE *out,
string space =
" ",
201 bool constrained =
false);
202 virtual void print_val(FILE *out,
string space =
"",
203 bool print_decl_p =
true);
215 virtual void dump(ostream &strm)
const ;
abstract base class used to unmarshall/deserialize dap data objects
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.
virtual bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true)
Move data to the net.
virtual void dump(ostream &strm) const
dumps information about this object
Contains the attributes for a dataset.
Grid & operator=(const Grid &rhs)
virtual void print_xml(ostream &out, string space=" ", bool constrained=false)
virtual void set_in_selection(bool state)
Set the in_selection property.
virtual void set_send_p(bool state)
stack< BaseType * > btp_stack
std::vector< BaseType * >::const_iterator Map_citer
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 int element_count(bool leaves=false)
Count the members of constructor types.
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 intern_data(ConstraintEvaluator &eval, DDS &dds)
virtual void add_var(BaseType *bt, Part part)
virtual void transfer_attributes(AttrTable *at_container)
virtual void clear_constraint()
virtual void set_read_p(bool state)
Sets the value of the read_p property.
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...
std::vector< BaseType * >::iterator Map_iter
virtual unsigned int val2buf(void *, bool)
Loads class data.
std::vector< BaseType * >::reverse_iterator Map_riter
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.
Evaluate a constraint expression.
virtual bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false)
Receive data from the net.
virtual unsigned int buf2val(void **)
Reads the class data.
virtual BaseType * var(const string &n, bool exact=true, btp_stack *s=0)
The basic data type for the DODS DAP types.
abstract base class used to marshal/serialize dap data objects
void m_duplicate(const Grid &s)
virtual bool check_semantics(string &msg, bool all=false)
Return true if this Grid is well formed.
BaseType * array_var()
Returns the Grid Array.
virtual unsigned int width(bool constrained=false)
A multidimensional array of identical data types.
virtual void print_xml_writer(XMLWriter &xml, bool constrained=false)
Grid(const string &n)
The Grid constructor.