kakoune/src/register_manager.hh

24 lines
408 B
C++
Raw Normal View History

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