Coverage Report

Created: 2024-09-08 06:23

/src/aspell/modules/speller/default/suggest.hpp
Line
Count
Source (jump to first uncovered line)
1
// Copyright 2000 by Kevin Atkinson under the terms of the LGPL
2
3
#ifndef ASPELLER_SUGGEST__HPP
4
#define ASPELLER_SUGGEST__HPP
5
6
#include "word_list.hpp"
7
#include "enumeration.hpp"
8
#include "parm_string.hpp"
9
#include "suggestions.hpp"
10
11
using namespace acommon;
12
13
namespace aspeller {
14
15
  class SpellerImpl;
16
17
  class SuggestionList : public WordList {
18
  public:
19
    typedef StringEnumeration            VirEmul;
20
    typedef Enumeration<VirEmul>         Emul;
21
    typedef const char *               Value;
22
    typedef unsigned int               Size;
23
24
    //virtual SuggestionList * clone() const = 0;
25
    //virtual void assign(const SuggestionList *) = 0;
26
    
27
    virtual bool empty() const = 0;
28
    virtual Size size() const = 0;
29
    virtual VirEmul * elements() const = 0;
30
0
    virtual ~SuggestionList() {}
31
  };
32
33
  class Suggest {
34
  public:
35
    virtual PosibErr<void> set_mode(ParmString) = 0;
36
    virtual SuggestionList & suggest(const char * word) = 0;
37
    virtual SuggestionsData & suggestions(const char * word) = 0;
38
1.43k
    virtual ~Suggest() {}
39
  };
40
41
  PosibErr<Suggest *> new_default_suggest(SpellerImpl *);
42
43
}
44
45
46
#endif