Mercurial > hg > octave-lyh
annotate liboctave/numeric/DAERT.h @ 16626:4adf3c4bd80b
GUI compilation fixes for MSVC.
* libgui/src/dialog.cc (ACTIVE_ESCAPE, RICH_TEXT): Define to 1 instead of
"true".
(LINE_EDIT_FOLLOWS_PROMPT): Define to 0 instead of "false".
*libgui/src/settings-dialog.cc (settings_dialog::read_lexer_settings,
settings_dialog::read_workspace_colors,
settings_dialog::read_terminal_colors): Use QVector instead of C99
non-constant arrays.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Mon, 06 May 2013 20:02:08 -0400 |
parents | 648dabbb4c6b |
children |
rev | line source |
---|---|
3990 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
3 Copyright (C) 2002-2012 John W. Eaton |
3990 | 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 | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
3990 | 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 | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
3990 | 20 |
21 */ | |
22 | |
23 #if !defined (octave_DAERT_h) | |
24 #define octave_DAERT_h 1 | |
25 | |
26 #include "DAE.h" | |
27 #include "DAERTFunc.h" | |
28 #include "base-dae.h" | |
29 | |
30 class | |
31 DAERT : public base_diff_alg_eqn, public DAERTFunc | |
32 { | |
33 public: | |
34 | |
35 DAERT (void) | |
36 : base_diff_alg_eqn (), DAERTFunc () { } | |
37 | |
4277 | 38 DAERT (const ColumnVector& xx, double tt, DAERTFunc& f) |
39 : base_diff_alg_eqn (xx, tt), DAERTFunc (f) { } | |
3994 | 40 |
4277 | 41 DAERT (const ColumnVector& xx, const ColumnVector& xxdot, double tt, |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
42 DAERTFunc& f) |
4277 | 43 : base_diff_alg_eqn (xx, xxdot, tt), DAERTFunc (f) { } |
3990 | 44 |
45 DAERT (const DAERT& a) | |
46 : base_diff_alg_eqn (a), DAERTFunc (a) { } | |
47 | |
48 DAERT& operator = (const DAERT& a) | |
49 { | |
50 if (this != &a) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
51 { |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
52 base_diff_alg_eqn::operator = (a); |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
53 DAERTFunc::operator = (a); |
3990 | 54 |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
55 } |
3990 | 56 return *this; |
57 } | |
58 | |
11504
81ff63e43f54
really make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
59 virtual ~DAERT (void) { } |
3990 | 60 |
4277 | 61 void initialize (const ColumnVector& xx, const ColumnVector& xxdot, |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
62 double tt) |
3990 | 63 { |
4277 | 64 base_diff_alg_eqn::initialize (xx, xxdot, tt); |
3990 | 65 } |
66 }; | |
67 | |
68 #endif |