Ignore:
Timestamp:
Nov 2, 2018, 7:18:31 PM (7 months ago)
Author:
nmedfort
Message:

Initial version of PipelineKernel? + revised StreamSet? model.

File:
1 edited

Legend:

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

    r5800 r6184  
    1111namespace cc {
    1212   
    13 UnicodeMappableAlphabet::UnicodeMappableAlphabet(std::string alphabetName,
     13UnicodeMappableAlphabet::UnicodeMappableAlphabet(const std::string alphabetName,
    1414                                                 unsigned unicodeCommon,
    15                                                  std::vector <UCD::codepoint_t> aboveCommon) :
    16     Alphabet(alphabetName, ClassTypeId::UnicodeMappableAlphabet),
    17     mUnicodeCommon(unicodeCommon),
    18     mAboveCommon(aboveCommon) {}
     15                                                 std::vector <UCD::codepoint_t> aboveCommon)
     16: Alphabet(std::move(alphabetName), ClassTypeId::UnicodeMappableAlphabet),
     17mUnicodeCommon(unicodeCommon),
     18mAboveCommon(std::move(aboveCommon)) {
     19
     20}
    1921
    2022UCD::codepoint_t UnicodeMappableAlphabet::toUnicode(const unsigned n) const {
     
    3436}
    3537
    36 CodeUnitAlphabet::CodeUnitAlphabet(std::string alphabetName, uint8_t bits) :
    37     Alphabet(alphabetName, ClassTypeId::CodeUnitAlphabet), mCodeUnitBits(bits) {}
     38CodeUnitAlphabet::CodeUnitAlphabet(const std::string alphabetName, uint8_t bits) :
     39Alphabet(std::move(alphabetName), ClassTypeId::CodeUnitAlphabet)
     40, mCodeUnitBits(bits) {
     41
     42}
    3843
    3944const UnicodeMappableAlphabet Unicode("Unicode", UCD::UNICODE_MAX, {});
Note: See TracChangeset for help on using the changeset viewer.