C++ main module for emicrom Package  1.0
EMM_RegularTimeStep.h
Go to the documentation of this file.
1 #ifndef EMM_RegularTimeStep_H
2 #define EMM_RegularTimeStep_H
3 
4 #include "EMM_Stepper.h"
5 
6 
16 
18  // ATTRIBUTES
19 
20 public:
21 
22 
23 
24 private:
25 
26 protected:
27  // METHODS
28 
29  // CONSTRUCTORS
30 
33  EMM_RegularTimeStep(void);
34 
35 
36 
37  // DESTRUCTORS
38 
39 
42  virtual ~EMM_RegularTimeStep(void);
43 
44 
45 private:
46 
47 public:
48  // New share pointer constructor
51  static inline SP::EMM_RegularTimeStep New() {
52  SP::EMM_RegularTimeStep p(new EMM_RegularTimeStep(),EMM_RegularTimeStep::Delete());
53  p->setThis(p);
54  return p;
55  }
56 
57  // SET methods
58 
59 
60  // GET methods
61 
67  virtual tBoolean computeNewTimeStep(tReal& dt,tUInteger& nEvaluations) {
68  dt=getDt();
69  return true;
70  }
71 public:
72  // OTHERS methods
73 
74 
75 
76 
77 };
78 
79 #endif
#define tUInteger
Definition: types.h:91
const tReal & getDt() const
get the time step
Definition: EMM_Stepper.h:149
#define tBoolean
Definition: types.h:139
DEFINE_SPTR(EMM_RegularTimeStep)
virtual ~EMM_RegularTimeStep(void)
destroy
Definition: EMM_RegularTimeStep.cpp:7
EMM_RegularTimeStep(void)
create
Definition: EMM_RegularTimeStep.cpp:4
This class describes a time descriptor.
Definition: EMM_Stepper.h:18
static SP::EMM_RegularTimeStep New()
build a shared pointer associated to the class
Definition: EMM_RegularTimeStep.h:51
SP_OBJECT(EMM_RegularTimeStep)
virtual tBoolean computeNewTimeStep(tReal &dt, tUInteger &nEvaluations)
compute the new time step
Definition: EMM_RegularTimeStep.h:67
#define tReal
Definition: types.h:118
This class describes a regular time.
Definition: EMM_RegularTimeStep.h:15
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141