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

isa and dyn_cast for Alphabets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/multiplex_CCs.h

    r5799 r5800  
    1616public:
    1717    MultiplexedAlphabet(std::string alphabetName, const std::vector<const re::CC *> CCs);
    18    
    19     const Alphabet * getSourceAlphabet();
     18    static inline bool classof(const Alphabet * a) {
     19        return a->getClassTypeId() == ClassTypeId::MultiplexedAlphabet;
     20    }
     21    static inline bool classof(const void *) {return false;}
     22
     23    const Alphabet * getSourceAlphabet() const;
    2024   
    2125    std::vector<std::vector<unsigned>> getExclusiveSetIDs();
Note: See TracChangeset for help on using the changeset viewer.