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

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

Test case for compileCCfromCodeUnitStream using DirectLineFeedBuilder?

File size: 1.3 KB
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
14class DirectLineFeedBuilder final : public pablo::PabloKernel {
15public:
16    DirectLineFeedBuilder(const std::unique_ptr<KernelBuilder> & b);
17    bool isCachable() const override { return true; }
18    bool hasSignature() const override { return false; }
19protected:
20    void generatePabloMethod() override;
21};
22
23
24class LineFeedKernelBuilder final : public pablo::PabloKernel {
25public:
26    LineFeedKernelBuilder(const std::unique_ptr<KernelBuilder> & b, unsigned basisBitsCount);
27    bool isCachable() const override { return true; }
28    bool hasSignature() const override { return false; }
29protected:
30    void generatePabloMethod() override;
31};
32
33
34class LineBreakKernelBuilder final : public pablo::PabloKernel {
35public:
36    LineBreakKernelBuilder(const std::unique_ptr<KernelBuilder> & b, unsigned basisBitsCount);
37    bool isCachable() const override { return true; }
38    bool hasSignature() const override { return false; }
39protected:
40    void generatePabloMethod() override;
41};
42
43}
44#endif
Note: See TracBrowser for help on using the repository browser.