Imported Upstream version 1.72.0
[platform/upstream/boost.git] / doc / html / boost / process / basic_native_environment / const_entry_type.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5 <title>Struct template const_entry_type</title>
6 <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
7 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8 <link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9 <link rel="up" href="../basic_native_environment.html#id-1.3.31.9.9.4.4" title="Description">
10 <link rel="prev" href="../basic_native_environment.html" title="Class template basic_native_environment">
11 <link rel="next" href="entry_type.html" title="Struct template entry_type">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table cellpadding="2" width="100%"><tr>
15 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
16 <td align="center"><a href="../../../../../index.html">Home</a></td>
17 <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
18 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20 <td align="center"><a href="../../../../../more/index.htm">More</a></td>
21 </tr></table>
22 <hr>
23 <div class="spirit-nav">
24 <a accesskey="p" href="../basic_native_environment.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_native_environment.html#id-1.3.31.9.9.4.4"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="entry_type.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
25 </div>
26 <div class="refentry">
27 <a name="boost.process.basic_native_environment.const_entry_type"></a><div class="titlepage"></div>
28 <div class="refnamediv">
29 <h2><span class="refentrytitle">Struct template const_entry_type</span></h2>
30 <p>boost::process::basic_native_environment::const_entry_type</p>
31 </div>
32 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
33 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../process/reference.html#header.boost.process.environment_hpp" title="Header &lt;boost/process/environment.hpp&gt;">boost/process/environment.hpp</a>&gt;
34
35 </span>
36 <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Char<span class="special">,</span> <span class="keyword">typename</span> Environment<span class="special">&gt;</span> 
37 <span class="keyword">struct</span> <a class="link" href="const_entry_type.html" title="Struct template const_entry_type">const_entry_type</a> <span class="special">{</span>
38   <span class="comment">// types</span>
39   <span class="keyword">typedef</span> <span class="identifier">Char</span>                             <a name="boost.process.basic_native_environment.const_entry_type.value_type"></a><span class="identifier">value_type</span><span class="special">;</span>   
40   <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">*</span>               <a name="boost.process.basic_native_environment.const_entry_type.pointer"></a><span class="identifier">pointer</span><span class="special">;</span>      
41   <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">value_type</span> <span class="special">&gt;</span>  <a name="boost.process.basic_native_environment.const_entry_type.string_type"></a><span class="identifier">string_type</span><span class="special">;</span>  
42   <span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">iterator_range</span><span class="special">&lt;</span> <span class="identifier">pointer</span> <span class="special">&gt;</span> <a name="boost.process.basic_native_environment.const_entry_type.range"></a><span class="identifier">range</span><span class="special">;</span>        
43   <span class="keyword">typedef</span> <span class="identifier">Environment</span>                      <a name="boost.process.basic_native_environment.const_entry_type.environment_t"></a><span class="identifier">environment_t</span><span class="special">;</span>
44
45   <span class="comment">// <a class="link" href="const_entry_type.html#boost.process.basic_native_environment.const_entry_typeconstruct-copy-destruct">construct/copy/destruct</a></span>
46   <span class="identifier">const_entry</span> <span class="special">&amp;</span> <a class="link" href="const_entry_type.html#idm45170605035856-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">const_entry</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
47
48   <span class="comment">// <a class="link" href="const_entry_type.html#idm45170605041856-bb">public member functions</a></span>
49   <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <a class="link" href="const_entry_type.html#idm45170605041296-bb"><span class="identifier">to_vector</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
50    <a class="link" href="const_entry_type.html#idm45170605039376-bb"><span class="identifier">const_entry</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">const_entry</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
51   <span class="keyword">bool</span> <a class="link" href="const_entry_type.html#idm45170605037440-bb"><span class="identifier">empty</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
52 <span class="special">}</span><span class="special">;</span></pre></div>
53 <div class="refsect1">
54 <a name="id-1.3.31.9.9.4.4.5.4"></a><h2>Description</h2>
55 <p>Proxy class used for read access to members by [] or .at() </p>
56 <div class="note"><table border="0" summary="Note">
57 <tr>
58 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../doc/src/images/note.png"></td>
59 <th align="left">Note</th>
60 </tr>
61 <tr><td align="left" valign="top"><p>Holds a reference to the environment it was created from. </p></td></tr>
62 </table></div>
63 <p>
64 </p>
65 <div class="refsect2">
66 <a name="id-1.3.31.9.9.4.4.5.4.3"></a><h3>
67 <a name="boost.process.basic_native_environment.const_entry_typeconstruct-copy-destruct"></a><code class="computeroutput">const_entry_type</code> 
68         public
69        construct/copy/destruct</h3>
70 <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
71 <pre class="literallayout"><span class="identifier">const_entry</span> <span class="special">&amp;</span> <a name="idm45170605035856-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">const_entry</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre>Move Constructor. </li></ol></div>
72 </div>
73 <div class="refsect2">
74 <a name="id-1.3.31.9.9.4.4.5.4.4"></a><h3>
75 <a name="idm45170605041856-bb"></a><code class="computeroutput">const_entry_type</code> public member functions</h3>
76 <div class="orderedlist"><ol class="orderedlist" type="1">
77 <li class="listitem">
78 <pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <a name="idm45170605041296-bb"></a><span class="identifier">to_vector</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Split the entry by ";" or ":" and return it as a vector. Used by PATH. <p>Get the value as string. Get the name of this entry. </p>
79 </li>
80 <li class="listitem">
81 <pre class="literallayout"> <a name="idm45170605039376-bb"></a><span class="identifier">const_entry</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">const_entry</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre>Copy Constructor. </li>
82 <li class="listitem">
83 <pre class="literallayout"><span class="keyword">bool</span> <a name="idm45170605037440-bb"></a><span class="identifier">empty</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Check if the entry is empty. </li>
84 </ol></div>
85 </div>
86 </div>
87 </div>
88 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
89 <td align="left"></td>
90 <td align="right"><div class="copyright-footer">Copyright &#169; 2006-2012 Julio M. Merino Vidal, Ilya Sokolov,
91       Felipe Tanus, Jeff Flinn, Boris Schaeling<br>Copyright &#169; 2016 Klemens D. Morgenstern<p>
92         Distributed under the Boost Software License, Version 1.0. (See accompanying
93         file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
94       </p>
95 </div></td>
96 </tr></table>
97 <hr>
98 <div class="spirit-nav">
99 <a accesskey="p" href="../basic_native_environment.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_native_environment.html#id-1.3.31.9.9.4.4"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="entry_type.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
100 </div>
101 </body>
102 </html>