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,
169 virtual unsigned int width();
170 virtual unsigned int width(
bool constrained);
172 virtual int components(
bool constrained =
false);
183 virtual unsigned int val2buf(
void *buf,
bool reuse =
false);
185 virtual unsigned int buf2val(
void **val);
187 virtual void print_decl(ostream &out,
string space =
" ",
188 bool print_semi =
true,
189 bool constraint_info =
false,
190 bool constrained =
false);
192 virtual void print_xml(ostream &out,
string space =
" ",
193 bool constrained =
false);
196 virtual void print_val(ostream &out,
string space =
"",
197 bool print_decl_p =
true);
200 virtual void print_decl(FILE *out,
string space =
" ",
201 bool print_semi =
true,
202 bool constraint_info =
false,
203 bool constrained =
false);
204 virtual void print_xml(FILE *out,
string space =
" ",
205 bool constrained =
false);
206 virtual void print_val(FILE *out,
string space =
"",
207 bool print_decl_p =
true);
220 virtual void dump(ostream &strm)
const ;