Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 6e7a2755bd78c9deedab199b86e675f3 > files > 6507

gnuradio-doc-3.2.2-9.fc14.x86_64.rpm

<!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"/>
<title>GNU Radio 3.2.2 C++ API: mb_mblock_impl.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GNU Radio 3.2.2 C++ API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('mb__mblock__impl_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<h1>mb_mblock_impl.h</h1>  </div>
</div>
<div class="contents">
<a href="mb__mblock__impl_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c++ -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright 2006,2007,2008 Free Software Foundation, Inc.</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * This file is part of GNU Radio</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * GNU Radio is free software; you can redistribute it and/or modify</span>
<a name="l00008"></a>00008 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00009"></a>00009 <span class="comment"> * the Free Software Foundation; either version 3, or (at your option)</span>
<a name="l00010"></a>00010 <span class="comment"> * any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * GNU Radio is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00015"></a>00015 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> * </span>
<a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU General Public License along</span>
<a name="l00018"></a>00018 <span class="comment"> * with this program; if not, write to the Free Software Foundation, Inc.,</span>
<a name="l00019"></a>00019 <span class="comment"> * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef INCLUDED_MB_MBLOCK_IMPL_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define INCLUDED_MB_MBLOCK_IMPL_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;mblock/mblock.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="mb__runtime__base_8h.html">mb_runtime_base.h</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="mb__connection_8h.html">mb_connection.h</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;mblock/msg_queue.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 
<a name="l00032"></a><a class="code" href="mb__mblock__impl_8h.html#a07a95b508d1edd6a862ba9c5880711fe">00032</a> <span class="keyword">typedef</span> std::map&lt;std::string, mb_port_sptr&gt;   <a class="code" href="mb__mblock__impl_8h.html#a07a95b508d1edd6a862ba9c5880711fe">mb_port_map_t</a>;
<a name="l00033"></a><a class="code" href="mb__mblock__impl_8h.html#a44ade09634f10fa95709778100cbfe59">00033</a> <span class="keyword">typedef</span> std::map&lt;std::string, mb_mblock_sptr&gt; <a class="code" href="mb__mblock__impl_8h.html#a44ade09634f10fa95709778100cbfe59">mb_comp_map_t</a>;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="comment"></span>
<a name="l00036"></a>00036 <span class="comment">/*!</span>
<a name="l00037"></a>00037 <span class="comment"> * \brief The private implementation details of the mblock system.</span>
<a name="l00038"></a>00038 <span class="comment"> */</span>
<a name="l00039"></a><a class="code" href="classmb__mblock__impl.html">00039</a> <span class="keyword">class </span><a class="code" href="classmb__mblock__impl.html" title="The private implementation details of the mblock system.">mb_mblock_impl</a> : boost::noncopyable
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041   <a class="code" href="classmb__runtime__base.html">mb_runtime_base</a>              *d_runtime;      <span class="comment">// pointer to runtime</span>
<a name="l00042"></a>00042   <a class="code" href="classmb__mblock.html" title="Parent class for all message passing blocks.">mb_mblock</a>                    *d_mb;           <span class="comment">// pointer to our associated mblock</span>
<a name="l00043"></a>00043   <a class="code" href="classmb__mblock.html" title="Parent class for all message passing blocks.">mb_mblock</a>                    *d_mb_parent;    <span class="comment">// pointer to our parent</span>
<a name="l00044"></a>00044 
<a name="l00045"></a>00045   std::string                   d_instance_name;    <span class="comment">// hierarchical name</span>
<a name="l00046"></a>00046   std::string                   d_class_name;       <span class="comment">// name of this (derived) class</span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048   <a class="code" href="mb__mblock__impl_8h.html#a07a95b508d1edd6a862ba9c5880711fe">mb_port_map_t</a>                 d_port_map;     <span class="comment">// our ports</span>
<a name="l00049"></a>00049   <a class="code" href="mb__mblock__impl_8h.html#a44ade09634f10fa95709778100cbfe59">mb_comp_map_t</a>                 d_comp_map;     <span class="comment">// our components</span>
<a name="l00050"></a>00050   <a class="code" href="classmb__conn__table.html" title="data structure that keeps track of connections">mb_conn_table</a>                 d_conn_table;   <span class="comment">// our connections</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052   <a class="code" href="classmb__msg__queue.html" title="priority queue for mblock messages">mb_msg_queue</a>                  d_msgq;         <span class="comment">// incoming messages for us</span>
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00055"></a>00055   <a class="code" href="classmb__mblock__impl.html#a527d247a54cc2abaf393cbb8eab0f601">mb_mblock_impl</a>(<a class="code" href="classmb__runtime__base.html">mb_runtime_base</a> *<a class="code" href="classmb__mblock__impl.html#acae3f182a4b27fc120f85b59b502ecb0" title="Return the runtime instance.">runtime</a>, <a class="code" href="classmb__mblock.html" title="Parent class for all message passing blocks.">mb_mblock</a> *mb,
<a name="l00056"></a>00056                  <span class="keyword">const</span> std::string &amp;<a class="code" href="classmb__mblock__impl.html#a40df34b91f4f296b60632ac697adc930" title="Return instance name of this block.">instance_name</a>);
<a name="l00057"></a>00057   <a class="code" href="classmb__mblock__impl.html#a85b5ef74d2466e337cec0a54004a982c">~mb_mblock_impl</a>();
<a name="l00058"></a>00058 <span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment">  /*!</span>
<a name="l00060"></a>00060 <span class="comment">   * \brief Define a port.</span>
<a name="l00061"></a>00061 <span class="comment">   *</span>
<a name="l00062"></a>00062 <span class="comment">   * EXTERNAL and RELAY ports are part of our peer interface.</span>
<a name="l00063"></a>00063 <span class="comment">   * INTERNAL ports are used to talk to sub-components.</span>
<a name="l00064"></a>00064 <span class="comment">   *</span>
<a name="l00065"></a>00065 <span class="comment">   * \param port_name    The name of the port (must be unique within this mblock).</span>
<a name="l00066"></a>00066 <span class="comment">   * \param protocol_class_name The name of the protocol class associated with</span>
<a name="l00067"></a>00067 <span class="comment">   *                            this port.  It must already be defined.</span>
<a name="l00068"></a>00068 <span class="comment">   * \param conjugated   Are the incoming and outgoing message sets swapped?</span>
<a name="l00069"></a>00069 <span class="comment">   * \param port_type    INTERNAL, EXTERNAL or RELAY.</span>
<a name="l00070"></a>00070 <span class="comment">   */</span>
<a name="l00071"></a>00071   <a class="code" href="classboost_1_1shared__ptr.html">mb_port_sptr</a>
<a name="l00072"></a>00072   <a class="code" href="classmb__mblock__impl.html#a702fa262fe5d76fc5923256ee5741d13" title="Define a port.">define_port</a>(<span class="keyword">const</span> std::string &amp;port_name,
<a name="l00073"></a>00073               <span class="keyword">const</span> std::string &amp;protocol_class_name,
<a name="l00074"></a>00074               <span class="keywordtype">bool</span> conjugated,
<a name="l00075"></a>00075               <a class="code" href="classmb__port.html#ab7f3f63c496d0de66461f09320bbaaa7" title="port classification">mb_port::port_type_t</a> port_type);
<a name="l00076"></a>00076 <span class="comment"></span>
<a name="l00077"></a>00077 <span class="comment">  /*!</span>
<a name="l00078"></a>00078 <span class="comment">   * \brief Define a subcomponent by name.</span>
<a name="l00079"></a>00079 <span class="comment">   *</span>
<a name="l00080"></a>00080 <span class="comment">   * Called within the constructor to tell the system the</span>
<a name="l00081"></a>00081 <span class="comment">   * names and identities of our sub-component mblocks.</span>
<a name="l00082"></a>00082 <span class="comment">   *</span>
<a name="l00083"></a>00083 <span class="comment">   * \param component_name  The name of the sub-component (must be unique with this mblock).</span>
<a name="l00084"></a>00084 <span class="comment">   * \param class_name      The class of the instance that is to be created.</span>
<a name="l00085"></a>00085 <span class="comment">   * \param user_arg The argument to pass to the constructor of the component.</span>
<a name="l00086"></a>00086 <span class="comment">   */</span>
<a name="l00087"></a>00087   <span class="keywordtype">void</span>
<a name="l00088"></a>00088   <a class="code" href="classmb__mblock__impl.html#ad5613774fb12eaeac1f5134b5ee8c2aa" title="Define a subcomponent by name.">define_component</a>(<span class="keyword">const</span> std::string &amp;component_name,
<a name="l00089"></a>00089                    <span class="keyword">const</span> std::string &amp;<a class="code" href="classmb__mblock__impl.html#aac814c02b07a3ace3bdd4ddb63b514d0" title="Return the class name of this block.">class_name</a>,
<a name="l00090"></a>00090                    <a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> user_arg);
<a name="l00091"></a>00091 <span class="comment"></span>
<a name="l00092"></a>00092 <span class="comment">  /*!</span>
<a name="l00093"></a>00093 <span class="comment">   * \brief connect endpoint_1 to endpoint_2</span>
<a name="l00094"></a>00094 <span class="comment">   *</span>
<a name="l00095"></a>00095 <span class="comment">   * \param comp_name1  component on one end of the connection</span>
<a name="l00096"></a>00096 <span class="comment">   * \param port_name1  the name of the port on comp1</span>
<a name="l00097"></a>00097 <span class="comment">   * \param comp_name2  component on the other end of the connection</span>
<a name="l00098"></a>00098 <span class="comment">   * \param port_name2  the name of the port on comp2</span>
<a name="l00099"></a>00099 <span class="comment">   *</span>
<a name="l00100"></a>00100 <span class="comment">   * An endpoint is specified by the component&#39;s local name (given as</span>
<a name="l00101"></a>00101 <span class="comment">   * component_name in the call to register_component) and the name of</span>
<a name="l00102"></a>00102 <span class="comment">   * the port on that component.</span>
<a name="l00103"></a>00103 <span class="comment">   *</span>
<a name="l00104"></a>00104 <span class="comment">   * To connect an internal or relay port, use &quot;self&quot; as the component name.</span>
<a name="l00105"></a>00105 <span class="comment">   */</span>
<a name="l00106"></a>00106   <span class="keywordtype">void</span>
<a name="l00107"></a>00107   <a class="code" href="classmb__mblock__impl.html#a043ff084373dc8beb51dc1118a8ad34c" title="connect endpoint_1 to endpoint_2">connect</a>(<span class="keyword">const</span> std::string &amp;comp_name1, <span class="keyword">const</span> std::string &amp;port_name1,
<a name="l00108"></a>00108           <span class="keyword">const</span> std::string &amp;comp_name2, <span class="keyword">const</span> std::string &amp;port_name2);
<a name="l00109"></a>00109 <span class="comment"></span>
<a name="l00110"></a>00110 <span class="comment">  /*!</span>
<a name="l00111"></a>00111 <span class="comment">   * \brief disconnect endpoint_1 from endpoint_2</span>
<a name="l00112"></a>00112 <span class="comment">   *</span>
<a name="l00113"></a>00113 <span class="comment">   * \param comp_name1  component on one end of the connection</span>
<a name="l00114"></a>00114 <span class="comment">   * \param port_name1  the name of the port on comp1</span>
<a name="l00115"></a>00115 <span class="comment">   * \param comp_name2  component on the other end of the connection</span>
<a name="l00116"></a>00116 <span class="comment">   * \param port_name2  the name of the port on comp2</span>
<a name="l00117"></a>00117 <span class="comment">   *</span>
<a name="l00118"></a>00118 <span class="comment">   * An endpoint is specified by the component&#39;s local name (given as</span>
<a name="l00119"></a>00119 <span class="comment">   * component_name in the call to register_component) and the name of</span>
<a name="l00120"></a>00120 <span class="comment">   * the port on that component.</span>
<a name="l00121"></a>00121 <span class="comment">   *</span>
<a name="l00122"></a>00122 <span class="comment">   * To disconnect an internal or relay port, use &quot;self&quot; as the component name.</span>
<a name="l00123"></a>00123 <span class="comment">   */</span>
<a name="l00124"></a>00124   <span class="keywordtype">void</span>
<a name="l00125"></a>00125   <a class="code" href="classmb__mblock__impl.html#a84129fd7eb495f1b4e60c8ef5ea98a1d" title="disconnect endpoint_1 from endpoint_2">disconnect</a>(<span class="keyword">const</span> std::string &amp;comp_name1, <span class="keyword">const</span> std::string &amp;port_name1,
<a name="l00126"></a>00126              <span class="keyword">const</span> std::string &amp;comp_name2, <span class="keyword">const</span> std::string &amp;port_name2);
<a name="l00127"></a>00127 <span class="comment"></span>
<a name="l00128"></a>00128 <span class="comment">  /*!</span>
<a name="l00129"></a>00129 <span class="comment">   * \brief disconnect all connections to specified component</span>
<a name="l00130"></a>00130 <span class="comment">   * \param component_name component to disconnect</span>
<a name="l00131"></a>00131 <span class="comment">   */</span>
<a name="l00132"></a>00132   <span class="keywordtype">void</span>
<a name="l00133"></a>00133   <a class="code" href="classmb__mblock__impl.html#acca839efe2bd6ae79628626260dca304" title="disconnect all connections to specified component">disconnect_component</a>(<span class="keyword">const</span> std::string component_name);
<a name="l00134"></a>00134 <span class="comment"></span>
<a name="l00135"></a>00135 <span class="comment">  /*!</span>
<a name="l00136"></a>00136 <span class="comment">   * \brief disconnect all connections to all components</span>
<a name="l00137"></a>00137 <span class="comment">   */</span>
<a name="l00138"></a>00138   <span class="keywordtype">void</span>
<a name="l00139"></a>00139   <a class="code" href="classmb__mblock__impl.html#a5dfb06250f628d09a34f5ecc06c4a950" title="disconnect all connections to all components">disconnect_all</a>();
<a name="l00140"></a>00140 <span class="comment"></span>
<a name="l00141"></a>00141 <span class="comment">  /*!</span>
<a name="l00142"></a>00142 <span class="comment">   * \brief Return number of connections (QA mostly)</span>
<a name="l00143"></a>00143 <span class="comment">   */</span>
<a name="l00144"></a>00144   <span class="keywordtype">int</span>
<a name="l00145"></a>00145   <a class="code" href="classmb__mblock__impl.html#a6b463da6538841fbb0ac4fa1eab8f83c" title="Return number of connections (QA mostly)">nconnections</a>();
<a name="l00146"></a>00146 
<a name="l00147"></a>00147   <span class="keywordtype">bool</span>
<a name="l00148"></a>00148   <a class="code" href="classmb__mblock__impl.html#aea2024a17797295eeaec0f0354627b9d">walk_tree</a>(<a class="code" href="classmb__visitor.html">mb_visitor</a> *visitor);
<a name="l00149"></a>00149   
<a name="l00150"></a>00150   <a class="code" href="classboost_1_1shared__ptr.html">mb_msg_accepter_sptr</a>
<a name="l00151"></a>00151   <a class="code" href="classmb__mblock__impl.html#af699db959ca651eddda9f958407402f9">make_accepter</a>(<a class="code" href="classboost_1_1shared__ptr.html">pmt_t</a> port_name);
<a name="l00152"></a>00152 
<a name="l00153"></a>00153   <a class="code" href="classmb__msg__queue.html" title="priority queue for mblock messages">mb_msg_queue</a> &amp;
<a name="l00154"></a><a class="code" href="classmb__mblock__impl.html#afd6d23d7f71f17fe974afe809fea891e">00154</a>   <a class="code" href="classmb__mblock__impl.html#afd6d23d7f71f17fe974afe809fea891e">msgq</a>() { <span class="keywordflow">return</span> d_msgq; }
<a name="l00155"></a>00155 <span class="comment"></span>
<a name="l00156"></a>00156 <span class="comment">  //! Return instance name of this block</span>
<a name="l00157"></a><a class="code" href="classmb__mblock__impl.html#a40df34b91f4f296b60632ac697adc930">00157</a> <span class="comment"></span>  std::string <a class="code" href="classmb__mblock__impl.html#a40df34b91f4f296b60632ac697adc930" title="Return instance name of this block.">instance_name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_instance_name; }
<a name="l00158"></a>00158 <span class="comment"></span>
<a name="l00159"></a>00159 <span class="comment">  //! Set the instance name of this block</span>
<a name="l00160"></a>00160 <span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="classmb__mblock__impl.html#a649294907d968bc151f4708e69444c0a" title="Set the instance name of this block.">set_instance_name</a>(<span class="keyword">const</span> std::string &amp;name);
<a name="l00161"></a>00161 <span class="comment"></span>
<a name="l00162"></a>00162 <span class="comment">  //! Return the class name of this block</span>
<a name="l00163"></a><a class="code" href="classmb__mblock__impl.html#aac814c02b07a3ace3bdd4ddb63b514d0">00163</a> <span class="comment"></span>  std::string <a class="code" href="classmb__mblock__impl.html#aac814c02b07a3ace3bdd4ddb63b514d0" title="Return the class name of this block.">class_name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_class_name; }
<a name="l00164"></a>00164 <span class="comment"></span>
<a name="l00165"></a>00165 <span class="comment">  //! Set the class name</span>
<a name="l00166"></a>00166 <span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="classmb__mblock__impl.html#a075ddbb7ff6c8e6d7d947730cb2a0928" title="Set the class name.">set_class_name</a>(<span class="keyword">const</span> std::string &amp;name);
<a name="l00167"></a>00167 <span class="comment"></span>
<a name="l00168"></a>00168 <span class="comment">  /*!</span>
<a name="l00169"></a>00169 <span class="comment">   * \brief If bound, store endpoint from the other end of the connection.</span>
<a name="l00170"></a>00170 <span class="comment">   *</span>
<a name="l00171"></a>00171 <span class="comment">   * \param port [in]  port the port that we&#39;re searching for.</span>
<a name="l00172"></a>00172 <span class="comment">   * \param ep   [out] the other end point from the matching connection.</span>
<a name="l00173"></a>00173 <span class="comment">   *</span>
<a name="l00174"></a>00174 <span class="comment">   * \returns true iff there&#39;s a matching connection.</span>
<a name="l00175"></a>00175 <span class="comment">   */</span>
<a name="l00176"></a>00176   <span class="keywordtype">bool</span>
<a name="l00177"></a>00177   <a class="code" href="classmb__mblock__impl.html#a7beb6b97b0079d952f952dc783647bf3" title="If bound, store endpoint from the other end of the connection.">lookup_other_endpoint</a>(<span class="keyword">const</span> <a class="code" href="classmb__port.html" title="Abstract port characteristics.">mb_port</a> *port, <a class="code" href="classmb__endpoint.html" title="Endpoint specification for connection.">mb_endpoint</a> *ep);
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 <span class="comment"></span>
<a name="l00180"></a>00180 <span class="comment">  //! Return point to associated mblock</span>
<a name="l00181"></a><a class="code" href="classmb__mblock__impl.html#a63ea198f592efd8ec676d075e32124b9">00181</a> <span class="comment"></span>  <a class="code" href="classmb__mblock.html" title="Parent class for all message passing blocks.">mb_mblock</a> *<a class="code" href="classmb__mblock__impl.html#a63ea198f592efd8ec676d075e32124b9" title="Return point to associated mblock.">mblock</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_mb; }
<a name="l00182"></a>00182 <span class="comment"></span>
<a name="l00183"></a>00183 <span class="comment">  //! Return pointer to the parent of our mblock</span>
<a name="l00184"></a><a class="code" href="classmb__mblock__impl.html#a76a9578ccb1064c346abd0ba29f6e7f1">00184</a> <span class="comment"></span>  <a class="code" href="classmb__mblock.html" title="Parent class for all message passing blocks.">mb_mblock</a> *<a class="code" href="classmb__mblock__impl.html#a76a9578ccb1064c346abd0ba29f6e7f1" title="Return pointer to the parent of our mblock.">mblock_parent</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_mb_parent; }
<a name="l00185"></a>00185 <span class="comment"></span>
<a name="l00186"></a>00186 <span class="comment">  //! Lookup a component by name</span>
<a name="l00187"></a>00187 <span class="comment"></span>  <a class="code" href="classboost_1_1shared__ptr.html">mb_mblock_sptr</a> <a class="code" href="classmb__mblock__impl.html#a853e918def71cdb182901bb99c4132ca" title="Lookup a component by name.">component</a>(<span class="keyword">const</span> std::string &amp;comp_name);
<a name="l00188"></a>00188 <span class="comment"></span>
<a name="l00189"></a>00189 <span class="comment">  //! Return the runtime instance</span>
<a name="l00190"></a><a class="code" href="classmb__mblock__impl.html#acae3f182a4b27fc120f85b59b502ecb0">00190</a> <span class="comment"></span>  <a class="code" href="classmb__runtime__base.html">mb_runtime_base</a> *<a class="code" href="classmb__mblock__impl.html#acae3f182a4b27fc120f85b59b502ecb0" title="Return the runtime instance.">runtime</a>() { <span class="keywordflow">return</span> d_runtime; }
<a name="l00191"></a>00191 <span class="comment"></span>
<a name="l00192"></a>00192 <span class="comment">  //! Set the runtime instance</span>
<a name="l00193"></a><a class="code" href="classmb__mblock__impl.html#a83e492b5dca16fab10a7ca00f15e537b">00193</a> <span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="classmb__mblock__impl.html#a83e492b5dca16fab10a7ca00f15e537b" title="Set the runtime instance.">set_runtime</a>(<a class="code" href="classmb__runtime__base.html">mb_runtime_base</a> *runtime) { d_runtime = <a class="code" href="classmb__mblock__impl.html#acae3f182a4b27fc120f85b59b502ecb0" title="Return the runtime instance.">runtime</a>; }
<a name="l00194"></a>00194 
<a name="l00195"></a>00195   <span class="comment">/*</span>
<a name="l00196"></a>00196 <span class="comment">   * Our implementation methods</span>
<a name="l00197"></a>00197 <span class="comment">   */</span>
<a name="l00198"></a>00198 <span class="keyword">private</span>:
<a name="l00199"></a>00199   <span class="comment">//bool port_is_defined(pmt_t name);</span>
<a name="l00200"></a>00200   <span class="keywordtype">bool</span> port_is_defined(<span class="keyword">const</span> std::string &amp;name);
<a name="l00201"></a>00201   <span class="comment">//bool comp_is_defined(pmt_t name);</span>
<a name="l00202"></a>00202   <span class="keywordtype">bool</span> comp_is_defined(<span class="keyword">const</span> std::string &amp;name);
<a name="l00203"></a>00203 
<a name="l00204"></a>00204   <a class="code" href="classmb__endpoint.html" title="Endpoint specification for connection.">mb_endpoint</a> 
<a name="l00205"></a>00205   check_and_resolve_endpoint(<span class="keyword">const</span> std::string &amp;comp_name,
<a name="l00206"></a>00206                              <span class="keyword">const</span> std::string &amp;port_name);
<a name="l00207"></a>00207 
<a name="l00208"></a>00208 
<a name="l00209"></a>00209   <a class="code" href="classboost_1_1shared__ptr.html">mb_port_sptr</a>
<a name="l00210"></a>00210   resolve_port(<span class="keyword">const</span> std::string &amp;comp_name,
<a name="l00211"></a>00211                <span class="keyword">const</span> std::string &amp;port_name);
<a name="l00212"></a>00212 
<a name="l00213"></a>00213   <span class="keyword">static</span> <span class="keywordtype">bool</span>
<a name="l00214"></a>00214   endpoints_are_compatible(<span class="keyword">const</span> <a class="code" href="classmb__endpoint.html" title="Endpoint specification for connection.">mb_endpoint</a> &amp;ep0,
<a name="l00215"></a>00215                            <span class="keyword">const</span> <a class="code" href="classmb__endpoint.html" title="Endpoint specification for connection.">mb_endpoint</a> &amp;ep1);
<a name="l00216"></a>00216 <span class="comment"></span>
<a name="l00217"></a>00217 <span class="comment">  /*!</span>
<a name="l00218"></a>00218 <span class="comment">   * \brief walk mblock tree and invalidate all port resolution caches.</span>
<a name="l00219"></a>00219 <span class="comment">   * \internal</span>
<a name="l00220"></a>00220 <span class="comment">   */</span>
<a name="l00221"></a>00221   <span class="keywordtype">void</span>
<a name="l00222"></a>00222   invalidate_all_port_caches();
<a name="l00223"></a>00223 };
<a name="l00224"></a>00224 
<a name="l00225"></a>00225 
<a name="l00226"></a>00226 <span class="preprocessor">#endif </span><span class="comment">/* INCLUDED_MB_MBLOCK_IMPL_H */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="mb__mblock__impl_8h.html">mb_mblock_impl.h</a>      </li>
      <li class="footer">Generated on Thu Feb 17 2011 for GNU Radio 3.2.2 C++ API by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>

</body>
</html>