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

📄 parameterlist.h

📁 利用C
💻 H
字号:
// Copyright (C) 2003-2007 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added:  2003-05-06// Last changed: 2007-04-13#ifndef __PARAMETER_LIST_H#define __PARAMETER_LIST_H#include <map>#include "Parameter.h"namespace dolfin{    /// This class represents a database of parameters, where each  /// parameter is uniquely identified by a string.    class ParameterList  {  public:    /// Constructor    ParameterList();    /// Destructor    ~ParameterList();	     /// Add parameter    void add(std::string key, Parameter value);        /// Set value of parameter    void set(std::string key, Parameter value);    /// Get value of parameter with given key    Parameter get(std::string key) const;    /// Check if parameter with given key has been defined    bool defined(std::string key) const;    /// Friends    friend class XMLFile;      private:    // Parameters stored as an STL map    std::map<const std::string, Parameter> parameters;    // Typedef of iterators for convenience    typedef std::map<const std::string, Parameter>::iterator iterator;    typedef std::map<const std::string, Parameter>::const_iterator const_iterator;        // Typedef of pair for convenience    typedef std::pair<const std::string, Parameter> pair;      };  }#endif

⌨️ 快捷键说明

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