Ignore:
Timestamp:
Mar 8, 2018, 10:50:56 AM (16 months ago)
Author:
cameron
Message:

Restructuring: integrating grep_engine and grep_pipeline

Location:
icGREP/icgrep-devel/icgrep/grep
Files:
1 added
1 moved

Legend:

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

    r5891 r5892  
    88#include <grep_interface.h>
    99#include <kernels/streamset.h>
    10 #include <toolchain/grep_pipeline.h>
    1110#include <cc/multiplex_CCs.h>
    1211#include <string>
     
    2221
    2322namespace grep {
     23    class MatchAccumulator {
     24    public:
     25        MatchAccumulator() {}
     26        virtual void accumulate_match(const size_t lineNum, char * line_start, char * line_end) = 0;
     27        virtual void finalize_match(char * buffer_end) {}  // default: no op
     28    };
     29   
     30    void accumulate_match_wrapper(intptr_t accum_addr, const size_t lineNum, char * line_start, char * line_end);
     31   
     32    void finalize_match_wrapper(intptr_t accum_addr, char * buffer_end);
     33   
     34    void grepBuffer(re::RE * pattern, const char * buffer, size_t bufferLength, MatchAccumulator * accum);
    2435
    2536class GrepEngine {
Note: See TracChangeset for help on using the changeset viewer.