2011-09-23 16:31:57 +02:00
|
|
|
#ifndef register_manager_hh_INCLUDED
|
|
|
|
#define register_manager_hh_INCLUDED
|
|
|
|
|
2012-02-08 00:01:02 +01:00
|
|
|
#include "register.hh"
|
2011-09-23 16:31:57 +02:00
|
|
|
#include "utils.hh"
|
|
|
|
|
2012-02-10 00:47:55 +01:00
|
|
|
#include <unordered_map>
|
|
|
|
|
2011-09-23 16:31:57 +02:00
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
class RegisterManager : public Singleton<RegisterManager>
|
|
|
|
{
|
|
|
|
public:
|
2012-02-08 00:01:02 +01:00
|
|
|
Register& operator[](char reg) { return m_registers[reg]; }
|
2011-09-23 16:31:57 +02:00
|
|
|
|
|
|
|
protected:
|
2012-02-08 00:01:02 +01:00
|
|
|
std::unordered_map<char, Register> m_registers;
|
2011-09-23 16:31:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // register_manager_hh_INCLUDED
|