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

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

FileSink? uses MultiBlockKernel?

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