55 #ifndef _constructor_h
59 #ifndef constraint_evaluator_h
63 #define FILE_METHODS 1
127 std::vector<BaseType *> _map_vars;
134 Grid(
const string &n);
135 Grid(
const string &n,
const string &d);
139 typedef std::vector<BaseType *>::const_iterator
Map_citer ;
140 typedef std::vector<BaseType *>::iterator
Map_iter ;
141 typedef std::vector<BaseType *>::reverse_iterator
Map_riter ;
153 virtual BaseType *
var(
const string &n,
bool exact =
true,
168 virtual unsigned int width();
170 virtual int components(
bool constrained =
false);
181 virtual unsigned int val2buf(
void *buf,
bool reuse =
false);
183 virtual unsigned int buf2val(
void **val);
185 virtual void print_decl(ostream &out,
string space =
" ",
186 bool print_semi =
true,
187 bool constraint_info =
false,
188 bool constrained =
false);
190 virtual void print_xml(ostream &out,
string space =
" ",
191 bool constrained =
false);
193 virtual void print_val(ostream &out,
string space =
"",
194 bool print_decl_p =
true);
197 virtual void print_decl(FILE *out,
string space =
" ",
198 bool print_semi =
true,
199 bool constraint_info =
false,
200 bool constrained =
false);
201 virtual void print_xml(FILE *out,
string space =
" ",
202 bool constrained =
false);
203 virtual void print_val(FILE *out,
string space =
"",
204 bool print_decl_p =
true);
217 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)
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.
virtual unsigned int width()
Returns the size of the class instance data.
Grid & operator=(const Grid &rhs)
virtual void print_xml(ostream &out, string space=" ", bool constrained=false)
virtual void set_in_selection(bool state)
virtual void set_send_p(bool state)
virtual unsigned int val2buf(void *buf, bool reuse=false)
Returns the size of the Grid type.
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
std::vector< BaseType * >::reverse_iterator Map_riter
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 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
virtual unsigned int buf2val(void **val)
virtual bool check_semantics(string &msg, bool all=false)
Return true if this Grid is well formed.
void _duplicate(const Grid &s)
BaseType * array_var()
Returns the Grid Array.
A multidimensional array of identical data types.
Grid(const string &n)
The Grid constructor.