/* * Copyright 2013 (c) Anna Schumaker. */ #ifndef OCARINA_INDEX_H #define OCARINA_INDEX_H #include #include #include #include #include class Index { private: std::map > index; std::set keys; File file; public: Index(std::string); void save(); void load(); #ifdef CONFIG_DEBUG void print(); void print_keys(); #endif /* CONFIG_DEBUG */ void insert(std::string, unsigned int); void remove(std::string); void remove(std::string, unsigned int); const std::set::iterator keys_begin(); const std::set::iterator keys_end(); const std::set &operator[](const std::string &); }; #endif /* OCARINA_INDEX_H */