Ignore:
Timestamp:
Jul 11, 2017, 1:57:37 PM (23 months ago)
Author:
cameron
Message:

Factor out required streams into a separate kernel

File:
1 edited

Legend:

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

    r5548 r5561  
    1818    std::string     mSignature;
    1919};
     20
     21
     22   
     23class RequiredStreams_UTF8 : public pablo::PabloKernel {
     24public:
     25    RequiredStreams_UTF8(const std::unique_ptr<kernel::KernelBuilder> & kb);
     26    bool isCachable() const override { return true; }
     27    bool hasSignature() const override { return false; }
     28protected:
     29    void generatePabloMethod() override;
     30};
     31
     32class RequiredStreams_UTF16 : public pablo::PabloKernel {
     33public:
     34    RequiredStreams_UTF16(const std::unique_ptr<kernel::KernelBuilder> & kb);
     35    bool isCachable() const override { return true; }
     36    bool hasSignature() const override { return false; }
     37protected:
     38    void generatePabloMethod() override;
     39};
     40
    2041
    2142class ICGrepKernel : public RegularExpressionOptimizer, public pablo::PabloKernel {
Note: See TracChangeset for help on using the changeset viewer.