Artifact Content
Not logged in

Artifact 91f9ae70f42b384330add77b500d075c7cc46bc9:


<!-- ns-3 doxygen header, based on
     HTML header for doxygen 1.8.3.1
     Verified compatible with 1.8.6
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>ns-3: src/core/examples/test-string-value-formatting.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="ns3_stylesheet.css" rel="stylesheet" type="text/css"/>
    <link href="favicon.ico" rel="shortcut icon" type="image/ico"></link>
    <script type="text/javascript" src="drop-down-menu.js"></script>
    <script type="text/javascript" src="ns3_version.js"></script>
    <script type="text/javascript" src="ns3_links.js"></script>
  </head>
<body>
    <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
      <div id="titlearea">
	<table cellspacing="0" cellpadding="0" width="100%">
	  <tbody>
	    <tr style="height: 56px;">
	      <td id="projectlogo">
		<a id="ns3_home1"
		  href="../index.html">
		  <img alt="ns-3 Logo"
		    src="ns-3-inverted-notext-small.png"/>
		</a>
	      </td>
	      <td id="projecttext">
		<div id="projectbrief">A Discrete-Event Network Simulator</div>
		<span id="projectnumber"><script type="text/javascript">document.write(ns3_version)</script></span>
	      </td>
	      <td id="ns3-menu">
		<div class="menu">
		  <ul >
		    <li><a id="ns3_home2"
			href="../index.html"
			>&nbsp;&nbsp;Home</a>
		    </li>
		    <li><span
			onmouseover="mopen('mTuts')" 
			onmouseout="mclosetime()"
			>Tutorials &nbsp;&#x25BC;</span>
		      <div id="mTuts" 
		        onmouseover="mcancelclosetime()" 
		        onmouseout="mclosetime()">
			<a id="ns3_tut"
			  href="../docs/tutorial/html/index.html"
			  >English</a><br/>
			<a id="ns3_ptbr"
			    href="../docs/tutorial-pt-br/html/index.html"
			    >Portuguese</a><br/>
		    </li>
		    <li><span
			onmouseover="mopen('mDocs')" 
			onmouseout="mclosetime()"
			>Docs &nbsp;&nbsp;&nbsp;&#x25BC;</span>
		      <div id="mDocs"
		        onmouseover="mcancelclosetime()" 
		        onmouseout="mclosetime()">
			<a id="ns3_wiki"
			  href="../wiki.1.html"
			  >Wiki</a><br/>
			<a id="ns3_man"
			    href="../docs/manual/html/index.html"
			    >Manual</a><br/>
			<a id="ns3_mod"
			   href="../docs/models/html/index.html"
			   >Models</a><br/>
		    </li>
		    <li><span
			onmouseover="mopen('mDev')" 
			onmouseout="mclosetime()"
			>Develop &#x25BC;</span>
		      <div id="mDev"
		        onmouseover="mcancelclosetime()" 
		        onmouseout="mclosetime()">
			<a id="ns3_api"
			   href="../docs/doxygen/index.html"
			   >API</a><br/>
			<a id="ns3_bugs"
			   href="../bugzilla/index.html">Bugs</a>
		    </li>
		  </ul>
		</div>
	      </td>
	      <td id="projectsection">
		<span style="margin-right:10px">API</span>
	      </td>
	    </tr>
	  </tbody>
	</table>
	<script  type="text/javascript">ns3_write_links();</script>
      </div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('test-string-value-formatting_8cc_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">test-string-value-formatting.cc</div>  </div>
</div><!--header-->
<div class="contents">
<a href="test-string-value-formatting_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -*- Mode:C++; c-file-style:&quot;gnu&quot;; indent-tabs-mode:nil; -*- */</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (c) 2016 Tom Henderson</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License version 2 as</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * published by the Free Software Foundation;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with this program; if not, write to the Free Software</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;ns3/core-module.h&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacens3.html">ns3</a>;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<a class="code" href="group__logging.html#ga225a95395fa117b7309aa3c43518d02e">NS_LOG_COMPONENT_DEFINE</a> (<span class="stringliteral">&quot;TestStringValueFormatting&quot;</span>);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_formatting_test_object.html">   25</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_formatting_test_object.html">FormattingTestObject</a> : <span class="keyword">public</span> <a class="code" href="classns3_1_1_object.html">Object</a></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <span class="keyword">static</span> <a class="code" href="classns3_1_1_type_id.html">TypeId</a> GetTypeId (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  <a class="code" href="class_formatting_test_object.html">FormattingTestObject</a> ();</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  <a class="code" href="classns3_1_1_ptr.html">Ptr&lt;RandomVariableStream&gt;</a> GetTestVariable (<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_formatting_test_object.html#a54584305ef7459968edc8a09c1a5fc33">   32</a></span>&#160;  <a class="code" href="classns3_1_1_ptr.html">Ptr&lt;RandomVariableStream&gt;</a> <a class="code" href="class_formatting_test_object.html#a54584305ef7459968edc8a09c1a5fc33">m_testVariable</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;};</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<a class="code" href="group__object.html#gada1b0bfc04abdba718621b5095c87678">NS_OBJECT_ENSURE_REGISTERED</a> (<a class="code" href="class_formatting_test_object.html">FormattingTestObject</a>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<a class="code" href="classns3_1_1_type_id.html">TypeId</a></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_formatting_test_object.html#a8d01d15af307907b4bd8e54ee8549526">   38</a></span>&#160;<a class="code" href="class_formatting_test_object.html#a8d01d15af307907b4bd8e54ee8549526">FormattingTestObject::GetTypeId</a> (<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  <span class="keyword">static</span> <a class="code" href="classns3_1_1_type_id.html">TypeId</a> tid = <a class="code" href="classns3_1_1_type_id.html">TypeId</a> (<span class="stringliteral">&quot;ns3::FormattingTestObject&quot;</span>)</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    .<a class="code" href="classns3_1_1_type_id.html#abaaca67ab7d2471067e7c275df0f7309">SetParent</a>&lt;<a class="code" href="classns3_1_1_object.html">Object</a>&gt; ()</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    .AddConstructor&lt;FormattingTestObject&gt; ()</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    .AddAttribute (<span class="stringliteral">&quot;OnTime&quot;</span>, <span class="stringliteral">&quot;A RandomVariableStream used to pick the duration of the &#39;On&#39; state.&quot;</span>,</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                   <a class="code" href="classns3_1_1_string_value.html">StringValue</a> (<span class="stringliteral">&quot;ns3::ConstantRandomVariable[Constant=1.0]&quot;</span>),</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                   <a class="code" href="group__attribute___pointer.html#ga78da89439a8813ee28fb5311bcbb38ca">MakePointerAccessor</a> (&amp;<a class="code" href="class_formatting_test_object.html#a54584305ef7459968edc8a09c1a5fc33">FormattingTestObject::m_testVariable</a>),</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                   MakePointerChecker &lt;RandomVariableStream&gt;())</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  ;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="keywordflow">return</span> tid;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;}</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_formatting_test_object.html#aca251f3286646a430663783061f7e5f6">   51</a></span>&#160;<a class="code" href="class_formatting_test_object.html#aca251f3286646a430663783061f7e5f6">FormattingTestObject::FormattingTestObject</a> ()</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;{</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;}</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<a class="code" href="classns3_1_1_ptr.html">Ptr&lt;RandomVariableStream&gt;</a></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_formatting_test_object.html#a28e10307ede8d8c9b118ab0d3b83739b">   56</a></span>&#160;<a class="code" href="class_formatting_test_object.html#a28e10307ede8d8c9b118ab0d3b83739b">FormattingTestObject::GetTestVariable</a> (<span class="keywordtype">void</span>)<span class="keyword"> const</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keywordflow">return</span> m_testVariable;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;}</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="class_formatting_test_object_helper.html">   61</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_formatting_test_object_helper.html">FormattingTestObjectHelper</a></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;{</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <a class="code" href="class_formatting_test_object_helper.html">FormattingTestObjectHelper</a> ();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="keywordtype">void</span> SetAttribute (std::string name, <span class="keyword">const</span> <a class="code" href="classns3_1_1_attribute_value.html">AttributeValue</a> &amp;value);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <a class="code" href="classns3_1_1_ptr.html">Ptr&lt;Object&gt;</a> CreateFromFactory (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_formatting_test_object_helper.html#a605f374bfa696679039a42050bbc4d4e">   68</a></span>&#160;  <a class="code" href="classns3_1_1_object_factory.html">ObjectFactory</a> <a class="code" href="class_formatting_test_object_helper.html#a605f374bfa696679039a42050bbc4d4e">m_factory</a>; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;};</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_formatting_test_object_helper.html#a66aee55f7e17c5da89e435e6ec8ebdd9">   71</a></span>&#160;<a class="code" href="class_formatting_test_object_helper.html#a66aee55f7e17c5da89e435e6ec8ebdd9">FormattingTestObjectHelper::FormattingTestObjectHelper</a> ()</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;{</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  m_factory.SetTypeId (<a class="code" href="class_formatting_test_object.html#a8d01d15af307907b4bd8e54ee8549526">FormattingTestObject::GetTypeId</a> ());</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_formatting_test_object_helper.html#a8d4707dad43d9743bd98d1ffc8663e65">   77</a></span>&#160;<a class="code" href="class_formatting_test_object_helper.html#a8d4707dad43d9743bd98d1ffc8663e65">FormattingTestObjectHelper::SetAttribute</a> (std::string name, <span class="keyword">const</span> <a class="code" href="classns3_1_1_attribute_value.html">AttributeValue</a> &amp;value)</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;{</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  m_factory.Set (name, value);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<a class="code" href="classns3_1_1_ptr.html">Ptr&lt;Object&gt;</a></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_formatting_test_object_helper.html#af0dfab60b9d8fe2e68eff88c135d3d22">   83</a></span>&#160;<a class="code" href="class_formatting_test_object_helper.html#af0dfab60b9d8fe2e68eff88c135d3d22">FormattingTestObjectHelper::CreateFromFactory</a> (<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;{</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keywordflow">return</span> m_factory.Create ();</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;}</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keywordtype">int</span> </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;main (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;{</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <span class="comment">// CreateObject parsing</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  <a class="code" href="classns3_1_1_ptr.html">Ptr&lt;FormattingTestObject&gt;</a> obj = CreateObject&lt;FormattingTestObject&gt; ();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  obj-&gt;<a class="code" href="classns3_1_1_object_base.html#ac60245d3ea4123bbc9b1d391f1f6592f">SetAttribute</a> (<span class="stringliteral">&quot;OnTime&quot;</span>, <a class="code" href="classns3_1_1_string_value.html">StringValue</a> (<span class="stringliteral">&quot;ns3::UniformRandomVariable&quot;</span>));</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  obj-&gt;<a class="code" href="classns3_1_1_object_base.html#ac60245d3ea4123bbc9b1d391f1f6592f">SetAttribute</a> (<span class="stringliteral">&quot;OnTime&quot;</span>, <a class="code" href="classns3_1_1_string_value.html">StringValue</a> (<span class="stringliteral">&quot;ns3::UniformRandomVariable[Min=0.]&quot;</span>));</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  obj-&gt;<a class="code" href="classns3_1_1_object_base.html#ac60245d3ea4123bbc9b1d391f1f6592f">SetAttribute</a> (<span class="stringliteral">&quot;OnTime&quot;</span>, <a class="code" href="classns3_1_1_string_value.html">StringValue</a> (<span class="stringliteral">&quot;ns3::UniformRandomVariable[Min=0.|Max=1.]&quot;</span>));</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  obj-&gt;<a class="code" href="classns3_1_1_object_base.html#ac60245d3ea4123bbc9b1d391f1f6592f">SetAttribute</a> (<span class="stringliteral">&quot;OnTime&quot;</span>, <a class="code" href="classns3_1_1_string_value.html">StringValue</a> (<span class="stringliteral">&quot;ns3::UniformRandomVariable[Min=50.|Max=100.]&quot;</span>));</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  <a class="code" href="classns3_1_1_ptr.html">Ptr&lt;RandomVariableStream&gt;</a> rvStream = obj-&gt;<a class="code" href="class_formatting_test_object.html#a28e10307ede8d8c9b118ab0d3b83739b">GetTestVariable</a> ();</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <span class="comment">// Either GetObject () or DynamicCast may be used to get subclass pointer</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <a class="code" href="classns3_1_1_ptr.html">Ptr&lt;UniformRandomVariable&gt;</a> uniformStream = rvStream-&gt;<a class="code" href="classns3_1_1_object.html#a13e18c00017096c8381eb651d5bd0783">GetObject</a>&lt;<a class="code" href="classns3_1_1_uniform_random_variable.html">UniformRandomVariable</a>&gt; ();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <a class="code" href="group__assert.html#ga6dccdb0de9b252f60088ce281c49d052">NS_ASSERT</a> (uniformStream);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="comment">// Check that the last setting of Min to 50 and Max to 100 worked</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  <a class="code" href="classns3_1_1_double_value.html">DoubleValue</a> val;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  uniformStream-&gt;<a class="code" href="classns3_1_1_object_base.html#a895d1de2f96063d0e0fd78463e7a7e30">GetAttribute</a> (<span class="stringliteral">&quot;Min&quot;</span>, val);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <a class="code" href="group__assert.html#gaff5ece9066c74e681e74999856f08539">NS_ASSERT_MSG</a> (val.<a class="code" href="classns3_1_1_double_value.html#a141324bab1dadcfaa0071691d25bf0fe">Get</a> () == 50, <span class="stringliteral">&quot;Minimum not set to 50&quot;</span>);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  uniformStream-&gt;<a class="code" href="classns3_1_1_object_base.html#a895d1de2f96063d0e0fd78463e7a7e30">GetAttribute</a> (<span class="stringliteral">&quot;Max&quot;</span>, val);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <a class="code" href="group__assert.html#gaff5ece9066c74e681e74999856f08539">NS_ASSERT_MSG</a> (val.<a class="code" href="classns3_1_1_double_value.html#a141324bab1dadcfaa0071691d25bf0fe">Get</a> () == 100, <span class="stringliteral">&quot;Maximum not set to 100&quot;</span>);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="comment">// The following malformed values should result in an error exit</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  <span class="comment">// if uncommented</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <span class="comment">// Attribute doesn&#39;t exist</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <span class="comment">//obj-&gt;SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[A=0.]&quot;));</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <span class="comment">// Missing right bracket</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="comment">//obj-&gt;SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[Min=0.&quot;));</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="comment">// Comma delimiter fails</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="comment">//obj-&gt;SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[Min=0.,Max=1.]&quot;));</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  <span class="comment">// Incomplete specification</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  <span class="comment">//obj-&gt;SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[Min=0.|Max=]&quot;));</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <span class="comment">// Incomplete specification</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <span class="comment">//obj-&gt;SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[Min=0.|Max]&quot;));</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  <span class="comment">// ObjectFactory parsing</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  <a class="code" href="class_formatting_test_object_helper.html">FormattingTestObjectHelper</a> formattingHelper;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  formattingHelper.<a class="code" href="class_formatting_test_object_helper.html#a8d4707dad43d9743bd98d1ffc8663e65">SetAttribute</a> (<span class="stringliteral">&quot;OnTime&quot;</span>, <a class="code" href="classns3_1_1_string_value.html">StringValue</a> (<span class="stringliteral">&quot;ns3::UniformRandomVariable[Min=30.|Max=60.0]&quot;</span>));</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  <span class="comment">// Attribute doesn&#39;t exist</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  <span class="comment">//formattingHelper.SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[A=0.]&quot;));</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  <span class="comment">// Missing right bracket</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  <span class="comment">//formattingHelper.SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[Min=30.&quot;));</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  <span class="comment">// Comma delimiter fails</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  <span class="comment">//formattingHelper.SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[Min=30.,Max=60.]&quot;));</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  <span class="comment">// Incomplete specification</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  <span class="comment">//formattingHelper.SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[Min=30.|Max=]&quot;));</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  <span class="comment">// Incomplete specification</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  <span class="comment">//formattingHelper.SetAttribute (&quot;OnTime&quot;, StringValue (&quot;ns3::UniformRandomVariable[Min=30.|Max]&quot;));</span></div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  <span class="comment">// verify that creation occurs correctly</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  <a class="code" href="classns3_1_1_ptr.html">Ptr&lt;Object&gt;</a> outputObj = formattingHelper.CreateFromFactory ();</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  <a class="code" href="classns3_1_1_ptr.html">Ptr&lt;FormattingTestObject&gt;</a> fto = DynamicCast&lt;FormattingTestObject&gt; (outputObj);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <a class="code" href="group__assert.html#gaff5ece9066c74e681e74999856f08539">NS_ASSERT_MSG</a> (fto, <span class="stringliteral">&quot;object creation failed&quot;</span>);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  rvStream = fto-&gt;<a class="code" href="class_formatting_test_object.html#a28e10307ede8d8c9b118ab0d3b83739b">GetTestVariable</a> ();</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  uniformStream = rvStream-&gt;<a class="code" href="classns3_1_1_object.html#a13e18c00017096c8381eb651d5bd0783">GetObject</a>&lt;<a class="code" href="classns3_1_1_uniform_random_variable.html">UniformRandomVariable</a>&gt; ();</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  <a class="code" href="group__assert.html#ga6dccdb0de9b252f60088ce281c49d052">NS_ASSERT</a> (uniformStream);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;  <span class="comment">// Check that the last setting of Min to 30 and Max to 60 worked</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;  uniformStream-&gt;<a class="code" href="classns3_1_1_object_base.html#a895d1de2f96063d0e0fd78463e7a7e30">GetAttribute</a> (<span class="stringliteral">&quot;Min&quot;</span>, val);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;  <a class="code" href="group__assert.html#gaff5ece9066c74e681e74999856f08539">NS_ASSERT_MSG</a> (val.<a class="code" href="classns3_1_1_double_value.html#a141324bab1dadcfaa0071691d25bf0fe">Get</a> () == 30, <span class="stringliteral">&quot;Minimum not set to 30&quot;</span>);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  uniformStream-&gt;<a class="code" href="classns3_1_1_object_base.html#a895d1de2f96063d0e0fd78463e7a7e30">GetAttribute</a> (<span class="stringliteral">&quot;Max&quot;</span>, val);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  <a class="code" href="group__assert.html#gaff5ece9066c74e681e74999856f08539">NS_ASSERT_MSG</a> (val.<a class="code" href="classns3_1_1_double_value.html#a141324bab1dadcfaa0071691d25bf0fe">Get</a> () == 60, <span class="stringliteral">&quot;Maximum not set to 60&quot;</span>);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;}</div>
<div class="ttc" id="classns3_1_1_ptr_html"><div class="ttname"><a href="classns3_1_1_ptr.html">ns3::Ptr&lt; RandomVariableStream &gt;</a></div></div>
<div class="ttc" id="group__object_html_gada1b0bfc04abdba718621b5095c87678"><div class="ttname"><a href="group__object.html#gada1b0bfc04abdba718621b5095c87678">NS_OBJECT_ENSURE_REGISTERED</a></div><div class="ttdeci">#define NS_OBJECT_ENSURE_REGISTERED(type)</div><div class="ttdoc">Register an Object subclass with the TypeId system. </div><div class="ttdef"><b>Definition:</b> <a href="object-base_8h_source.html#l00044">object-base.h:44</a></div></div>
<div class="ttc" id="classns3_1_1_object_html_a13e18c00017096c8381eb651d5bd0783"><div class="ttname"><a href="classns3_1_1_object.html#a13e18c00017096c8381eb651d5bd0783">ns3::Object::GetObject</a></div><div class="ttdeci">Ptr&lt; T &gt; GetObject(void) const </div><div class="ttdoc">Get a pointer to the requested aggregated Object. </div><div class="ttdef"><b>Definition:</b> <a href="object_8h_source.html#l00459">object.h:459</a></div></div>
<div class="ttc" id="classns3_1_1_string_value_html"><div class="ttname"><a href="classns3_1_1_string_value.html">ns3::StringValue</a></div><div class="ttdoc">Hold variables of type string. </div><div class="ttdef"><b>Definition:</b> <a href="string_8h_source.html#l00041">string.h:41</a></div></div>
<div class="ttc" id="classns3_1_1_attribute_value_html"><div class="ttname"><a href="classns3_1_1_attribute_value.html">ns3::AttributeValue</a></div><div class="ttdoc">Hold a value for an Attribute. </div><div class="ttdef"><b>Definition:</b> <a href="attribute_8h_source.html#l00068">attribute.h:68</a></div></div>
<div class="ttc" id="group__assert_html_ga6dccdb0de9b252f60088ce281c49d052"><div class="ttname"><a href="group__assert.html#ga6dccdb0de9b252f60088ce281c49d052">NS_ASSERT</a></div><div class="ttdeci">#define NS_ASSERT(condition)</div><div class="ttdoc">At runtime, in debugging builds, if this condition is not true, the program prints the source file...</div><div class="ttdef"><b>Definition:</b> <a href="assert_8h_source.html#l00067">assert.h:67</a></div></div>
<div class="ttc" id="group__logging_html_ga225a95395fa117b7309aa3c43518d02e"><div class="ttname"><a href="group__logging.html#ga225a95395fa117b7309aa3c43518d02e">NS_LOG_COMPONENT_DEFINE</a></div><div class="ttdeci">#define NS_LOG_COMPONENT_DEFINE(name)</div><div class="ttdoc">Define a Log component with a specific name. </div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00201">log.h:201</a></div></div>
<div class="ttc" id="class_formatting_test_object_helper_html_a66aee55f7e17c5da89e435e6ec8ebdd9"><div class="ttname"><a href="class_formatting_test_object_helper.html#a66aee55f7e17c5da89e435e6ec8ebdd9">FormattingTestObjectHelper::FormattingTestObjectHelper</a></div><div class="ttdeci">FormattingTestObjectHelper()</div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00071">test-string-value-formatting.cc:71</a></div></div>
<div class="ttc" id="class_formatting_test_object_html_aca251f3286646a430663783061f7e5f6"><div class="ttname"><a href="class_formatting_test_object.html#aca251f3286646a430663783061f7e5f6">FormattingTestObject::FormattingTestObject</a></div><div class="ttdeci">FormattingTestObject()</div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00051">test-string-value-formatting.cc:51</a></div></div>
<div class="ttc" id="class_formatting_test_object_helper_html_af0dfab60b9d8fe2e68eff88c135d3d22"><div class="ttname"><a href="class_formatting_test_object_helper.html#af0dfab60b9d8fe2e68eff88c135d3d22">FormattingTestObjectHelper::CreateFromFactory</a></div><div class="ttdeci">Ptr&lt; Object &gt; CreateFromFactory(void)</div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00083">test-string-value-formatting.cc:83</a></div></div>
<div class="ttc" id="group__attribute___pointer_html_ga78da89439a8813ee28fb5311bcbb38ca"><div class="ttname"><a href="group__attribute___pointer.html#ga78da89439a8813ee28fb5311bcbb38ca">ns3::MakePointerAccessor</a></div><div class="ttdeci">Ptr&lt; const AttributeAccessor &gt; MakePointerAccessor(T1 a1)</div><div class="ttdoc">Create an AttributeAccessor for a class data member, or a lone class get functor or set method...</div><div class="ttdef"><b>Definition:</b> <a href="pointer_8h_source.html#l00220">pointer.h:220</a></div></div>
<div class="ttc" id="classns3_1_1_uniform_random_variable_html"><div class="ttname"><a href="classns3_1_1_uniform_random_variable.html">ns3::UniformRandomVariable</a></div><div class="ttdoc">The uniform distribution Random Number Generator (RNG). </div><div class="ttdef"><b>Definition:</b> <a href="random-variable-stream_8h_source.html#l00233">random-variable-stream.h:233</a></div></div>
<div class="ttc" id="class_formatting_test_object_html_a54584305ef7459968edc8a09c1a5fc33"><div class="ttname"><a href="class_formatting_test_object.html#a54584305ef7459968edc8a09c1a5fc33">FormattingTestObject::m_testVariable</a></div><div class="ttdeci">Ptr&lt; RandomVariableStream &gt; m_testVariable</div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00032">test-string-value-formatting.cc:32</a></div></div>
<div class="ttc" id="classns3_1_1_double_value_html_a141324bab1dadcfaa0071691d25bf0fe"><div class="ttname"><a href="classns3_1_1_double_value.html#a141324bab1dadcfaa0071691d25bf0fe">ns3::DoubleValue::Get</a></div><div class="ttdeci">double Get(void) const </div><div class="ttdef"><b>Definition:</b> <a href="double_8cc_source.html#l00035">double.cc:35</a></div></div>
<div class="ttc" id="namespacens3_html"><div class="ttname"><a href="namespacens3.html">ns3</a></div><div class="ttdoc">Every class exported by the ns3 library is enclosed in the ns3 namespace. </div></div>
<div class="ttc" id="class_formatting_test_object_helper_html_a8d4707dad43d9743bd98d1ffc8663e65"><div class="ttname"><a href="class_formatting_test_object_helper.html#a8d4707dad43d9743bd98d1ffc8663e65">FormattingTestObjectHelper::SetAttribute</a></div><div class="ttdeci">void SetAttribute(std::string name, const AttributeValue &amp;value)</div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00077">test-string-value-formatting.cc:77</a></div></div>
<div class="ttc" id="class_formatting_test_object_html"><div class="ttname"><a href="class_formatting_test_object.html">FormattingTestObject</a></div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00025">test-string-value-formatting.cc:25</a></div></div>
<div class="ttc" id="classns3_1_1_object_base_html_a895d1de2f96063d0e0fd78463e7a7e30"><div class="ttname"><a href="classns3_1_1_object_base.html#a895d1de2f96063d0e0fd78463e7a7e30">ns3::ObjectBase::GetAttribute</a></div><div class="ttdeci">void GetAttribute(std::string name, AttributeValue &amp;value) const </div><div class="ttdoc">Get the value of an attribute, raising fatal errors if unsuccessful. </div><div class="ttdef"><b>Definition:</b> <a href="object-base_8cc_source.html#l00223">object-base.cc:223</a></div></div>
<div class="ttc" id="class_formatting_test_object_helper_html"><div class="ttname"><a href="class_formatting_test_object_helper.html">FormattingTestObjectHelper</a></div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00061">test-string-value-formatting.cc:61</a></div></div>
<div class="ttc" id="group__assert_html_gaff5ece9066c74e681e74999856f08539"><div class="ttname"><a href="group__assert.html#gaff5ece9066c74e681e74999856f08539">NS_ASSERT_MSG</a></div><div class="ttdeci">#define NS_ASSERT_MSG(condition, message)</div><div class="ttdoc">At runtime, in debugging builds, if this condition is not true, the program prints the message to out...</div><div class="ttdef"><b>Definition:</b> <a href="assert_8h_source.html#l00090">assert.h:90</a></div></div>
<div class="ttc" id="classns3_1_1_object_factory_html"><div class="ttname"><a href="classns3_1_1_object_factory.html">ns3::ObjectFactory</a></div><div class="ttdoc">Instantiate subclasses of ns3::Object. </div><div class="ttdef"><b>Definition:</b> <a href="object-factory_8h_source.html#l00047">object-factory.h:47</a></div></div>
<div class="ttc" id="class_formatting_test_object_html_a8d01d15af307907b4bd8e54ee8549526"><div class="ttname"><a href="class_formatting_test_object.html#a8d01d15af307907b4bd8e54ee8549526">FormattingTestObject::GetTypeId</a></div><div class="ttdeci">static TypeId GetTypeId(void)</div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00038">test-string-value-formatting.cc:38</a></div></div>
<div class="ttc" id="class_formatting_test_object_helper_html_a605f374bfa696679039a42050bbc4d4e"><div class="ttname"><a href="class_formatting_test_object_helper.html#a605f374bfa696679039a42050bbc4d4e">FormattingTestObjectHelper::m_factory</a></div><div class="ttdeci">ObjectFactory m_factory</div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00068">test-string-value-formatting.cc:68</a></div></div>
<div class="ttc" id="classns3_1_1_object_html"><div class="ttname"><a href="classns3_1_1_object.html">ns3::Object</a></div><div class="ttdoc">A base class which provides memory management and object aggregation. </div><div class="ttdef"><b>Definition:</b> <a href="object_8h_source.html#l00087">object.h:87</a></div></div>
<div class="ttc" id="classns3_1_1_double_value_html"><div class="ttname"><a href="classns3_1_1_double_value.html">ns3::DoubleValue</a></div><div class="ttdoc">This class can be used to hold variables of floating point type such as &#39;double&#39; or &#39;float&#39;...</div><div class="ttdef"><b>Definition:</b> <a href="double_8h_source.html#l00041">double.h:41</a></div></div>
<div class="ttc" id="classns3_1_1_object_base_html_ac60245d3ea4123bbc9b1d391f1f6592f"><div class="ttname"><a href="classns3_1_1_object_base.html#ac60245d3ea4123bbc9b1d391f1f6592f">ns3::ObjectBase::SetAttribute</a></div><div class="ttdeci">void SetAttribute(std::string name, const AttributeValue &amp;value)</div><div class="ttdoc">Set a single attribute, raising fatal errors if unsuccessful. </div><div class="ttdef"><b>Definition:</b> <a href="object-base_8cc_source.html#l00185">object-base.cc:185</a></div></div>
<div class="ttc" id="classns3_1_1_type_id_html"><div class="ttname"><a href="classns3_1_1_type_id.html">ns3::TypeId</a></div><div class="ttdoc">a unique identifier for an interface. </div><div class="ttdef"><b>Definition:</b> <a href="type-id_8h_source.html#l00058">type-id.h:58</a></div></div>
<div class="ttc" id="classns3_1_1_type_id_html_abaaca67ab7d2471067e7c275df0f7309"><div class="ttname"><a href="classns3_1_1_type_id.html#abaaca67ab7d2471067e7c275df0f7309">ns3::TypeId::SetParent</a></div><div class="ttdeci">TypeId SetParent(TypeId tid)</div><div class="ttdoc">Set the parent TypeId. </div><div class="ttdef"><b>Definition:</b> <a href="type-id_8cc_source.html#l00904">type-id.cc:904</a></div></div>
<div class="ttc" id="class_formatting_test_object_html_a28e10307ede8d8c9b118ab0d3b83739b"><div class="ttname"><a href="class_formatting_test_object.html#a28e10307ede8d8c9b118ab0d3b83739b">FormattingTestObject::GetTestVariable</a></div><div class="ttdeci">Ptr&lt; RandomVariableStream &gt; GetTestVariable(void) const </div><div class="ttdef"><b>Definition:</b> <a href="test-string-value-formatting_8cc_source.html#l00056">test-string-value-formatting.cc:56</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- ns-3 doxygen header, based on
     HTML header for doxygen 1.8.3.1
     Verified compatible with 1.8.6
-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.html">core</a></li><li class="navelem"><a class="el" href="dir_885eb8bfa2a2428b32ca0bb7bd8db8ab.html">examples</a></li><li class="navelem"><a class="el" href="test-string-value-formatting_8cc.html">test-string-value-formatting.cc</a></li>
    <li class="footer">Generated on Tue Jun 13 2017 18:20:46 for ns-3 by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>