Ignore:
Timestamp:
Oct 5, 2017, 1:21:22 PM (21 months ago)
Author:
cameron
Message:

Numeric Property Support and missing SpecialCasing?.h file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/UCD/PropertyObjects.h

    r5668 r5670  
    193193    }
    194194   
    195     NumericPropertyObject(property_t p, ClassTypeId)
    196     : PropertyObject(p, ClassTypeId::NumericProperty) {
     195    NumericPropertyObject(UCD::property_t p, UnicodeSet NaN_Set, const char * string_buffer, unsigned bufsize, const std::vector<UCD::codepoint_t> & cps)
     196    : PropertyObject(p, ClassTypeId::NumericProperty)
     197    , mNaNCodepointSet(NaN_Set)
     198    , mStringBuffer(string_buffer)
     199    , mBufSize(bufsize)
     200    , mExplicitCps(cps)
     201    {
    197202       
    198203    }
     204    const UnicodeSet GetCodepointSet(const std::string & numeric_spec) override;
     205
     206private:
     207    UnicodeSet mNaNCodepointSet;  // codepoints for which the property value is NaN (not a number).
     208    const char * mStringBuffer;  // buffer holding all string values for other codepoints, in sorted order.
     209    unsigned mBufSize;
     210    const std::vector<UCD::codepoint_t> & mExplicitCps;
    199211};
    200212
Note: See TracChangeset for help on using the changeset viewer.