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

📄 visint.h

📁 ALGAE是一个快速创建算法演示的框架。目前支持的算法实现语言包括java和c
💻 H
字号:
#ifndef VISIBLE_INTEGER_H#define VISIBLE_INTEGER_H#include <algae/config.h>#include <algae/algae.h>#include <algae/visible.h>#include <utils/indexable.h>#include <iostream>#include <string>class VisibleInteger: public Visible{public:   VisibleInteger(AlgAE::Color c = AlgAE::Magenta);   VisibleInteger(int i, AlgAE::Color c = AlgAE::Magenta);   VisibleInteger(int i, const std::string& name, AlgAE::Color c = AlgAE::Magenta);   VisibleInteger(int i, const char* name, AlgAE::Color c = AlgAE::Magenta);   VisibleInteger (const VisibleInteger& x);   void operator= (const VisibleInteger& x);   void operator= (const int x);   ~VisibleInteger();   operator int() const;   // Use this operation to have a pointer arrow to an element of an   // array-like structure   void indexes (const Indexable* arrayLike);   void indexes (const Indexable& arrayLike);     // Required for animation   virtual void touchAllPointers() const;   virtual void writeText(std::ostream& out) const;  VisibleInteger& operator++ ()  {++_data; return *this;}  VisibleInteger operator++ (int);  VisibleInteger& operator-- ()  {--_data; return *this;}  VisibleInteger operator-- (int);private:   int _data;   AlgAE::Color _color;   const Indexable* indexed;};inline void VisibleInteger::indexes (const Indexable& arrayLike){  indexes (&arrayLike);}#endif

⌨️ 快捷键说明

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