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

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

FileSink? uses MultiBlockKernel?

File size: 997 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
24class FileSink final : public MultiBlockKernel {
25public: 
26    FileSink(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, unsigned codeUnitWidth);
27protected:
28    void generateInitializeMethod(const std::unique_ptr<KernelBuilder> & iBuilder) override;
29    void generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & iBuilder) override;
30private:
31    const unsigned mCodeUnitWidth;
32   
33};
34}
35
36
37
38#endif
Note: See TracBrowser for help on using the repository browser.