comparison src/pt-const.h @ 161:21b599370728

[project @ 1993-10-16 17:20:32 by jwe]
author jwe
date Sat, 16 Oct 1993 17:21:25 +0000
parents eef502bbdffa
children e2c950dd96d2
comparison
equal deleted inserted replaced
160:be50d501b2a7 161:21b599370728
233 }; 233 };
234 234
235 tree_constant_rep (void); 235 tree_constant_rep (void);
236 236
237 tree_constant_rep (double d); 237 tree_constant_rep (double d);
238 tree_constant_rep (Matrix& m); 238 tree_constant_rep (const Matrix& m);
239 tree_constant_rep (DiagMatrix& d); 239 tree_constant_rep (const DiagMatrix& d);
240 tree_constant_rep (RowVector& v); 240 tree_constant_rep (const RowVector& v);
241 tree_constant_rep (RowVector& v, int pcv); 241 tree_constant_rep (const RowVector& v, int pcv);
242 tree_constant_rep (ColumnVector& v); 242 tree_constant_rep (const ColumnVector& v);
243 tree_constant_rep (ColumnVector& v, int pcv); 243 tree_constant_rep (const ColumnVector& v, int pcv);
244 244
245 tree_constant_rep (Complex c); 245 tree_constant_rep (const Complex& c);
246 tree_constant_rep (ComplexMatrix& m); 246 tree_constant_rep (const ComplexMatrix& m);
247 tree_constant_rep (ComplexDiagMatrix& d); 247 tree_constant_rep (const ComplexDiagMatrix& d);
248 tree_constant_rep (ComplexRowVector& v); 248 tree_constant_rep (const ComplexRowVector& v);
249 tree_constant_rep (ComplexRowVector& v, int pcv); 249 tree_constant_rep (const ComplexRowVector& v, int pcv);
250 tree_constant_rep (ComplexColumnVector& v); 250 tree_constant_rep (const ComplexColumnVector& v);
251 tree_constant_rep (ComplexColumnVector& v, int pcv); 251 tree_constant_rep (const ComplexColumnVector& v, int pcv);
252 252
253 tree_constant_rep (const char *s); 253 tree_constant_rep (const char *s);
254 tree_constant_rep (String& s); 254 tree_constant_rep (const String& s);
255 255
256 tree_constant_rep (double base, double limit, double inc); 256 tree_constant_rep (double base, double limit, double inc);
257 tree_constant_rep (Range& r); 257 tree_constant_rep (const Range& r);
258 258
259 tree_constant_rep (tree_constant_rep::constant_type t); 259 tree_constant_rep (tree_constant_rep::constant_type t);
260 260
261 tree_constant_rep (tree_constant_rep& t); 261 tree_constant_rep (const tree_constant_rep& t);
262 262
263 ~tree_constant_rep (void); 263 ~tree_constant_rep (void);
264 264
265 #if defined (MDEBUG) 265 #if defined (MDEBUG)
266 void *operator new (size_t size); 266 void *operator new (size_t size);
527 tree_constant (void) 527 tree_constant (void)
528 { rep = new tree_constant_rep (); rep->count = 1; } 528 { rep = new tree_constant_rep (); rep->count = 1; }
529 529
530 tree_constant (double d) 530 tree_constant (double d)
531 { rep = new tree_constant_rep (d); rep->count = 1; } 531 { rep = new tree_constant_rep (d); rep->count = 1; }
532 tree_constant (Matrix& m) 532 tree_constant (const Matrix& m)
533 { rep = new tree_constant_rep (m); rep->count = 1; } 533 { rep = new tree_constant_rep (m); rep->count = 1; }
534 tree_constant (DiagMatrix& d) 534 tree_constant (const DiagMatrix& d)
535 { rep = new tree_constant_rep (d); rep->count = 1; } 535 { rep = new tree_constant_rep (d); rep->count = 1; }
536 tree_constant (RowVector& v) 536 tree_constant (const RowVector& v)
537 { rep = new tree_constant_rep (v); rep->count = 1; } 537 { rep = new tree_constant_rep (v); rep->count = 1; }
538 tree_constant (RowVector& v, int pcv) 538 tree_constant (const RowVector& v, int pcv)
539 { rep = new tree_constant_rep (v, pcv); rep->count = 1; } 539 { rep = new tree_constant_rep (v, pcv); rep->count = 1; }
540 tree_constant (ColumnVector& v) 540 tree_constant (const ColumnVector& v)
541 { rep = new tree_constant_rep (v); rep->count = 1; } 541 { rep = new tree_constant_rep (v); rep->count = 1; }
542 tree_constant (ColumnVector& v, int pcv) 542 tree_constant (const ColumnVector& v, int pcv)
543 { rep = new tree_constant_rep (v, pcv); rep->count = 1; } 543 { rep = new tree_constant_rep (v, pcv); rep->count = 1; }
544 544
545 tree_constant (Complex c) 545 tree_constant (const Complex& c)
546 { rep = new tree_constant_rep (c); rep->count = 1; } 546 { rep = new tree_constant_rep (c); rep->count = 1; }
547 tree_constant (ComplexMatrix& m) 547 tree_constant (const ComplexMatrix& m)
548 { rep = new tree_constant_rep (m); rep->count = 1; } 548 { rep = new tree_constant_rep (m); rep->count = 1; }
549 tree_constant (ComplexDiagMatrix& d) 549 tree_constant (const ComplexDiagMatrix& d)
550 { rep = new tree_constant_rep (d); rep->count = 1; } 550 { rep = new tree_constant_rep (d); rep->count = 1; }
551 tree_constant (ComplexRowVector& v) 551 tree_constant (const ComplexRowVector& v)
552 { rep = new tree_constant_rep (v); rep->count = 1; } 552 { rep = new tree_constant_rep (v); rep->count = 1; }
553 tree_constant (ComplexRowVector& v, int pcv) 553 tree_constant (const ComplexRowVector& v, int pcv)
554 { rep = new tree_constant_rep (v, pcv); rep->count = 1; } 554 { rep = new tree_constant_rep (v, pcv); rep->count = 1; }
555 tree_constant (ComplexColumnVector& v) 555 tree_constant (const ComplexColumnVector& v)
556 { rep = new tree_constant_rep (v); rep->count = 1; } 556 { rep = new tree_constant_rep (v); rep->count = 1; }
557 tree_constant (ComplexColumnVector& v, int pcv) 557 tree_constant (const ComplexColumnVector& v, int pcv)
558 { rep = new tree_constant_rep (v, pcv); rep->count = 1; } 558 { rep = new tree_constant_rep (v, pcv); rep->count = 1; }
559 559
560 tree_constant (const char *s) 560 tree_constant (const char *s)
561 { rep = new tree_constant_rep (s); rep->count = 1; } 561 { rep = new tree_constant_rep (s); rep->count = 1; }
562 tree_constant (String& s) 562 tree_constant (const String& s)
563 { rep = new tree_constant_rep (s); rep->count = 1; } 563 { rep = new tree_constant_rep (s); rep->count = 1; }
564 564
565 tree_constant (double base, double limit, double inc) 565 tree_constant (double base, double limit, double inc)
566 { rep = new tree_constant_rep (base, limit, inc); rep->count = 1; } 566 { rep = new tree_constant_rep (base, limit, inc); rep->count = 1; }
567 tree_constant (Range& r) 567 tree_constant (const Range& r)
568 { rep = new tree_constant_rep (r); rep->count = 1; } 568 { rep = new tree_constant_rep (r); rep->count = 1; }
569 569
570 tree_constant (tree_constant_rep::constant_type t) 570 tree_constant (tree_constant_rep::constant_type t)
571 { rep = new tree_constant_rep (t); rep->count = 1; } 571 { rep = new tree_constant_rep (t); rep->count = 1; }
572 572
573 tree_constant (tree_constant& a) 573 tree_constant (const tree_constant& a)
574 { rep = a.rep; rep->count++; } 574 { rep = a.rep; rep->count++; }
575 tree_constant (tree_constant_rep& r) 575 tree_constant (tree_constant_rep& r)
576 { rep = &r; rep->count++; } 576 { rep = &r; rep->count++; }
577 577
578 ~tree_constant (void); 578 ~tree_constant (void);