timedependent.h
来自「利用C」· C头文件 代码 · 共 49 行
H
49 行
// 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 + =
减小字号Ctrl + -
显示快捷键?