Style tweak in WordDB

This commit is contained in:
Maxime Coste 2015-01-13 13:57:44 +00:00
parent 0412487b0c
commit 61619a4d4d

View File

@ -40,7 +40,9 @@ public:
int get_word_occurences(StringView word) const; int get_word_occurences(StringView word) const;
private: private:
using LineToWords = Vector<WordList, MemoryDomain::WordDB>; void update_db();
void add_words(const WordList& words);
void remove_words(const WordList& words);
struct WordInfo struct WordInfo
{ {
@ -48,10 +50,7 @@ private:
int refcount; int refcount;
}; };
using WordToInfo = UnorderedMap<InternedString, WordInfo, MemoryDomain::WordDB>; using WordToInfo = UnorderedMap<InternedString, WordInfo, MemoryDomain::WordDB>;
using LineToWords = Vector<WordList, MemoryDomain::WordDB>;
void update_db();
void add_words(const WordList& words);
void remove_words(const WordList& words);
safe_ptr<const Buffer> m_buffer; safe_ptr<const Buffer> m_buffer;
size_t m_timestamp; size_t m_timestamp;