⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 event.h

📁 利用C
💻 H
字号:
// Copyright (C) 2004-2007 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added:  2004-01-03// Last changed: 2007-05-14#ifndef __EVENT_H#define __EVENT_H#include <string>namespace dolfin{  /// A event is a string message which is displayed  /// only a limited number of times.  ///  /// Example of usage:  ///  ///   Event event("System is stiff, damping is needed.");  ///   while ()  ///   {  ///     ...  ///     if ( ... )  ///     {  ///       event();  ///       ...  ///     }  ///   }  class Event  {  public:    /// Constructor    Event(const std::string msg, unsigned int maxcount = 1);    /// Destructor    ~Event();    /// Display message    void operator() ();        /// Display count    unsigned int count() const;    /// Maximum display count    unsigned int maxcount() const;      private:    std::string msg;    unsigned int _maxcount;    unsigned int _count;  };}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -