Reference documentation for deal.II version 8.1.0
function_time.h
1 // ---------------------------------------------------------------------
2 // @f$Id: function_time.h 31378 2013-10-22 08:36:27Z maier @f$
3 //
4 // Copyright (C) 1999 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__function_time_h
18 #define __deal2__function_time_h
19 
20 
21 #include <deal.II/base/config.h>
23 
68 {
69 public:
75  FunctionTime (const double initial_time = 0.0);
76 
80  virtual ~FunctionTime();
81 
85  double get_time () const;
86 
91  virtual void set_time (const double new_time);
92 
97  virtual void advance_time (const double delta_t);
98 
99 private:
103  double time;
104 };
105 
106 
107 
108 /*------------------------------ Inline functions ------------------------------*/
109 
110 #ifndef DOXYGEN
111 
112 inline double
113 FunctionTime::get_time () const
114 {
115  return time;
116 }
117 
118 #endif
119 DEAL_II_NAMESPACE_CLOSE
120 
121 #endif
FunctionTime(const double initial_time=0.0)
virtual void set_time(const double new_time)
virtual void advance_time(const double delta_t)
double get_time() const
virtual ~FunctionTime()