[classif] Add BaseChecker::PrepareFeatureTypeToMatch().

This commit is contained in:
Denis Koronchik 2014-07-13 23:41:48 +02:00 committed by Alex Zolotarev
parent f6c8d375cc
commit e366fbec24
2 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,12 @@
namespace ftypes
{
uint32_t BaseChecker::PrepareFeatureTypeToMatch(uint32_t featureType)
{
ftype::TruncValue(featureType, 2);
return featureType;
}
bool BaseChecker::IsMatched(uint32_t t) const
{
ftype::TruncValue(t, 2);

View file

@ -22,6 +22,8 @@ public:
bool operator() (feature::TypesHolder const & types) const;
bool operator() (FeatureType const & ft) const;
bool operator() (vector<uint32_t> const & types) const;
static uint32_t PrepareFeatureTypeToMatch(uint32_t featureType);
};
class IsStreetChecker : public BaseChecker