00001 00002 // FILE taylexp.h 00003 00004 00005 #ifndef INCLUDED_TAYLEXP_H 00006 #define INCLUDED_TAYLEXP_H 00007 00008 #include "ttaylode.h" 00009 #include "ttaylvar.h" 00010 #include "datarepr.h" 00011 00012 00020 class TAYL_EXP : public DATA_REPR 00021 { 00022 00023 public: 00024 00026 PtrTaylGenODE PointSol; 00027 00029 PtrTaylGenODE IntSol; 00030 00032 PtrTaylGenODE RemTerm; 00033 00036 PtrTaylGenVAR VarSol; 00037 00039 virtual ~TAYL_EXP(); 00040 00041 }; 00042 00043 00045 typedef TAYL_EXP* PtrTaylExp; 00046 00047 inline TAYL_EXP :: ~TAYL_EXP() 00048 { 00049 DELETE(PointSol); 00050 DELETE(RemTerm); 00051 DELETE(IntSol); 00052 DELETE(VarSol); 00053 } 00054 00055 00058 template <class TAYLOR_ODE, class TAYLOR_VAR> 00059 class TAYLOR_EXPANSION : public TAYL_EXP 00060 { 00061 public: 00062 00064 TAYLOR_EXPANSION(); 00065 00067 ~TAYLOR_EXPANSION() {;} 00068 }; 00069 00070 00071 template <class TAYLOR_ODE, class TAYLOR_VAR> 00072 inline TAYLOR_EXPANSION<TAYLOR_ODE,TAYLOR_VAR> :: TAYLOR_EXPANSION() 00073 { 00074 PointSol = new TAYLOR_ODE; 00075 RemTerm = new TAYLOR_ODE; 00076 IntSol = new TAYLOR_ODE; 00077 VarSol = new TAYLOR_VAR; 00078 } 00079 00080 00081 #endif