Ignore:
Timestamp:
Mar 4, 2018, 4:46:25 PM (15 months ago)
Author:
cameron
Message:

BitByteGrepKernel? initial check-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/grep_kernel.h

    r5881 r5889  
    5252};
    5353
     54struct ByteBitGrepSignature {
     55    ByteBitGrepSignature(re::RE * prefix, re::RE * suffix);
     56protected:
     57    re::RE * const  mPrefixRE;
     58    re::RE * const  mSuffixRE;
     59    std::string     mSignature;
     60};
     61
     62   
     63class ByteBitGrepKernel : public ByteBitGrepSignature, public pablo::PabloKernel {
     64public:
     65    ByteBitGrepKernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, re::RE * const prefix, re::RE * const suffix, std::vector<std::string> externals = {});
     66    std::string makeSignature(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
     67    bool isCachable() const override { return true; }
     68protected:
     69    void generatePabloMethod() override;
     70    std::vector<std::string> mExternals;
     71};
     72
    5473class MatchedLinesKernel : public pablo::PabloKernel {
    5574public:
Note: See TracChangeset for help on using the changeset viewer.