3
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
3
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
3
|
21 |
|
22 */ |
|
23 |
382
|
24 #if !defined (octave_DAE_h) |
|
25 #define octave_DAE_h 1 |
|
26 |
3
|
27 #include "DAEFunc.h" |
3990
|
28 #include "base-dae.h" |
3
|
29 |
1868
|
30 class |
3990
|
31 DAE : public base_diff_alg_eqn, public DAEFunc |
3
|
32 { |
|
33 public: |
|
34 |
1842
|
35 DAE (void) |
3990
|
36 : base_diff_alg_eqn (), DAEFunc () { } |
3
|
37 |
3509
|
38 DAE (const ColumnVector& xx, double tt, DAEFunc& f) |
3990
|
39 : base_diff_alg_eqn (xx, tt), DAEFunc (f) { } |
3
|
40 |
3509
|
41 DAE (const ColumnVector& xx, const ColumnVector& xxdot, |
3990
|
42 double tt, DAEFunc& f) |
|
43 : base_diff_alg_eqn (xx, xxdot, tt), DAEFunc (f) { } |
3
|
44 |
1842
|
45 DAE (const DAE& a) |
3990
|
46 : base_diff_alg_eqn (a), DAEFunc (a){ } |
3
|
47 |
1842
|
48 DAE& operator = (const DAE& a) |
|
49 { |
|
50 if (this != &a) |
|
51 { |
3990
|
52 base_diff_alg_eqn::operator = (a); |
1842
|
53 DAEFunc::operator = (a); |
|
54 } |
|
55 return *this; |
|
56 } |
|
57 |
|
58 ~DAE (void) { } |
3
|
59 }; |
|
60 |
|
61 #endif |
382
|
62 |
|
63 /* |
|
64 ;;; Local Variables: *** |
|
65 ;;; mode: C++ *** |
|
66 ;;; End: *** |
|
67 */ |