source: icGREP/icgrep-devel/icgrep/grep_engine.h @ 5679

Last change on this file since 5679 was 5679, checked in by cameron, 19 months ago

Refactoring progress: \N uses name property; delay resolution of recursive property expressions, property object regexp support

File size: 1.3 KB
RevLine 
[4324]1/*
[5476]2 *  Copyright (c) 2017 International Characters.
[4324]3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
[5476]6#ifndef GREP_ENGINE_H
7#define GREP_ENGINE_H
8#include <grep_interface.h>
[5267]9#include <grep_type.h>  // for GrepType, GrepType::Normal
10#include <string>       // for string
11#include <vector>
[5620]12#include <re/re_parser.h>
13#include <re/re_multiplex.h>
[5464]14
[5267]15namespace re { class CC; }
16namespace re { class RE; }
[5473]17namespace llvm { namespace cl { class OptionCategory; } }
[5474]18class Driver;
[4324]19
[5474]20
[5473]21namespace grep {
22
[5484]23// Thread function only.
24void *DoGrepThreadFunction(void *args);
25   
[5406]26class GrepEngine {
[4659]27public:
[4324]28
[5240]29    GrepEngine();
[5401]30
[5474]31
32    ~GrepEngine();
33
[5481]34    void grepCodeGen(std::vector<re::RE *> REs, GrepModeType grepMode, bool UTF_16, GrepSource grepSource);
[5398]35
[5473]36    void grepCodeGen_nvptx(std::vector<re::RE *> REs, GrepModeType grepMode, bool UTF_16);
[5377]37
[5550]38    void doGrep(const std::string & fileName, std::string & PTXFilename) const;
[5548]39   
[5484]40    uint64_t doGrep(const std::string & fileName, const uint32_t fileIdx) const;
[5458]41
[5419]42    uint64_t doGrep(const int32_t fileDescriptor, const uint32_t fileIdx) const;
[5481]43       
[4324]44private:
[4939]45   
[5474]46    Driver * mGrepDriver;
[4324]47};
48
[5481]49void initFileResult(std::vector<std::string> filenames);
50   
[5484]51void PrintResults();
[5481]52   
[5473]53}
[5033]54
[4324]55#endif
Note: See TracBrowser for help on using the repository browser.