Na endlich :/

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@884 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-05-28 16:23:17 +00:00
parent 4051af860e
commit fb89ad3864
10 changed files with 84 additions and 76 deletions
+18 -8
View File
@@ -11,18 +11,28 @@ using DTOUT = double;
class TestBlock : public Block
{
public:
TestBlock(size_t bufSize)
: Block(1, 1, DType::Double, DType::Double)
, m_buf_in(bufSize)
{
TestBlock(size_t bufSize)
: Block(1, 1, DType::Double, DType::Double)
, m_buf_in(bufSize)
{
}
virtual ~TestBlock() = default;
}
virtual ~TestBlock() = default;
void process(IBuffer &in, IBuffer &out) override;
void process() override
{
Buffer<DTOUT> *buf_out = dynamic_cast<Buffer<DTOUT>*>(m_buf_out);
process(m_buf_in, *buf_out);
}
void process(Buffer<DTIN> &in, Buffer<DTOUT> &out);
IBuffer* buffer()
{
return &m_buf_in;
}
private:
Buffer<DTIN> m_buf_in;
Buffer<DTIN> m_buf_in;
};
#endif