root/doc/html/classitpp_1_1Data__Event.html @ 353

Revision 353, 10.3 kB (checked in by smidl, 16 years ago)

doc

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mixpp: itpp::Data_Event&lt; ObjectType, DataType &gt; Class Template Reference</title>
4<link href="tabs.css" rel="stylesheet" type="text/css">
5<link href="doxygen.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.8 -->
8<script type="text/javascript">
9<!--
10function changeDisplayState (e){
11  var num=this.id.replace(/[^[0-9]/g,'');
12  var button=this.firstChild;
13  var sectionDiv=document.getElementById('dynsection'+num);
14  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
15    sectionDiv.style.display='block';
16    button.src='open.gif';
17  }else{
18    sectionDiv.style.display='none';
19    button.src='closed.gif';
20  }
21}
22function initDynSections(){
23  var divs=document.getElementsByTagName('div');
24  var sectionCounter=1;
25  for(var i=0;i<divs.length-1;i++){
26    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
27      var header=divs[i];
28      var section=divs[i+1];
29      var button=header.firstChild;
30      if (button!='IMG'){
31        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
32        button=document.createElement('img');
33        divs[i].insertBefore(button,divs[i].firstChild);
34      }
35      header.style.cursor='pointer';
36      header.onclick=changeDisplayState;
37      header.id='dynheader'+sectionCounter;
38      button.src='closed.gif';
39      section.id='dynsection'+sectionCounter;
40      section.style.display='none';
41      section.style.marginLeft='14px';
42      sectionCounter++;
43    }
44  }
45}
46window.onload = initDynSections;
47-->
48</script>
49<div class="navigation" id="top">
50  <div class="tabs">
51    <ul>
52      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
53      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li><a href="modules.html"><span>Modules</span></a></li>
55      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
56      <li><a href="files.html"><span>Files</span></a></li>
57    </ul>
58  </div>
59  <div class="tabs">
60    <ul>
61      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
62      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
63      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
64      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
65    </ul>
66  </div>
67  <div class="navpath"><b>itpp</b>::<a class="el" href="classitpp_1_1Data__Event.html">Data_Event</a>
68  </div>
69</div>
70<div class="contents">
71<h1>itpp::Data_Event&lt; ObjectType, DataType &gt; Class Template Reference<br>
72<small>
73[<a class="el" href="group__protocol.html">Protocols Module</a>]</small>
74</h1><!-- doxytag: class="itpp::Data_Event" --><!-- doxytag: inherits="itpp::Base_Event" -->An <a class="el" href="classitpp_1_1Event.html" title="An Event class that executes a function when the event expires.">Event</a> class that executes a function with some data as input when the event expires. 
75<a href="#_details">More...</a>
76<p>
77<code>#include &lt;<a class="el" href="events_8h-source.html">events.h</a>&gt;</code>
78<p>
79
80<p>
81<a href="classitpp_1_1Data__Event-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
82<tr><td></td></tr>
83<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
84<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7d9dc9d82a06e3a2cc2095e2c402af59"></a><!-- doxytag: member="itpp::Data_Event::Data_Event" ref="7d9dc9d82a06e3a2cc2095e2c402af59" args="(ObjectType *object_pointer, void(ObjectType::*object_function_pointer)(DataType data), DataType data, const Ttype delta_time)" -->
85&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Data__Event.html#7d9dc9d82a06e3a2cc2095e2c402af59">Data_Event</a> (ObjectType *object_pointer, void(ObjectType::*object_function_pointer)(DataType data), DataType data, const Ttype delta_time)</td></tr>
86
87<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct an <a class="el" href="classitpp_1_1Event.html" title="An Event class that executes a function when the event expires.">Event</a> to expire delta_time from now by calling the function (*object_pointer.*object_function_pointer)(data). <br></td></tr>
88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d373abc4d9300ee3ba35a7aac4b4a143"></a><!-- doxytag: member="itpp::Data_Event::~Data_Event" ref="d373abc4d9300ee3ba35a7aac4b4a143" args="()" -->
89virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Data__Event.html#d373abc4d9300ee3ba35a7aac4b4a143">~Data_Event</a> ()</td></tr>
90
91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
92<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="671907a19eb43c5aa0b7b007adc44168"></a><!-- doxytag: member="itpp::Data_Event::exec" ref="671907a19eb43c5aa0b7b007adc44168" args="(void)" -->
93virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Data__Event.html#671907a19eb43c5aa0b7b007adc44168">exec</a> (void)</td></tr>
94
95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Execute (call) the assigned function with user data. <br></td></tr>
96<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4d007ec59181c639a4677d95d4011b70"></a><!-- doxytag: member="itpp::Data_Event::cancel" ref="4d007ec59181c639a4677d95d4011b70" args="()" -->
97void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Base__Event.html#4d007ec59181c639a4677d95d4011b70">cancel</a> ()</td></tr>
98
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Cancel an event. <br></td></tr>
100<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
101<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1620ad79858e3690a47502639c848f71"></a><!-- doxytag: member="itpp::Data_Event::delta_t" ref="1620ad79858e3690a47502639c848f71" args="" -->
102Ttype&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Base__Event.html#1620ad79858e3690a47502639c848f71">delta_t</a></td></tr>
103
104<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ADD DOCUMENTATION HERE. <br></td></tr>
105<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e1908543c3f79105e22f89edae9c0ec8"></a><!-- doxytag: member="itpp::Data_Event::expire_t" ref="e1908543c3f79105e22f89edae9c0ec8" args="" -->
106Ttype&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Base__Event.html#e1908543c3f79105e22f89edae9c0ec8">expire_t</a></td></tr>
107
108<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ADD DOCUMENTATION HERE. <br></td></tr>
109<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05911900c8118201c58541a0c4d4522f"></a><!-- doxytag: member="itpp::Data_Event::active" ref="05911900c8118201c58541a0c4d4522f" args="" -->
110bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Base__Event.html#05911900c8118201c58541a0c4d4522f">active</a></td></tr>
111
112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ADD DOCUMENTATION HERE. <br></td></tr>
113<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f9afce7195120eeba4656a2c9a34480e"></a><!-- doxytag: member="itpp::Data_Event::id" ref="f9afce7195120eeba4656a2c9a34480e" args="" -->
114unsigned long long int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Base__Event.html#f9afce7195120eeba4656a2c9a34480e">id</a></td></tr>
115
116<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ADD DOCUMENTATION HERE. <br></td></tr>
117<tr><td colspan="2"><br><h2>Static Protected Attributes</h2></td></tr>
118<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf53c4e00e13b18a5aed1203aa5cb22b"></a><!-- doxytag: member="itpp::Data_Event::global_id" ref="bf53c4e00e13b18a5aed1203aa5cb22b" args="" -->
119static unsigned long long int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Base__Event.html#bf53c4e00e13b18a5aed1203aa5cb22b">global_id</a> = 0</td></tr>
120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ADD DOCUMENTATION HERE. <br></td></tr>
122<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
123<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c3d2ef7b2c58fe89177dccb0c8d8fde4"></a><!-- doxytag: member="itpp::Data_Event::Base_Signal" ref="c3d2ef7b2c58fe89177dccb0c8d8fde4" args="" -->
124class&nbsp;</td><td class="memItemRight" valign="bottom"><b>Base_Signal</b></td></tr>
125
126<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="344ea40d9d6c6a503c790dae68d41bbd"></a><!-- doxytag: member="itpp::Data_Event::Event_Queue" ref="344ea40d9d6c6a503c790dae68d41bbd" args="" -->
127class&nbsp;</td><td class="memItemRight" valign="bottom"><b>Event_Queue</b></td></tr>
128
129<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="629c246bbb968078cf6bf6277887d006"></a><!-- doxytag: member="itpp::Data_Event::Compare_Base_Event_Times" ref="629c246bbb968078cf6bf6277887d006" args="" -->
130struct&nbsp;</td><td class="memItemRight" valign="bottom"><b>Compare_Base_Event_Times</b></td></tr>
131
132</table>
133<hr><a name="_details"></a><h2>Detailed Description</h2>
134<h3>template&lt;class ObjectType, class DataType&gt;<br>
135 class itpp::Data_Event&lt; ObjectType, DataType &gt;</h3>
136
137An <a class="el" href="classitpp_1_1Event.html" title="An Event class that executes a function when the event expires.">Event</a> class that executes a function with some data as input when the event expires.
138<p>
139Since Events are objects you need supply both a pointer to the object and the function pointer to create the <a class="el" href="classitpp_1_1Event.html" title="An Event class that executes a function when the event expires.">Event</a> <hr>The documentation for this class was generated from the following file:<ul>
140<li><a class="el" href="events_8h-source.html">events.h</a></ul>
141</div>
142<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:19 2009 for mixpp by&nbsp;
143<a href="http://www.doxygen.org/index.html">
144<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
145</body>
146</html>
Note: See TracBrowser for help on using the browser.