📄 timedependent.h
字号:
// Copyright (C) 2005-2008 Garth N. Wells.// Licensed under the GNU LGPL Version 2.1.//// First added: 2005-09-02// Last changed: 2008-06-23#ifndef __TIME_DEPENDENT_H#define __TIME_DEPENDENT_H #include <dolfin/log/dolfin_log.h>namespace dolfin{ /// Associates an object with time t class TimeDependent { public: /// Constructors TimeDependent(); TimeDependent(const real* t); /// Destructor ~TimeDependent(); /// Associate object with time t void sync(const real* t); /// Return the current time t real time() const { if( !t ) error("Time has not been associated with object."); return *t; }; private: // Pointer to the current time const real* t; }; }#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -