source: icGREP/icgrep-devel/icgrep/kernels/linebreak_kernel.h @ 5859

Last change on this file since 5859 was 5859, checked in by cameron, 16 months ago

Bug fix for DirectCC

File size: 1021 bytes
Line 
1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef LINEBREAK_KERNEL_H
6#define LINEBREAK_KERNEL_H
7
8#include <pablo/pablo_kernel.h>  // for PabloKernel
9
10namespace kernel { class KernelBuilder; }
11
12namespace kernel {
13//#define USE_DIRECT_LF_BUILDER
14
15class LineFeedKernelBuilder final : public pablo::PabloKernel {
16public:
17    LineFeedKernelBuilder(const std::unique_ptr<KernelBuilder> & b, unsigned codeUnitWidth = 8);
18    bool isCachable() const override { return true; }
19    bool hasSignature() const override { return false; }
20protected:
21    void generatePabloMethod() override;
22};
23
24
25class LineBreakKernelBuilder final : public pablo::PabloKernel {
26public:
27    LineBreakKernelBuilder(const std::unique_ptr<KernelBuilder> & b, unsigned basisBitsCount);
28    bool isCachable() const override { return true; }
29    bool hasSignature() const override { return false; }
30protected:
31    void generatePabloMethod() override;
32};
33
34}
35#endif
Note: See TracBrowser for help on using the repository browser.