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

📄 function.h

📁 由一个古老的BASIC解释器改进而成, 保留了ANSI C固有的艺术美感.
💻 H
字号:
// function.h

#include <string>

#include "codeline.h"

class ParameterList {
public:
        ParameterList ();
        ParameterList (const ParameterList & pl);
        ~ParameterList ();
        ParameterList & operator= (const ParameterList & pl);
        void push_back (const std::string & name);
        size_t size () const;
        //const std::string & operator [] (size_t n) const;
        std::string operator [] (size_t n) const;
private:
        class Internal;
        Internal * pin;
};

class Function {
public:
	enum DefType { DefSingle, DefMulti };
        Function (const std::string & strdef, const ParameterList & param);
        Function (ProgramPos posfn, const ParameterList & param);
        Function (const Function & f);
        ~Function ();
        Function & operator= (const Function &);
	DefType getdeftype () const;
        CodeLine & getcode ();
        ProgramPos getpos () const;
        const ParameterList & getparam ();
        static void clear ();
        void insert (const std::string & name);
        static Function & get (const std::string & name);
private:
        class Internal;
        Internal * pin;
};

// Fin de function.h

⌨️ 快捷键说明

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