]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 | <HTML> | |
3 | <HEAD> | |
4 | <TITLE>DualUseFilter</TITLE> | |
5 | <LINK REL="stylesheet" HREF="../../../../boost.css"> | |
6 | <LINK REL="stylesheet" HREF="../theme/iostreams.css"> | |
7 | </HEAD> | |
8 | <BODY> | |
9 | ||
10 | <!-- Begin Banner --> | |
11 | ||
12 | <H1 CLASS="title">DualUseFilter</H1> | |
13 | <HR CLASS="banner"> | |
14 | ||
15 | <!-- End Banner --> | |
16 | ||
17 | <H2>Description</H2> | |
18 | ||
19 | <P> | |
20 | A DualUseFilter is a Filter which can act as an <A HREF="input_filter.html">InputFilter</A> or as an <A HREF="output_filter.html">OutputFilter</A>, but not as both simultaneously. | |
21 | </P> | |
22 | <P> | |
23 | DualUseFilters help reduce the number of different Filter types required to implement a particlar filtering algorithm. For example, by implementing <A HREF="../classes/regex_filter.html"><CODE>basic_regex_filter</CODE></A> as a DualUseFilter, the Iostreams library avoids having to define separate templates <CODE>basic_regex_input_filter</CODE> and <CODE>basic_regex_output_filter</CODE>. | |
24 | </P> | |
25 | ||
26 | <H2>Refinement of</H2> | |
27 | ||
28 | <P><A HREF="input_filter.html">InputFilter</A>, <A HREF="output_filter.html">OutputFilter</A>.</P> | |
29 | ||
30 | <H2>Associated Types</H2> | |
31 | ||
32 | <TABLE CELLPADDING="5" BORDER="1"> | |
33 | <TR><TD>Character type</TD><TD>The type of the characters in the filtered sequences</TD></TR> | |
34 | <TR> | |
35 | <TD>Category</TD> | |
36 | <TD> | |
37 | A type convertible to <A HREF="../guide/traits.html#category_tags"><CODE>filter_tag</CODE></A> and to <A HREF="../guide/modes.html#mode_tags"><CODE>dual_use</CODE></A> | |
38 | </TD> | |
39 | </TR> | |
40 | <TR> | |
41 | <TD>Mode</TD> | |
42 | <TD> | |
43 | The unique <I>most-derived</I> <A HREF="../guide/modes.html#mode_tags">mode tag</A> to which Category is convertible | |
44 | </TD> | |
45 | </TR> | |
46 | </TABLE> | |
47 | ||
48 | <H2>Valid Expressions / Semantics</H2> | |
49 | ||
50 | Same as <A HREF="bidirectional_filter.html">BidirectionalFilter</A>. | |
51 | ||
52 | <H2>Exceptions</H2> | |
53 | ||
54 | Same as <A HREF="bidirectional_filter.html">BidirectionalFilter</A>. | |
55 | ||
56 | <H2>Models</H2> | |
57 | ||
58 | <UL> | |
59 | <LI>The <A HREF="../guide/text_processing.html">Text Processing Filters</A>. | |
60 | <LI>The compression and decompression filters, except for <A HREF="../classes/gzip.html#basic_gzip_decompressor"><CODE>basic_gzip_decompressor</CODE></A>. | |
61 | </UL> | |
62 | ||
63 | <!-- Begin Footer --> | |
64 | ||
65 | <HR> | |
66 | ||
67 | <P CLASS="copyright">© Copyright 2008 <a href="http://www.coderage.com/" target="_top">CodeRage, LLC</a><br/>© Copyright 2004-2007 <a href="http://www.coderage.com/turkanis/" target="_top">Jonathan Turkanis</a></P> | |
68 | <P CLASS="copyright"> | |
69 | Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <A HREF="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>) | |
70 | </P> | |
71 | ||
72 | <!-- End Footer --> | |
73 | ||
74 | </BODY> |