1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>AliHLTPHOS: AliHLTConsumerDescriptor Class Reference</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3.9.1 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
8 <h1>AliHLTConsumerDescriptor Class Reference<br>
10 [<a class="el" href="group__alihlt__system.html">HLT integration into AliRoot</a>]</small>
11 </h1><code>#include <<a class="el" href="AliHLTConsumerDescriptor_8h-source.html">AliHLTConsumerDescriptor.h</a>></code>
13 <p>Inheritance diagram for AliHLTConsumerDescriptor:
14 <p><center><img src="classAliHLTConsumerDescriptor.png" usemap="#AliHLTConsumerDescriptor_map" border="0" alt=""></center>
15 <map name="AliHLTConsumerDescriptor_map">
16 <area href="classAliHLTLogging.html" alt="AliHLTLogging" shape="rect" coords="0,0,166,24">
18 <a href="classAliHLTConsumerDescriptor-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
19 Helper class to describe a consumer component.
21 There is unfortunately no unique determination of the data type from the component itself possible, thats why both component and data type have to be initialized and are stored in a compound. The class is intended to make bookkeeping easier.<p>
22 <dl compact><dt><b>Note:</b></dt><dd>This class is only used for the <a class="el" href="group__alihlt__system.html">HLT integration into AliRoot</a>. </dd></dl>
27 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00030">30</a> of file <a class="el" href="AliHLTConsumerDescriptor_8h-source.html">AliHLTConsumerDescriptor.h</a>.<table border="0" cellpadding="0" cellspacing="0">
29 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
30 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a0">AliHLTConsumerDescriptor</a> ()</td></tr>
32 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a1">AliHLTConsumerDescriptor</a> (<a class="el" href="classAliHLTComponent.html">AliHLTComponent</a> *pConsumer)</td></tr>
34 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a2">AliHLTConsumerDescriptor</a> (const <a class="el" href="classAliHLTConsumerDescriptor.html">AliHLTConsumerDescriptor</a> &)</td></tr>
36 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classAliHLTConsumerDescriptor.html">AliHLTConsumerDescriptor</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a3">operator=</a> (const <a class="el" href="classAliHLTConsumerDescriptor.html">AliHLTConsumerDescriptor</a> &)</td></tr>
38 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a4">~AliHLTConsumerDescriptor</a> ()</td></tr>
40 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classAliHLTComponent.html">AliHLTComponent</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a5">GetComponent</a> ()</td></tr>
42 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a6">SetActiveDataSegment</a> (<a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> offset, <a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> size)</td></tr>
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a7">CheckActiveDataSegment</a> (<a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> offset, <a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> size)</td></tr>
46 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a8">GetNofActiveSegments</a> ()</td></tr>
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#a9">ReleaseActiveDataSegment</a> (<a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> offset, <a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> size)</td></tr>
50 <tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
51 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classAliHLTComponent.html">AliHLTComponent</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#r0">fpConsumer</a></td></tr>
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">vector< <a class="el" href="classAliHLTDataBuffer_1_1AliHLTDataSegment.html">AliHLTDataBuffer::AliHLTDataSegment</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a></td></tr>
55 <tr><td class="mdescLeft"> </td><td class="mdescRight">transient <a href="#r1"></a><br></td></tr>
57 <hr><h2>Constructor & Destructor Documentation</h2>
58 <a class="anchor" name="a0" doxytag="AliHLTConsumerDescriptor::AliHLTConsumerDescriptor"></a><p>
59 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
62 <table cellpadding="0" cellspacing="0" border="0">
64 <td class="md" nowrap valign="top">AliHLTConsumerDescriptor::AliHLTConsumerDescriptor </td>
65 <td class="md" valign="top">( </td>
66 <td class="mdname1" valign="top" nowrap> </td>
67 <td class="md" valign="top"> ) </td>
68 <td class="md" nowrap></td>
74 <table cellspacing="5" cellpadding="0" border="0">
82 standard constructur </td>
85 <a class="anchor" name="a1" doxytag="AliHLTConsumerDescriptor::AliHLTConsumerDescriptor"></a><p>
86 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
89 <table cellpadding="0" cellspacing="0" border="0">
91 <td class="md" nowrap valign="top">AliHLTConsumerDescriptor::AliHLTConsumerDescriptor </td>
92 <td class="md" valign="top">( </td>
93 <td class="md" nowrap valign="top"><a class="el" href="classAliHLTComponent.html">AliHLTComponent</a> * </td>
94 <td class="mdname1" valign="top" nowrap> <em>pConsumer</em> </td>
95 <td class="md" valign="top"> ) </td>
96 <td class="md" nowrap></td>
102 <table cellspacing="5" cellpadding="0" border="0">
110 constructur <dl compact><dt><b>Parameters:</b></dt><dd>
111 <table border="0" cellspacing="2" cellpadding="0">
112 <tr><td valign="top"></td><td valign="top"><em>pConsumer</em> </td><td>pointer to the consumer component </td></tr>
117 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00046">46</a> of file <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html">AliHLTConsumerDescriptor.cxx</a>.
119 References <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00092">fSegments</a>.<div class="fragment"><pre class="fragment">00047 :
120 00048 <a class="code" href="classAliHLTConsumerDescriptor.html#r0">fpConsumer</a>(pConsumer),
121 00049 <a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>()
123 00051 <span class="comment">// see header file for function documentation</span>
124 00052 <a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.clear();
132 <a class="anchor" name="a2" doxytag="AliHLTConsumerDescriptor::AliHLTConsumerDescriptor"></a><p>
133 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
136 <table cellpadding="0" cellspacing="0" border="0">
138 <td class="md" nowrap valign="top">AliHLTConsumerDescriptor::AliHLTConsumerDescriptor </td>
139 <td class="md" valign="top">( </td>
140 <td class="md" nowrap valign="top">const <a class="el" href="classAliHLTConsumerDescriptor.html">AliHLTConsumerDescriptor</a> & </td>
141 <td class="mdname1" valign="top" nowrap> </td>
142 <td class="md" valign="top"> ) </td>
143 <td class="md" nowrap></td>
149 <table cellspacing="5" cellpadding="0" border="0">
157 not a valid copy constructor, defined according to effective C++ style
159 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00055">55</a> of file <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html">AliHLTConsumerDescriptor.cxx</a>.<div class="fragment"><pre class="fragment">00056 :
161 00058 <a class="code" href="classAliHLTLogging.html#a0">AliHLTLogging</a>(),
162 00059 <a class="code" href="classAliHLTConsumerDescriptor.html#r0">fpConsumer</a>(desc.<a class="code" href="classAliHLTConsumerDescriptor.html#r0">fpConsumer</a>),
163 00060 <a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>()
165 00062 <span class="comment">// see header file for function documentation</span>
167 00064 <span class="comment">// we can simply transfer the pointer to th new object since there are no</span>
168 00065 <span class="comment">// release actions in the destructor</span>
176 <a class="anchor" name="a4" doxytag="AliHLTConsumerDescriptor::~AliHLTConsumerDescriptor"></a><p>
177 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
180 <table cellpadding="0" cellspacing="0" border="0">
182 <td class="md" nowrap valign="top">AliHLTConsumerDescriptor::~<a class="el" href="classAliHLTConsumerDescriptor.html">AliHLTConsumerDescriptor</a> </td>
183 <td class="md" valign="top">( </td>
184 <td class="mdname1" valign="top" nowrap> </td>
185 <td class="md" valign="top"> ) </td>
186 <td class="md" nowrap></td>
192 <table cellspacing="5" cellpadding="0" border="0">
202 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00078">78</a> of file <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html">AliHLTConsumerDescriptor.cxx</a>.
204 References <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00092">fSegments</a>.<div class="fragment"><pre class="fragment">00079 {
205 00080 <span class="comment">// see header file for function documentation</span>
206 00081 <span class="keywordflow">if</span> (<a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.size()>0) {
207 00082 <span class="comment">//HLTWarning("unreleased data segments found");</span>
215 <hr><h2>Member Function Documentation</h2>
216 <a class="anchor" name="a7" doxytag="AliHLTConsumerDescriptor::CheckActiveDataSegment"></a><p>
217 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
220 <table cellpadding="0" cellspacing="0" border="0">
222 <td class="md" nowrap valign="top">int AliHLTConsumerDescriptor::CheckActiveDataSegment </td>
223 <td class="md" valign="top">( </td>
224 <td class="md" nowrap valign="top"><a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> </td>
225 <td class="mdname" nowrap> <em>offset</em>, </td>
228 <td class="md" nowrap align="right"></td>
230 <td class="md" nowrap><a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> </td>
231 <td class="mdname" nowrap> <em>size</em></td>
235 <td class="md">) </td>
236 <td class="md" colspan="2"></td>
242 <table cellspacing="5" cellpadding="0" border="0">
250 Check whether there is an active data segment of certain size with certain offset. <dl compact><dt><b>Parameters:</b></dt><dd>
251 <table border="0" cellspacing="2" cellpadding="0">
252 <tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>offset of the data segment in the data buffer </td></tr>
253 <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>size of the data segment in the data buffer </td></tr>
256 <dl compact><dt><b>Returns:</b></dt><dd>> if existend, 0 if not </dd></dl>
259 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00096">96</a> of file <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html">AliHLTConsumerDescriptor.cxx</a>.
261 References <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00092">fSegments</a>.
263 Referenced by <a class="el" href="AliHLTDataBuffer_8cxx-source.html#l00231">AliHLTDataBuffer::Release()</a>.<div class="fragment"><pre class="fragment">00097 {
264 00098 <span class="comment">// see header file for function documentation</span>
265 00099 <span class="keywordtype">int</span> iResult=0;
266 00100 <span class="keywordflow">if</span> (<a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.size()>0) {
267 00101 vector<AliHLTDataBuffer::AliHLTDataSegment>::iterator segment=<a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.begin();
268 00102 <span class="keywordflow">while</span> (segment!=<a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.end()) {
269 00103 <span class="keywordflow">if</span> ((iResult=((*segment).fSegmentOffset==offset && (*segment).fSegmentSize==size))>0) {
270 00104 <span class="keywordflow">break</span>;
274 00108 } <span class="keywordflow">else</span> {
275 00109 <span class="comment">//HLTWarning("no data segment active for consumer %p", this);</span>
276 00110 iResult=-ENODATA;
278 00112 <span class="keywordflow">return</span> iResult;
285 <a class="anchor" name="a5" doxytag="AliHLTConsumerDescriptor::GetComponent"></a><p>
286 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
289 <table cellpadding="0" cellspacing="0" border="0">
291 <td class="md" nowrap valign="top"><a class="el" href="classAliHLTComponent.html">AliHLTComponent</a>* AliHLTConsumerDescriptor::GetComponent </td>
292 <td class="md" valign="top">( </td>
293 <td class="mdname1" valign="top" nowrap> </td>
294 <td class="md" valign="top"> ) </td>
295 <td class="md" nowrap><code> [inline]</code></td>
301 <table cellspacing="5" cellpadding="0" border="0">
309 Get the component of this descriptor. <dl compact><dt><b>Returns:</b></dt><dd>pointer to the component </dd></dl>
312 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00049">49</a> of file <a class="el" href="AliHLTConsumerDescriptor_8h-source.html">AliHLTConsumerDescriptor.h</a>.<div class="fragment"><pre class="fragment">00049 {<span class="keywordflow">return</span> fpConsumer;}
318 <a class="anchor" name="a8" doxytag="AliHLTConsumerDescriptor::GetNofActiveSegments"></a><p>
319 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
322 <table cellpadding="0" cellspacing="0" border="0">
324 <td class="md" nowrap valign="top">int AliHLTConsumerDescriptor::GetNofActiveSegments </td>
325 <td class="md" valign="top">( </td>
326 <td class="mdname1" valign="top" nowrap> </td>
327 <td class="md" valign="top"> ) </td>
328 <td class="md" nowrap><code> [inline]</code></td>
334 <table cellspacing="5" cellpadding="0" border="0">
342 get the number of active segments for this consumer <dl compact><dt><b>Returns:</b></dt><dd>number of active segments </dd></dl>
345 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00081">81</a> of file <a class="el" href="AliHLTConsumerDescriptor_8h-source.html">AliHLTConsumerDescriptor.h</a>.
347 References <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00092">fSegments</a>.
349 Referenced by <a class="el" href="AliHLTDataBuffer_8cxx-source.html#l00231">AliHLTDataBuffer::Release()</a>.<div class="fragment"><pre class="fragment">00081 {<span class="keywordflow">return</span> <a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.size();};
355 <a class="anchor" name="a3" doxytag="AliHLTConsumerDescriptor::operator="></a><p>
356 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
359 <table cellpadding="0" cellspacing="0" border="0">
361 <td class="md" nowrap valign="top"><a class="el" href="classAliHLTConsumerDescriptor.html">AliHLTConsumerDescriptor</a> & AliHLTConsumerDescriptor::operator= </td>
362 <td class="md" valign="top">( </td>
363 <td class="md" nowrap valign="top">const <a class="el" href="classAliHLTConsumerDescriptor.html">AliHLTConsumerDescriptor</a> & </td>
364 <td class="mdname1" valign="top" nowrap> </td>
365 <td class="md" valign="top"> ) </td>
366 <td class="md" nowrap></td>
372 <table cellspacing="5" cellpadding="0" border="0">
380 not a valid assignment op, but defined according to effective C++ style
382 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00068">68</a> of file <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html">AliHLTConsumerDescriptor.cxx</a>.
384 References <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00089">fpConsumer</a>.<div class="fragment"><pre class="fragment">00069 {
385 00070 <span class="comment">// see header file for function documentation</span>
387 00072 <span class="comment">// we can simply transfer the pointer to th new object since there are no</span>
388 00073 <span class="comment">// release actions in the destructor</span>
389 00074 <a class="code" href="classAliHLTConsumerDescriptor.html#r0">fpConsumer</a>=desc.<a class="code" href="classAliHLTConsumerDescriptor.html#r0">fpConsumer</a>;
390 00075 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
397 <a class="anchor" name="a9" doxytag="AliHLTConsumerDescriptor::ReleaseActiveDataSegment"></a><p>
398 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
401 <table cellpadding="0" cellspacing="0" border="0">
403 <td class="md" nowrap valign="top">int AliHLTConsumerDescriptor::ReleaseActiveDataSegment </td>
404 <td class="md" valign="top">( </td>
405 <td class="md" nowrap valign="top"><a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> </td>
406 <td class="mdname" nowrap> <em>offset</em>, </td>
409 <td class="md" nowrap align="right"></td>
411 <td class="md" nowrap><a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> </td>
412 <td class="mdname" nowrap> <em>size</em></td>
416 <td class="md">) </td>
417 <td class="md" colspan="2"></td>
423 <table cellspacing="5" cellpadding="0" border="0">
433 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00115">115</a> of file <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html">AliHLTConsumerDescriptor.cxx</a>.
435 References <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00092">fSegments</a>.
437 Referenced by <a class="el" href="AliHLTDataBuffer_8cxx-source.html#l00231">AliHLTDataBuffer::Release()</a>.<div class="fragment"><pre class="fragment">00116 {
438 00117 <span class="comment">// see header file for function documentation</span>
439 00118 <span class="keywordtype">int</span> iResult=0;
440 00119 <span class="keywordflow">if</span> (<a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.size()>0) {
441 00120 vector<AliHLTDataBuffer::AliHLTDataSegment>::iterator segment=<a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.begin();
442 00121 <span class="keywordflow">while</span> (segment!=<a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.end()) {
443 00122 <span class="keywordflow">if</span> ((iResult=((*segment).fSegmentOffset==offset && (*segment).fSegmentSize==size))>0) {
444 00123 <a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.erase(segment);
445 00124 <span class="keywordflow">break</span>;
449 00128 <span class="keywordflow">if</span> (iResult==0) {
450 00129 <span class="comment">//HLTWarning("no data segment (%d:%d) active for consumer %p", offset, size, this);</span>
451 00130 iResult=-ENOENT;
453 00132 } <span class="keywordflow">else</span> {
454 00133 <span class="comment">//HLTWarning("no data segment active for consumer %p", this);</span>
455 00134 iResult=-ENODATA;
457 00136 <span class="keywordflow">return</span> iResult;
464 <a class="anchor" name="a6" doxytag="AliHLTConsumerDescriptor::SetActiveDataSegment"></a><p>
465 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
468 <table cellpadding="0" cellspacing="0" border="0">
470 <td class="md" nowrap valign="top">int AliHLTConsumerDescriptor::SetActiveDataSegment </td>
471 <td class="md" valign="top">( </td>
472 <td class="md" nowrap valign="top"><a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> </td>
473 <td class="mdname" nowrap> <em>offset</em>, </td>
476 <td class="md" nowrap align="right"></td>
478 <td class="md" nowrap><a class="el" href="AliHLTDataTypes_8h.html#a6">AliHLTUInt32_t</a> </td>
479 <td class="mdname" nowrap> <em>size</em></td>
483 <td class="md">) </td>
484 <td class="md" colspan="2"></td>
490 <table cellspacing="5" cellpadding="0" border="0">
498 Set an active data segment. the pointer will be handled in a container, no allocation, copy or cleanup. <dl compact><dt><b>Parameters:</b></dt><dd>
499 <table border="0" cellspacing="2" cellpadding="0">
500 <tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>offset of the segment in the buffer </td></tr>
501 <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>size of the segment in the buffer </td></tr>
504 <dl compact><dt><b>Returns:</b></dt><dd>>=0 if succeeded </dd></dl>
507 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00086">86</a> of file <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html">AliHLTConsumerDescriptor.cxx</a>.
509 References <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00092">fSegments</a>.
511 Referenced by <a class="el" href="AliHLTDataBuffer_8cxx-source.html#l00170">AliHLTDataBuffer::Subscribe()</a>.<div class="fragment"><pre class="fragment">00087 {
512 00088 <span class="comment">// see header file for function documentation</span>
513 00089 <span class="keywordtype">int</span> iResult=0;
514 00090 <a class="code" href="classAliHLTDataBuffer_1_1AliHLTDataSegment.html">AliHLTDataBuffer::AliHLTDataSegment</a> segment(offset, size);
515 00091 <a class="code" href="classAliHLTConsumerDescriptor.html#r1">fSegments</a>.push_back(segment);
516 00092 <span class="comment">//HLTDebug("set active segment (%d:%d) for consumer %p", offset, size, this);</span>
517 00093 <span class="keywordflow">return</span> iResult;
524 <hr><h2>Member Data Documentation</h2>
525 <a class="anchor" name="r0" doxytag="AliHLTConsumerDescriptor::fpConsumer"></a><p>
526 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
529 <table cellpadding="0" cellspacing="0" border="0">
531 <td class="md" nowrap valign="top"><a class="el" href="classAliHLTComponent.html">AliHLTComponent</a>* <a class="el" href="classAliHLTConsumerDescriptor.html#r0">AliHLTConsumerDescriptor::fpConsumer</a><code> [private]</code> </td>
537 <table cellspacing="5" cellpadding="0" border="0">
547 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00089">89</a> of file <a class="el" href="AliHLTConsumerDescriptor_8h-source.html">AliHLTConsumerDescriptor.h</a>.
549 Referenced by <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00068">operator=()</a>. </td>
552 <a class="anchor" name="r1" doxytag="AliHLTConsumerDescriptor::fSegments"></a><p>
553 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
556 <table cellpadding="0" cellspacing="0" border="0">
558 <td class="md" nowrap valign="top">vector<<a class="el" href="classAliHLTDataBuffer_1_1AliHLTDataSegment.html">AliHLTDataBuffer::AliHLTDataSegment</a>> <a class="el" href="classAliHLTConsumerDescriptor.html#r1">AliHLTConsumerDescriptor::fSegments</a><code> [private]</code> </td>
564 <table cellspacing="5" cellpadding="0" border="0">
574 list of data segments
576 Definition at line <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00092">92</a> of file <a class="el" href="AliHLTConsumerDescriptor_8h-source.html">AliHLTConsumerDescriptor.h</a>.
578 Referenced by <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00046">AliHLTConsumerDescriptor()</a>, <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00096">CheckActiveDataSegment()</a>, <a class="el" href="AliHLTConsumerDescriptor_8h-source.html#l00081">GetNofActiveSegments()</a>, <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00115">ReleaseActiveDataSegment()</a>, <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00086">SetActiveDataSegment()</a>, and <a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html#l00078">~AliHLTConsumerDescriptor()</a>. </td>
581 <hr>The documentation for this class was generated from the following files:<ul>
582 <li>/home/perthi/cern/aliroot/AliRoot_head020507/HLT/BASE/<a class="el" href="AliHLTConsumerDescriptor_8h-source.html">AliHLTConsumerDescriptor.h</a><li>/home/perthi/cern/aliroot/AliRoot_head020507/HLT/BASE/<a class="el" href="AliHLTConsumerDescriptor_8cxx-source.html">AliHLTConsumerDescriptor.cxx</a></ul>
583 <hr size="1"><address style="align: right;"><small>Generated on Fri May 4 04:49:53 2007 for AliHLTPHOS by
584 <a href="http://www.doxygen.org/index.html">
585 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>