librime: matcher.h Source File

| librime 1.2 Rime Input Method Engine, the core library

matcher.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2012-01-01 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_MATCHER_H_
8#define RIME_MATCHER_H_
9
10#include <rime/segmentor.h>
11#include "recognizer.h"
12
13namespace rime {
14
15 class Matcher : public Segmentor {
16 public:
17 explicit Matcher(const Ticket& ticket);
18
19 virtual bool Proceed(Segmentation* segmentation);
20
21 protected:
22 RecognizerPatterns patterns_;
23};
24
25} // namespace rime
26
27#endif // RIME_MATCHER_H_
recognizer.h
segmentor.h
rime
Definition algebra.cc:12
rime::Matcher::patterns_
RecognizerPatterns patterns_
Definition matcher.h:22
rime::Matcher::Proceed
virtual bool Proceed(Segmentation *segmentation)
Definition matcher.cc:26
rime::Matcher::Matcher
Matcher(const Ticket &ticket)
Definition matcher.cc:15
rime::RecognizerPatterns
Definition recognizer.h:30
rime::Segmentation
Definition segmentation.h:60
rime::Segmentor::Segmentor
Segmentor(const Ticket &ticket)
Definition segmentor.h:20
rime::Ticket
Definition ticket.h:17