diff liboctave/DAERT.h @ 3990:46388d6a4e44

[project @ 2002-07-16 06:20:39 by jwe]
author jwe
date Tue, 16 Jul 2002 06:20:40 +0000
parents
children a41827ec5677
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/liboctave/DAERT.h
@@ -0,0 +1,70 @@
+/*
+
+Copyright (C) 2002 John W. Eaton
+
+This file is part of Octave.
+
+Octave is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2, or (at your option) any
+later version.
+
+Octave is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with Octave; see the file COPYING.  If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+
+*/
+
+#if !defined (octave_DAERT_h)
+#define octave_DAERT_h 1
+
+#include "DAE.h"
+#include "DAERTFunc.h"
+#include "base-dae.h"
+
+class
+DAERT : public base_diff_alg_eqn, public DAERTFunc
+{
+public:
+
+  DAERT (void)
+    : base_diff_alg_eqn (), DAERTFunc () { }
+
+  DAERT (const ColumnVector& x, const ColumnVector& xdot, double t,
+	DAERTFunc& f)
+    : base_diff_alg_eqn (x, xdot, t), DAERTFunc (f) { }
+
+  DAERT (const DAERT& a)
+    : base_diff_alg_eqn (a), DAERTFunc (a) { }
+
+  DAERT& operator = (const DAERT& a)
+    {
+      if (this != &a)
+	{
+	  base_diff_alg_eqn::operator = (a);
+	  DAERTFunc::operator = (a);
+
+	}
+      return *this;
+    }
+
+  ~DAERT (void) { }
+
+  void initialize (const ColumnVector& x, const ColumnVector& xdot, double t)
+    {
+      base_diff_alg_eqn::initialize (x, xdot, t);
+    }
+};
+
+#endif
+
+/*
+;;; Local Variables: ***
+;;; mode: C++ ***
+;;; End: ***
+*/