source: icGREP/icgrep-devel/icgrep/kernels/grep_kernel.h @ 5404

Last change on this file since 5404 was 5404, checked in by cameron, 2 years ago

Grep kernels with signatures and object caching

File size: 835 bytes
Line 
1/*
2 *  Copyright (c) 2017 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef GREP_KERNEL_H
6#define GREP_KERNEL_H
7
8#include <pablo/pablo_kernel.h>  // for PabloKernel
9#include "kernel.h"              // for KernelBuilder
10#include <re/re_re.h>
11#include <vector>                // for vector
12#include <string>                // for string
13namespace IDISA { class IDISA_Builder; }
14
15namespace kernel {
16
17class ICgrepKernelBuilder: public pablo::PabloKernel {
18public:
19    ICgrepKernelBuilder(IDISA::IDISA_Builder * iBuilder, re::RE * re_ast, bool CountOnly = false);
20   
21    std::string generateKernelSignature(std::string moduleId) override;
22   
23    void prepareKernel() override;
24
25private:
26    bool mCountOnly;
27    re::RE * mRE;
28    std::string mSignature;
29};
30
31}
32#endif
Note: See TracBrowser for help on using the repository browser.