📄 classdbtimeseriesprocessor.html
字号:
<td>
</td>
<td>
<p>
Get the time of the last element in time series <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>oid</em> </td><td>
time series identifer (OID of the object associated with this time series) </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
latest time in times series or -1 if there are no elements in time series </dl> </td>
</tr>
</table>
<a name="dbTimeSeriesProcessora5" doxytag="dbTimeSeriesProcessor::getNumberOfElements"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top"> size_t dbTimeSeriesProcessor< T >::getNumberOfElements </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">oid_t </td>
<td class="mdname1" valign="top" nowrap> <em>oid</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Get number of elements in time series. <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>oid</em> </td><td>
time series identifer (OID of the object associated with this time series) </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
number of elements in time series. </dl> </td>
</tr>
</table>
<a name="dbTimeSeriesProcessora10" doxytag="dbTimeSeriesProcessor::hasElement"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top"> bool dbTimeSeriesProcessor< T >::hasElement </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">oid_t </td>
<td class="mdname" nowrap> <em>oid</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>time_t </td>
<td class="mdname" nowrap> <em>t</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Check if there is element for specified data in time series <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>oid</em> </td><td>
time series identifer (OID of the object associated with this time series) </td></tr>
<tr><td valign=top><em>t</em> </td><td>
timestamp of checked element </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
<code>true</code> if element with specifed times exists in time series </dl> </td>
</tr>
</table>
<a name="dbTimeSeriesProcessora0" doxytag="dbTimeSeriesProcessor::process"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top"> virtual void dbTimeSeriesProcessor< T >::process </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">T const & </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Virtual method for processing elements, Should be redefinedin derived class. <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>data</em> </td><td>
reference to the processed data element </td></tr>
</table>
</dl> </td>
</tr>
</table>
<a name="dbTimeSeriesProcessora12" doxytag="dbTimeSeriesProcessor::remove"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top"> int dbTimeSeriesProcessor< T >::remove </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">oid_t </td>
<td class="mdname" nowrap> <em>oid</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>time_t </td>
<td class="mdname" nowrap> <em>from</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>time_t </td>
<td class="mdname" nowrap> <em>till</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Remove elements for the sepcified period <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>oid</em> </td><td>
time series identifer (OID of the object associated with this time series) </td></tr>
<tr><td valign=top><em>from</em> </td><td>
inclusive low bound for element timestamp (set 0 to disable this criteria) </td></tr>
<tr><td valign=top><em>till</em> </td><td>
inclusive high bound for element timestamp (set INFINITE_TIME to disable this criteria) </td></tr>
</table>
</dl><dl compact><dt><b>Returns: </b></dt><dd>
number of removed elements </dl> </td>
</tr>
</table>
<a name="dbTimeSeriesProcessora2" doxytag="dbTimeSeriesProcessor::select"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top"> void dbTimeSeriesProcessor< T >::select </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">oid_t </td>
<td class="mdname" nowrap> <em>oid</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>time_t </td>
<td class="mdname" nowrap> <em>from</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>time_t </td>
<td class="mdname" nowrap> <em>till</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Process elements in the block belonging to the specified range <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>oid</em> </td><td>
time series identifer (OID of the object associated with this time series) </td></tr>
<tr><td valign=top><em>from</em> </td><td>
inclusive low bound for element timestamp (set 0 to disable this criteria) </td></tr>
<tr><td valign=top><em>till</em> </td><td>
inclusive high bound for element timestamp (set INFINITE_TIME to disable this criteria) </td></tr>
</table>
</dl> </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="timeseries_8h-source.html">timeseries.h</a></ul>
<hr><address style="align: right;"><small>Generated on Thu Feb 14 12:42:31 2008 for FastDB by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -