1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
5 <LINK REL=
"stylesheet" HREF=
"../../../../boost.css">
6 <LINK REL=
"stylesheet" HREF=
"../theme/iostreams.css">
12 <H1 CLASS=
"title">Direct
</H1>
20 A Device is Direct if it provides access to its controlled sequences as in-memory arrays rather than
<I>via
</I> a socket-like interface. The difference between a Device which is Direct and one which is not is reflected in the specifications of the various Device refinements,
<I>e.g.
</I>,
<A HREF=
"source.html">Source
</A> and
<A HREF=
"sink.html">Sink
</A>.
</P>
24 A model of
<A HREF=
"device.html">Device
</A> which does not model Direct is called
<SPAN CLASS=
"term">indirect
</SPAN>.
27 <H2>Refinement of
</H2>
29 <P><A HREF=
"device.html">Device
</A>.
</P>
32 <H2>Associated Types
</H2>
34 <P>Same as
<A HREF=
"device.html#types">Device
</A>, with the following additional requirements:
</P>
36 <TABLE CELLPADDING=
"5" BORDER=
"1">
37 <TR><TD>Category
</TD><TD>A type convertible to
<A HREF=
"../guide/traits.html#category_tags"><CODE>device_tag
</CODE></A> and to
<A HREF=
"../guide/traits.html#category_tags"><CODE>direct_tag
</CODE></A></TD></TR>
40 <A NAME=
"expressions"></A>
41 <H2>Valid Expressions / Semantics
</H2>
43 <P>Same as
<A HREF=
"device.html">Device
</A>.
</P>
48 <LI>The
<A HREF=
"../classes/array.html">Array Devices
</A>
49 <LI>The
<A HREF=
"../classes/mapped_file.html">Memory-Mapped File Devices
</A>
56 <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>
58 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>)