vt::util::json::DecompressionInputContainer struct

Decompression container for traversing compressed data and passing it to the JSON reader through the InputIterator.

Public types

struct AnyStreamTag
Tag type for non-file constructor.
template<typename StreamT>
using DecompressorStreamType = compress::Decompressor<StreamT>
using DecompressorType = compress::DecompressorBase

Constructors, destructors, conversion operators

DecompressionInputContainer(std::string const& filename, std::size_t in_chunk_size = 1<<16) explicit
Construct with filename to read.
template<typename StreamLike>
DecompressionInputContainer(AnyStreamTag, StreamLike stream, std::size_t in_chunk_size = 1<<16) explicit
Construct with anything that resembles a stream.

Public functions

auto advance() const -> bool
Advance by one.
auto getCurrent() const -> char const &
Get the current char.

Function documentation

vt::util::json::DecompressionInputContainer::DecompressionInputContainer(std::string const& filename, std::size_t in_chunk_size = 1<<16) explicit

Construct with filename to read.

Parameters
filename in the filename
in_chunk_size in the chunk size to read in increments

template<typename StreamLike>
vt::util::json::DecompressionInputContainer::DecompressionInputContainer(AnyStreamTag, StreamLike stream, std::size_t in_chunk_size = 1<<16) explicit

Construct with anything that resembles a stream.

Parameters
stream in the stream
in_chunk_size in the chunk size to read in increments

bool vt::util::json::DecompressionInputContainer::advance() const

Advance by one.

Returns whether it was successful (otherwise, EOF)

char const & vt::util::json::DecompressionInputContainer::getCurrent() const

Get the current char.

Returns the current char