[wadalabfont-kit] / jis2prim / Matchers.h  

Annotation of /jis2prim/Matchers.h

Parent Directory | Revision Log

Revision: 1.5 - (view) (download) (as text)

1 : ktanaka 1.1 #ifndef _MATCHERS_H
2 :     #define _MATCHERS_H
3 :    
4 :     #include <vector>
5 : ktanaka 1.2 #include <set>
6 : ktanaka 1.1 /* Matchters */
7 :     #include "PatMatch.h"
8 :     #include "BitmapFont.h"
9 :    
10 :     class MatchResult {
11 :     friend ostream& operator<<(ostream &os,const MatchResult &mr);
12 :     protected:
13 :     int x,y;
14 :     PatMatch pm;
15 : ktanaka 1.4 int penalty;
16 : ktanaka 1.1 public:
17 : ktanaka 1.4 MatchResult(int xx, int yy,const PatMatch& p,int penalty) :x(xx),y(yy),pm(p),penalty(penalty){}
18 : ktanaka 1.5 std::vector<pixel> getPixels() const;
19 : ktanaka 1.1 };
20 :    
21 :     class Matchers {
22 :     friend ostream& operator<<(ostream &os,const Matchers &mt);
23 :     protected:
24 : ktanaka 1.4 std::vector<PatMatch> pm;
25 : ktanaka 1.1 public:
26 : ktanaka 1.5 Matchers();
27 :     std::vector<MatchResult> findMatch(const BitmapFont& bf) const;
28 :     std::vector<pixel> notCovered(const BitmapFont& bf) const;
29 : ktanaka 1.1 };
30 : ktanaka 1.5 ostream& operator<<(ostream &os,const Matchers &mt);
31 :     ostream& operator<<(ostream &os,const MatchResult &mr);
32 : ktanaka 1.1 #endif /* _MATCHERS_H */

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help