comparison liboctave/ODES.h @ 11502:4638800cd660

delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
author John W. Eaton <jwe@octave.org>
date Thu, 13 Jan 2011 03:16:40 -0500
parents cbc402e64d83
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
11501:331fcc41ca23 11502:4638800cd660
30 ODES : public base_diff_eqn, public ODESFunc 30 ODES : public base_diff_eqn, public ODESFunc
31 { 31 {
32 public: 32 public:
33 33
34 ODES (void) 34 ODES (void)
35 : base_diff_eqn (), ODESFunc (), theta () { } 35 : base_diff_eqn (), ODESFunc (), xdot (), theta () { }
36 36
37 ODES (const ColumnVector& s, double tm, ODESFunc& f) 37 ODES (const ColumnVector& s, double tm, ODESFunc& f)
38 : base_diff_eqn (s, tm), ODESFunc (f), xdot (s.length (), 0.0), theta () { } 38 : base_diff_eqn (s, tm), ODESFunc (f), xdot (s.length (), 0.0), theta () { }
39 39
40 ODES (const ColumnVector& s, const ColumnVector& xtheta, double tm, 40 ODES (const ColumnVector& s, const ColumnVector& xtheta, double tm,
41 ODESFunc& f) 41 ODESFunc& f)
42 : base_diff_eqn (s, tm), ODESFunc (f), xdot (s.length (), 0.0), 42 : base_diff_eqn (s, tm), ODESFunc (f), xdot (s.length (), 0.0),
43 theta (xtheta) { } 43 theta (xtheta) { }
44 44
45 ODES (const ODES& a) 45 ODES (const ODES& a)
46 : base_diff_eqn (a), ODESFunc (a), theta (a.theta) { } 46 : base_diff_eqn (a), ODESFunc (a), xdot (a.xdot), theta (a.theta) { }
47 47
48 ODES& operator = (const ODES& a) 48 ODES& operator = (const ODES& a)
49 { 49 {
50 if (this != &a) 50 if (this != &a)
51 { 51 {