• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Struct location</title>
5<link rel="stylesheet" href="../../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../index.html" title="Boost.Test">
8<link rel="up" href="../execution_exception.html#idm46175619963632" title="Description">
9<link rel="prev" href="../execution_exception.html" title="Class execution_exception">
10<link rel="next" href="error_code.html" title="Type error_code">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="../execution_exception.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../execution_exception.html#idm46175619963632"><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="error_code.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="refentry">
26<a name="boost.execution_exception.location"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Struct location</span></h2>
29<p>boost::execution_exception::location — Simple model for the location of failure in a source code. </p>
30</div>
31<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32<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="../../header/boost/test/execution_monitor_hpp.html" title="Header &lt;boost/test/execution_monitor.hpp&gt;">boost/test/execution_monitor.hpp</a>&gt;
33
34</span>
35
36<span class="comment">// Simple model for the location of failure in a source code.</span>
37
38<span class="keyword">struct</span> <a class="link" href="location.html" title="Struct location">location</a> <span class="special">{</span>
39  <span class="comment">// <a class="link" href="location.html#boost.execution_exception.locationconstruct-copy-destruct">construct/copy/destruct</a></span>
40  <span class="keyword">explicit</span> <a class="link" href="location.html#idm45267287768896-bb"><span class="identifier">location</span></a><span class="special">(</span><span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">size_t</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
41  <span class="keyword">explicit</span> <a class="link" href="location.html#idm45267287765408-bb"><span class="identifier">location</span></a><span class="special">(</span><span class="identifier">const_string</span><span class="special">,</span> <span class="identifier">size_t</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
42
43  <span class="comment">// public data members</span>
44  <span class="identifier">const_string</span> <span class="identifier">m_file_name</span><span class="special">;</span>  <span class="comment">// File name. </span>
45  <span class="identifier">size_t</span> <span class="identifier">m_line_num</span><span class="special">;</span>  <span class="comment">// Line number. </span>
46  <span class="identifier">const_string</span> <span class="identifier">m_function</span><span class="special">;</span>  <span class="comment">// Function name. </span>
47<span class="special">}</span><span class="special">;</span></pre></div>
48<div class="refsect1">
49<a name="idm46175619904128"></a><h2>Description</h2>
50<div class="refsect2">
51<a name="idm46175619903712"></a><h3>
52<a name="boost.execution_exception.locationconstruct-copy-destruct"></a><code class="computeroutput">location</code>
53        public
54       construct/copy/destruct</h3>
55<div class="orderedlist"><ol class="orderedlist" type="1">
56<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="idm45267287768896-bb"></a><span class="identifier">location</span><span class="special">(</span><span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> file_name <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">size_t</span> line_num <span class="special">=</span> <span class="number">0</span><span class="special">,</span>
57                  <span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> func <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre></li>
58<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="idm45267287765408-bb"></a><span class="identifier">location</span><span class="special">(</span><span class="identifier">const_string</span> file_name<span class="special">,</span> <span class="identifier">size_t</span> line_num <span class="special">=</span> <span class="number">0</span><span class="special">,</span>
59                  <span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> func <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre></li>
60</ol></div>
61</div>
62</div>
63</div>
64<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
65<td align="left"></td>
66<td align="right"><div class="copyright-footer">Copyright © 2001-2020 Boost.Test contributors<p>
67        Distributed under the Boost Software License, Version 1.0. (See accompanying
68        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
69      </p>
70</div></td>
71</tr></table>
72<hr>
73<div class="spirit-nav">
74<a accesskey="p" href="../execution_exception.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../execution_exception.html#idm46175619963632"><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="error_code.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
75</div>
76</body>
77</html>
78