diff options
Diffstat (limited to 'vbench/src/vbench/core/stream.h')
-rw-r--r-- | vbench/src/vbench/core/stream.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vbench/src/vbench/core/stream.h b/vbench/src/vbench/core/stream.h new file mode 100644 index 00000000000..8a678647e6f --- /dev/null +++ b/vbench/src/vbench/core/stream.h @@ -0,0 +1,25 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#pragma once + +#include "input.h" +#include "output.h" +#include "taintable.h" +#include <memory> + +namespace vbench { + +/** + * A Stream is an abstract taintable entity that can act as both input + * and output. + **/ +struct Stream : public Input, + public Output, + public Taintable +{ + typedef std::unique_ptr<Stream> UP; + virtual bool eof() const = 0; +}; + +} // namespace vbench + |