Quark  0.1
DiffTokenSequence.h++
Go to the documentation of this file.
1 
2 #ifndef __libquark_diff_DiffTokenSequence_hxx
3 #define __libquark_diff_DiffTokenSequence_hxx
4 
5 #include <quark/DiffSequence.h++>
6 
7 namespace quark {
8 namespace diff {
9 
11 {
12  public:
13 
15  virtual ~DiffTokenSequence();
16 
17  virtual int mapStartIndex(int startIndex) const;
18  virtual int mapEndIndex(int endIndex) const;
19 
20  protected:
21 
22  virtual void split(const QStringRef& text, QVector<QStringRef>& elements);
23 
24  private:
25 
26  QVector<int> _offsets;
27 
28  Q_DISABLE_COPY(DiffTokenSequence);
29 };
30 
31 } // namespace diff
32 } // namespace quark
33 
34 #endif // __libquark_diff_DiffTokenSequence_hxx
virtual void split(const QStringRef &text, QVector< QStringRef > &elements)
const QStringRef & text() const
Definition: DiffSequence.h++:34
Definition: BarChartView.h++:6
Definition: DiffTokenSequence.h++:10
TODO: rewrite comment Abstract base class for sequences that can be diffed.
Definition: DiffSequence.h++:20
virtual int mapEndIndex(int endIndex) const
virtual int mapStartIndex(int startIndex) const