Coverage Report

Created: 2023-12-08 06:59

/src/aspell/common/mutable_container.hpp
Line
Count
Source
1
/* This file is part of The New Aspell
2
 * Copyright (C) 2001 by Kevin Atkinson under the GNU LGPL
3
 * license version 2.0 or 2.1.  You should have received a copy of the
4
 * LGPL license along with this library if you did not you can find it
5
 * at http://www.gnu.org/.                                              */
6
7
#ifndef ASPELL_MUTABLE_CONTAINER__HPP
8
#define ASPELL_MUTABLE_CONTAINER__HPP
9
10
#include "parm_string.hpp"
11
12
namespace acommon {
13
14
class AddableContainer {
15
public:
16
  virtual PosibErr<bool> add(ParmStr to_add) = 0;
17
67.0k
  virtual ~AddableContainer() {}
18
};
19
20
21
class MutableContainer : public AddableContainer {
22
public:
23
  virtual PosibErr<bool> remove(ParmStr to_rem) = 0;
24
  virtual PosibErr<void> clear() = 0;
25
};
26
27
28
}
29
30
#endif /* ASPELL_MUTABLE_CONTAINER__HPP */