Apama
10.11.3.3
|
AP_TimestampSet_Functions. More...
#include <AP_TimestampSet.h>
Table of client visible functions exported by a timestamp instance. These are the only operations that may be performed by users of the timestamp object.
Note that all of these functions take an initial AP_TimestampSet* argument; this is analogous to the (hidden) 'this' pointer passed to a C++ object when a member function is invoked on it.
void(* AP_TimestampSet_Functions::addNow) (struct AP_TimestampSet *timestamp, AP_TimestampSetIndex index) |
addNow
Add a new index-time pair to the timestamp. The given index and current time will be copied into the timestamp. If an element with the same index already exists, it will NOT be overwritten.
timestamp | The AP_TimestampSet instance |
index | The index of the new element |
void(* AP_TimestampSet_Functions::addTime) (struct AP_TimestampSet *timestamp, AP_TimestampSetIndex index, AP_TimestampSetTime time) |
addTime
Add a new index-time pair to the timestamp. The given index and time will be copied into the timestamp. If an element with the same index already exists, it will NOT be overwritten.
timestamp | The AP_TimestampSet instance |
index | The index of the new element |
time | The time of the new element |
AP_TimestampSetTime(* AP_TimestampSet_Functions::findTime) (struct AP_TimestampSet *timestamp, AP_TimestampSetIndex index) |
findTime
Search for an indexed element in the timestamp and return its time.
timestamp | The AP_TimestampSet instance |
index | The element index to search for |
AP_TimestampSetTime(* AP_TimestampSet_Functions::findTimeAndRemove) (struct AP_TimestampSet *timestamp, AP_TimestampSetIndex index) |
findTimeAndRemove
Search for an indexed element in the timestamp and return its time. If found, the element will also be removed from the timestamp.
timestamp | The AP_TimestampSet instance |
index | The element index to search for |
AP_bool(* AP_TimestampSet_Functions::getNextStampAndRemove) (struct AP_TimestampSet *timestamp, AP_TimestampSetIndex *retIndex, AP_TimestampSetTime *retTime) |
getNextStampAndRemove
AP_uint32(* AP_TimestampSet_Functions::getSize) (struct AP_TimestampSet *timestamp) |
getSize
Return the number of elements in the AP_TimestampSet
timestamp | The AP_TimestampSet instance |
void(* AP_TimestampSet_Functions::replace) (struct AP_TimestampSet *timestamp, AP_TimestampSetIndex index, AP_TimestampSetTime newTime) |
replace
Change the time of an indexed element in the timestamp. If an element with the given index already exists, its time will be replaced with a copy of the given time. Otherwise, a new element is created just as though addTime() had been called.
timestamp | The AP_TimestampSet instance |
index | The index of the element to be updated |
time | The new time for the indexed element |
void(* AP_TimestampSet_Functions::replaceWithNow) (struct AP_TimestampSet *timestamp, AP_TimestampSetIndex index) |
replaceWithNow
Change the time of an indexed element in the timestamp. If an element with the given index already exists, its time will be replaced with a copy of the given time. Otherwise, a new element is created just as though addNow() had been called.
timestamp | The AP_TimestampSet instance |
index | The index of the element to be updated |
AP_char8*(* AP_TimestampSet_Functions::toString) (struct AP_TimestampSet *timestamp) |
toString
Return a printable string representation of the timestamp. The returned string is owned by the caller and should be freed when it is no longer required using the char8free function.
timestamp | The AP_TimestampSet instance |