#ifndef _PAT_MATCH_H #define _PAT_MATCH_H #include #include #include "BitmapFont.h" #include "Assumption.h" #include /* @ : 黒 */ /* . : 白 */ /* else(?) : どちらでも */ class PatMatch{ friend std::ostream& operator<<(std::ostream &os,const PatMatch &pm); protected: int width, height; std::string pat; Assumption assumption; public: PatMatch(int w,int h,std::string s,const Assumption &as); PatMatch(int w,int h,std::string s, const SimpleAssumption &sa); int get(int x,int y) const; #if 0 bool isMatch(const BitmapFont& bf, int x, int y) const; #endif int matchPenalty(const BitmapFont& bf, int x, int y) const; std::vector getPixels(int x, int y) const; }; std::ostream& operator<<(std::ostream &os,const PatMatch &pm); #endif /* _PAT_MATCH_H */