1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6
<title>DSPatch: DspWireBus.h Source File</title>
8
<link href="tabs.css" rel="stylesheet" type="text/css"/>
9
<link href="doxygen.css" rel="stylesheet" type="text/css" />
11
<link href="search/search.css" rel="stylesheet" type="text/css"/>
12
<script type="text/javascript" src="jquery.js"></script>
13
<script type="text/javascript" src="search/search.js"></script>
14
<script type="text/javascript">
15
$(document).ready(function() { searchBox.OnSelectItem(0); });
20
<div id="top"><!-- do not remove this div! -->
24
<table cellspacing="0" cellpadding="0">
26
<tr style="height: 56px;">
28
<td id="projectlogo"><img alt="Logo" src="heartbeat.png"/></td>
31
<td style="padding-left: 0.5em;">
32
<div id="projectname">DSPatch
33
 <span id="projectnumber">v.2.51</span>
35
<div id="projectbrief">C++ Cross-Platform, Object-Oriented, Flow-Based Programming Library</div>
45
<!-- Generated by Doxygen 1.8.0 -->
46
<script type="text/javascript">
47
var searchBox = new SearchBox("searchBox", "search",false,'Search');
49
<div id="navrow1" class="tabs">
51
<li><a href="index.html"><span>Main Page</span></a></li>
52
<li><a href="pages.html"><span>Related Pages</span></a></li>
53
<li><a href="annotated.html"><span>Classes</span></a></li>
54
<li class="current"><a href="files.html"><span>Files</span></a></li>
56
<div id="MSearchBox" class="MSearchBoxInactive">
58
<img id="MSearchSelect" src="search/mag_sel.png"
59
onmouseover="return searchBox.OnSearchSelectShow()"
60
onmouseout="return searchBox.OnSearchSelectHide()"
62
<input type="text" id="MSearchField" value="Search" accesskey="S"
63
onfocus="searchBox.OnSearchFieldFocus(true)"
64
onblur="searchBox.OnSearchFieldFocus(false)"
65
onkeyup="searchBox.OnSearchFieldChange(event)"/>
66
</span><span class="right">
67
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
73
<div id="navrow2" class="tabs2">
75
<li><a href="files.html"><span>File List</span></a></li>
79
<!-- window showing the filter options -->
80
<div id="MSearchSelectWindow"
81
onmouseover="return searchBox.OnSearchSelectShow()"
82
onmouseout="return searchBox.OnSearchSelectHide()"
83
onkeydown="return searchBox.OnSearchSelectKey(event)">
84
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a></div>
86
<!-- iframe showing the search results (closed by default) -->
87
<div id="MSearchResultsWindow">
88
<iframe src="javascript:void(0)" frameborder="0"
89
name="MSearchResults" id="MSearchResults">
94
<div class="headertitle">
95
<div class="title">DspWireBus.h</div> </div>
97
<div class="contents">
98
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/************************************************************************</span>
99
<a name="l00002"></a>00002 <span class="comment">DSPatch - Cross-Platform, Object-Oriented, Flow-Based Programming Library</span>
100
<a name="l00003"></a>00003 <span class="comment">Copyright (c) 2012-2013 Marcus Tomlinson</span>
101
<a name="l00004"></a>00004 <span class="comment"></span>
102
<a name="l00005"></a>00005 <span class="comment">This file is part of DSPatch.</span>
103
<a name="l00006"></a>00006 <span class="comment"></span>
104
<a name="l00007"></a>00007 <span class="comment">GNU Lesser General Public License Usage</span>
105
<a name="l00008"></a>00008 <span class="comment">This file may be used under the terms of the GNU Lesser General Public</span>
106
<a name="l00009"></a>00009 <span class="comment">License version 3.0 as published by the Free Software Foundation and</span>
107
<a name="l00010"></a>00010 <span class="comment">appearing in the file LGPLv3.txt included in the packaging of this</span>
108
<a name="l00011"></a>00011 <span class="comment">file. Please review the following information to ensure the GNU Lesser</span>
109
<a name="l00012"></a>00012 <span class="comment">General Public License version 3.0 requirements will be met:</span>
110
<a name="l00013"></a>00013 <span class="comment">http://www.gnu.org/copyleft/lgpl.html.</span>
111
<a name="l00014"></a>00014 <span class="comment"></span>
112
<a name="l00015"></a>00015 <span class="comment">Other Usage</span>
113
<a name="l00016"></a>00016 <span class="comment">Alternatively, this file may be used in accordance with the terms and</span>
114
<a name="l00017"></a>00017 <span class="comment">conditions contained in a signed written agreement between you and</span>
115
<a name="l00018"></a>00018 <span class="comment">Marcus Tomlinson.</span>
116
<a name="l00019"></a>00019 <span class="comment"></span>
117
<a name="l00020"></a>00020 <span class="comment">DSPatch is distributed in the hope that it will be useful,</span>
118
<a name="l00021"></a>00021 <span class="comment">but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
119
<a name="l00022"></a>00022 <span class="comment">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span>
120
<a name="l00023"></a>00023 <span class="comment">************************************************************************/</span>
121
<a name="l00024"></a>00024
122
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef DSPWIREBUS_H</span>
123
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define DSPWIREBUS_H</span>
124
<a name="l00027"></a>00027 <span class="preprocessor"></span>
125
<a name="l00028"></a>00028 <span class="comment">//-------------------------------------------------------------------------------------------------</span>
126
<a name="l00029"></a>00029
127
<a name="l00030"></a>00030 <span class="preprocessor">#include <vector></span>
128
<a name="l00031"></a>00031
129
<a name="l00032"></a>00032 <span class="preprocessor">#include "DspWire.h"</span>
130
<a name="l00033"></a>00033 <span class="preprocessor">#include "DspThread.h"</span>
131
<a name="l00034"></a>00034
132
<a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="class_dsp_component.html" title="Abstract base class for all DSPatch components.">DspComponent</a>;
133
<a name="l00036"></a>00036
134
<a name="l00037"></a>00037 <span class="comment">//=================================================================================================</span>
135
<a name="l00039"></a>00039 <span class="comment"></span>
136
<a name="l00047"></a><a class="code" href="class_dsp_wire_bus.html">00047</a> <span class="keyword">class </span>DLLEXPORT <a class="code" href="class_dsp_wire_bus.html" title="DspWire container.">DspWireBus</a>
137
<a name="l00048"></a>00048 {
138
<a name="l00049"></a>00049 <span class="keyword">public</span>:
139
<a name="l00050"></a>00050 <a class="code" href="class_dsp_wire_bus.html" title="DspWire container.">DspWireBus</a>( <span class="keywordtype">bool</span> isLinkedComponentReceivingSignals = <span class="keyword">false</span> );
140
<a name="l00051"></a>00051 <span class="keyword">virtual</span> ~<a class="code" href="class_dsp_wire_bus.html" title="DspWire container.">DspWireBus</a>();
141
<a name="l00052"></a>00052
142
<a name="l00053"></a>00053 <span class="keywordtype">bool</span> AddWire( <a class="code" href="class_dsp_component.html" title="Abstract base class for all DSPatch components.">DspComponent</a>* linkedComponent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> fromSignalIndex, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> toSignalIndex );
143
<a name="l00054"></a>00054
144
<a name="l00055"></a>00055 <span class="keywordtype">bool</span> RemoveWire( <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> wireIndex );
145
<a name="l00056"></a>00056 <span class="keywordtype">bool</span> RemoveWire( <a class="code" href="class_dsp_component.html" title="Abstract base class for all DSPatch components.">DspComponent</a>* linkedComponent, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> fromSignalIndex, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> toSignalIndex );
146
<a name="l00057"></a>00057
147
<a name="l00058"></a>00058 <span class="keywordtype">void</span> RemoveAllWires();
148
<a name="l00059"></a>00059
149
<a name="l00060"></a>00060 <a class="code" href="struct_dsp_wire.html" title="Connection between two components.">DspWire</a>* GetWire( <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> wireIndex );
150
<a name="l00061"></a>00061
151
<a name="l00062"></a>00062 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> GetWireCount() <span class="keyword">const</span>;
152
<a name="l00063"></a>00063
153
<a name="l00064"></a>00064 <span class="keyword">private</span>:
154
<a name="l00065"></a>00065 <span class="keywordtype">bool</span> _isLinkedComponentReceivingSignals;
155
<a name="l00066"></a>00066 std::vector< DspWire > _wires;
156
<a name="l00067"></a>00067 };
157
<a name="l00068"></a>00068
158
<a name="l00069"></a>00069 <span class="comment">//=================================================================================================</span>
159
<a name="l00070"></a>00070
160
<a name="l00071"></a>00071 <span class="preprocessor">#endif // DSPWIREBUS_H</span>
161
</pre></div></div><!-- contents -->
164
<hr class="footer"/><address class="footer"><small>
165
Generated on Fri Sep 13 2013 07:57:23 for DSPatch by  <a href="http://www.doxygen.org/index.html">
166
<img class="footer" src="doxygen.png" alt="doxygen"/>