Ignore:
Timestamp:
Sep 16, 2016, 7:47:01 PM (3 years ago)
Author:
cameron
Message:

Support for enumeration basis sets

File:
1 edited

Legend:

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

    r5158 r5159  
    7272
    7373    EnumeratedPropertyObject(UCD::property_t p,
     74                             const unsigned independent_enums,
    7475                             const std::vector<std::string> & enum_names,
    7576                             const std::vector<std::string> & names,
     
    7778                             std::vector<const UnicodeSet *> && sets)
    7879    : PropertyObject(p, ClassTypeId::EnumeratedProperty)
     80    , independent_enum_count(independent_enums)
    7981    , property_value_enum_names(enum_names)
    8082    , property_value_full_names(names)
     
    8890    const UnicodeSet & GetCodepointSet(const std::string & value_spec);
    8991    const UnicodeSet & GetCodepointSet(const int property_enum_val) const;
    90     std::vector<UnicodeSet *> GetEnumerationBasisSets();
     92    std::vector<UnicodeSet> & GetEnumerationBasisSets();
    9193    const std::string & GetValueEnumName(const int property_enum_val) const {return property_value_enum_names[property_enum_val]; }
    9294    const std::string & GetValueFullName(const int property_enum_val) const {return property_value_full_names[property_enum_val]; }
     
    101103
    102104private:
     105    const unsigned independent_enum_count;
    103106    const std::vector<std::string> & property_value_enum_names;  // never changes
    104107    const std::vector<std::string> & property_value_full_names;  // never changes
     
    106109    bool uninitialized; // full names must be added dynamically.
    107110    const std::vector<const UnicodeSet *> property_value_sets;
     111    std::vector<UnicodeSet> enumeration_basis_sets;
    108112};
    109113
Note: See TracChangeset for help on using the changeset viewer.