Ignore:
Timestamp:
Oct 21, 2017, 9:13:48 PM (20 months ago)
Author:
cameron
Message:

Further refinement of grep engine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.h

    r5703 r5704  
    77#define GREP_ENGINE_H
    88#include <grep_interface.h>
     9#include <kernels/streamset.h>
    910#include <toolchain/grep_pipeline.h>
    1011#include <string>       // for string
     
    3334   
    3435protected:
     36    std::pair<parabix::StreamSetBuffer *, parabix::StreamSetBuffer *> grepPipeline(std::vector<re::RE *> & REs, parabix::StreamSetBuffer * ByteStream);
     37
    3538    static void * DoGrepThreadFunction(void *args);
    36     virtual uint64_t doGrep(const std::string & fileName, const uint32_t fileIdx) = 0;
     39    virtual uint64_t doGrep(const std::string & fileName, const uint32_t fileIdx);
    3740    std::string linePrefix(std::string fileName);
    3841    int32_t openFile(const std::string & fileName, std::stringstream & msgstrm);
     
    4851    std::mutex count_mutex;
    4952    size_t fileCount;
     53    bool mMoveMatchesToEOL;
    5054};
    5155
     
    7074private:
    7175    uint64_t doGrep(const std::string & fileName, const uint32_t fileIdx) override;
    72     unsigned mRequiredCount;       
     76    unsigned mRequiredCount;
    7377};
    74    
     78
     79class QuietModeEngine : public GrepEngine {
     80public:
     81    QuietModeEngine();
     82};
     83
    7584}
    7685
Note: See TracChangeset for help on using the changeset viewer.