DAERT.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 2002-2012 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 3 of the License, or (at your
00010 option) any later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, see
00019 <http://www.gnu.org/licenses/>.
00020 
00021 */
00022 
00023 #if !defined (octave_DAERT_h)
00024 #define octave_DAERT_h 1
00025 
00026 #include "DAE.h"
00027 #include "DAERTFunc.h"
00028 #include "base-dae.h"
00029 
00030 class
00031 DAERT : public base_diff_alg_eqn, public DAERTFunc
00032 {
00033 public:
00034 
00035   DAERT (void)
00036     : base_diff_alg_eqn (), DAERTFunc () { }
00037 
00038   DAERT (const ColumnVector& xx, double tt, DAERTFunc& f)
00039     : base_diff_alg_eqn (xx, tt), DAERTFunc (f) { }
00040 
00041   DAERT (const ColumnVector& xx, const ColumnVector& xxdot, double tt,
00042         DAERTFunc& f)
00043     : base_diff_alg_eqn (xx, xxdot, tt), DAERTFunc (f) { }
00044 
00045   DAERT (const DAERT& a)
00046     : base_diff_alg_eqn (a), DAERTFunc (a) { }
00047 
00048   DAERT& operator = (const DAERT& a)
00049     {
00050       if (this != &a)
00051         {
00052           base_diff_alg_eqn::operator = (a);
00053           DAERTFunc::operator = (a);
00054 
00055         }
00056       return *this;
00057     }
00058 
00059   virtual ~DAERT (void) { }
00060 
00061   void initialize (const ColumnVector& xx, const ColumnVector& xxdot,
00062                    double tt)
00063     {
00064       base_diff_alg_eqn::initialize (xx, xxdot, tt);
00065     }
00066 };
00067 
00068 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines