Back to Arangodb

Quick Reference

3rdParty/boost/1.78.0/libs/iostreams/doc/quick_reference.html

3.12.9.110.2 KB
Original Source

Quick Reference


Core ComponentsDevicesFiltersAlgorithmsViews


Core Components

These components form the interface between Boost.Iostreams and the standard iostreams library.

NameHeader[1]Description
streamstream.hppStream template which performs i/o using an instance of its first template parameter, which must model the concept Device. Derives from std::basic_istream, std::basic_ostream or std::basic_iostream depending on whether its first template parameter models Source, Sink or both.
stream_bufferstream_buffer.hppStream buffer template which performs i/o using an instance of its first template parameter, which must model the concept Device.
filtering_streamfiltering_stream.hppStream template which performs filtered i/o using a contained chain. Derives from std::basic_istream, std::basic_ostream or std::basic_iostream depending on its mode, which is specified as its first template parameter.
filtering_streambuffiltering_streambuf.hppStream buffer template which performs filtered i/o using a contained chain.
chainchain.hppSequence of zero or more Filters, followed by an optional Device, accessed with a stack-like interface. Used by filtering_stream and filtering_streambuf.
code_convertercode_converter.hppDevice adapter which takes a narrow-character Device and produces a wide-character Device by introducing a layer of code conversion.

Devices

DeviceHeader[2]Description
basic_array_source,
basic_array_sink,
basic_arrayarray.hppAccesses a in-memory character sequence.
back_insert_deviceback_inserter.hppAppends to an STL sequence.
basic_file_source,
basic_file_sink,
basic_filefile.hppAccesses the filesystem using a std::basic_filebuf.
basic_null_sourcenull.hppReads characters from an empty sequence.
basic_null_sinkConsumes and ignores characters.
file_descriptor_source,
file_descriptor_sink,
file_descriptorfile_descriptor.hppAccesses the filesystem using an operating system file descriptor or file handle.
mapped_file_source,
mapped_file_sink,
mapped_filemapped_file.hppAccesses a memory-mapped file.

Filters

CategoryFilterHeader[3]Description
Compressionbasic_bzip2_compressor,
basic_bzip2_decompressorbzip2.hppPerform compression and decompression using the libbzip2 data compression library ([Seward]).
basic_gzip_compressor,
basic_gzip_decompressorgzip.hppPerform compression and decompression based on the the GZIP format ([Deutsch3]).
basic_zlib_compressor,
basic_zlib_decompressorzlib.hppPerform compression and decompression using the zlib data compression library ([Gailly]).
Textbasic_countercounter.hppMaintains a character and line count.
basic_regex_filterregex.hppPerforms text substitutions using regular expressions from the Boost Regular Expression Library.
basic_grep_filtergrep.hppFilters character sequences line by line using regular expressions from the Boost Regular Expression Library.
newline_checkernewline.hppVerifies that a character sequence conforms to a given line-ending convention.
newline_filterConverts between the line-ending conventions used by various operating systems.
Helpersbasic_line_filterline.hppFilters a character sequence one line at a time.
basic_stdio_filterstdio.hppFilters by reading from standard input and writing to standard output.
aggregate_filteraggregate.hppFilters an entire character sequence at once.
symmetric_filtersymmetric.hppFilters using a model of SymmetricFilter.

Algorithms

AlgorithmHeaderDescription
copyboost/iostreams/copy.hpp

Reads characters from a Source and writes them to a Sink until the end of stream is reached; returns the number of characters written.

|

Views

Each view consists of one or more class templates together with an object generator. See Views.

Object GeneratorView TemplateHeader[1]Description
combinecombinationcombine.hppTakes a pair of Filters or Devices and yields a filter or device which performs input using the first component and output using the second.
composecompositecompose.hppTakes a Filter and either a second Filter or a Device and yields a Filter or Device whose output flows through the two components in order and whose input flows flows through the two components in reverse order.
invertinverseinvert.hppTakes a Filter and yields a Filter that performs the same filtering algorithm but is an OutputFilter if the given component is an InputFilter, and an InputFilter otherwise.
restrict
slicerestrictionrestrict.hpp
slice.hppTakes a Filter or Device together with a stream offset and an optional length and yields a Filter or Device for accessing the specifed subquence of the given component
teetee_devicetee.hppTakes a pair of Sinks and yields a Sink which sends all incoming data to both of the given Sinks.
tee_filterTakes a Filter and a Sink and yields a Filter which sends all outgoing data to the Sink in addition to passing it downsteam.

Notes

[1]Pathnames should be interpreted relative to the directory boost/iostreams.

[2]Pathnames should be interpreted relative to the directory boost/iostreams/device.

[3]Pathnames should be interpreted relative to the directory boost/iostreams/filter.

© Copyright 2008 CodeRage, LLC
© Copyright 2004-2007 Jonathan Turkanis
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)