source: icGREP/icgrep-devel/icgrep/kernels/stdout_kernel.h @ 5441

Last change on this file since 5441 was 5441, checked in by cameron, 2 years ago

Reimplement StdoutKernel? using MultiBlockKernel?

File size: 1003 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 STDOUT_KERNEL_H
6#define STDOUT_KERNEL_H
7
8#include "kernel.h"
9
10namespace IDISA { class IDISA_Builder; }
11
12namespace kernel {
13
14class StdOutKernel final : public MultiBlockKernel {
15public:
16    StdOutKernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, unsigned codeUnitWidth);
17private:
18    void generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & iBuilder) override;
19private:
20    const unsigned mCodeUnitWidth;
21   
22};
23
24
25class FileSink final : public SegmentOrientedKernel {
26public: 
27    FileSink(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, unsigned codeUnitWidth);
28protected:
29    void generateInitializeMethod(const std::unique_ptr<KernelBuilder> & iBuilder) override;
30    void generateDoSegmentMethod(const std::unique_ptr<KernelBuilder> & iBuilder) override;
31private:
32    const unsigned mCodeUnitWidth;
33   
34};
35}
36
37
38
39#endif
Note: See TracBrowser for help on using the repository browser.