Ignore:
Timestamp:
Dec 23, 2017, 7:59:51 AM (13 months ago)
Author:
cameron
Message:

isa and dyn_cast for Alphabets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/alphabet.cpp

    r5797 r5800  
    1414                                                 unsigned unicodeCommon,
    1515                                                 std::vector <UCD::codepoint_t> aboveCommon) :
    16     Alphabet(alphabetName), mUnicodeCommon(unicodeCommon), mAboveCommon(aboveCommon) {}
     16    Alphabet(alphabetName, ClassTypeId::UnicodeMappableAlphabet),
     17    mUnicodeCommon(unicodeCommon),
     18    mAboveCommon(aboveCommon) {}
    1719
    1820UCD::codepoint_t UnicodeMappableAlphabet::toUnicode(const unsigned n) const {
     
    3335
    3436CodeUnitAlphabet::CodeUnitAlphabet(std::string alphabetName, uint8_t bits) :
    35     Alphabet(alphabetName), mCodeUnitBits(bits) {}
     37    Alphabet(alphabetName, ClassTypeId::CodeUnitAlphabet), mCodeUnitBits(bits) {}
    3638
    3739const UnicodeMappableAlphabet Unicode("Unicode", UCD::UNICODE_MAX, {});
Note: See TracChangeset for help on using the changeset viewer.