3 namespace tdc {
namespace io {
5 class InputViewInternal {
6 InputAllocChunkHandle m_handle;
8 friend class InputView;
11 inline InputViewInternal(
const InputViewInternal& other) =
delete;
12 inline InputViewInternal() =
delete;
14 inline InputViewInternal(InputViewInternal&& s):
15 m_handle(
std::move(s.m_handle)) {}
17 inline InputViewInternal(
const InputAllocChunkHandle& handle):
20 inline ~InputViewInternal() {
21 unregister_alloc_chunk_handle(m_handle);
32 inline InputView(InputViewInternal&& mem):
33 InputViewInternal(
std::move(mem)),
34 View(m_handle->view()) {}
38 InputViewInternal(
std::move(mem)),
48 inline InputView Input::Variant::as_view()
const {
50 alloc().find_or_construct(source(), from(), to(), restrictions())
55 return o << (static_cast<const View&>(iv));
Contains the text compression and encoding framework.
io::Input Input
Convenience shortcut to io::Input.
A const view into a slice of memory.
std::ostream & operator<<(std::ostream &o, const InputRestrictions &v)