![]() |
MAK RTIspy API Documentation for HLA 1516
|
Inheritance diagram for DtRetractInfoList:
Collaboration diagram for DtRetractInfoList:Public Member Functions | |
| DtRetractInfoList (DtLogicalTimeFactory *logicalTimeFactory) | |
| virtual | ~DtRetractInfoList () |
| virtual DtRetractInfoItem * | add (DtRetractInfo *info) |
| retract entry is added to list. | |
| virtual DtRetractInfoItem * | add (const DtRtiMsg &msg) |
| Add an entry using data from the supplied message. | |
| virtual void | removeAll () |
| Calls remove for all elements in the list. | |
| virtual void | deleteAll (RTI::FedTime const &time) |
| Delete all entries with a time less then the supplied time. | |
| virtual DtRetractInfo * | removeByNumber (unsigned long serialNumber) |
| Return and remove the entry with the supplied serial number. | |
| virtual void | deleteByNumber (unsigned long serialNumber) |
| Remove and delete the entry with the supplied serial number. | |
| virtual DtRetractInfo * | lookupByNumber (unsigned long serialNumber) |
| Return the entry for the given serial number. | |
| virtual DtRetractInfoItem * | firstRetractItem () const |
| Return first and last item on the list. | |
| virtual DtRetractInfoItem * | lastRetractItem () const |
| virtual DtRetractInfo * | minRetraction (RTI::FedTime const &lower, RTI::FedTime const &upper, bool includeLower) const |
| Return the retraction info for the item with the minimum time greater (equal if include is true) than the given lower time and less equal than the upper time; NULL if no such item found. | |
Public Member Functions inherited from DtSortedList | |
| DtSortedList (DtSortOrder sortOrderVal=DtSortOrderAscending) | |
| Constructor. | |
| virtual | ~DtSortedList () |
| Destructor - does NOT free memory of data associated with the items. | |
| DtSortedList (const DtSortedList &orig) | |
| Copy constructor. | |
| DtSortedList & | operator= (const DtSortedList &orig) |
| Assignment operator. | |
| virtual void | setSortOrder (DtSortOrder sortOrderValue) |
| Set/Get sort order. | |
| virtual DtSortOrder | sortOrder () const |
| virtual DtSortedListItem * | first () const |
| Return first and last item on the list. | |
| virtual DtSortedListItem * | last () const |
| unsigned | count () const |
| Returns the number of elements in the list. | |
| virtual bool | compareItems (const DtSortedListItem &firstItem, const DtSortedListItem &secondItem) const |
| Compare the two items based on sort order and return true if first comes first in order to second. | |
| virtual DtSortedListItem * | itemLookup (void *data) const |
| Returns the DtSortedListItem envelope object containing the indicated data element. | |
| virtual void | reverseSortOrder () |
| Reverses sort order of list. | |
| virtual void | printData (DtSortOrder order=DtSortOrderAscending) |
| Print the list. | |
Protected Member Functions | |
| virtual DtSortedListItem * | add (void *data) |
| Only allowed internally in this class. | |
| virtual void * | remove (DtSortedListItem *item) |
| Only allowed internally in this class See public method that requires serial number. | |
| virtual DtSortedListItem * | newItem (void *data) |
| Create a new DtRetractInfoItem envelope for the data to be inserted into the list. | |
| virtual DtRetractInfoItem * | lookupItem (unsigned long serialNumber) |
| Return the list item for the given serial number. | |
| DtRetractInfoList (const DtRetractInfoList &orig) | |
| Copy and assignment operators are disabled. | |
| DtRetractInfoList & | operator= (DtRetractInfoList const &orig) |
Protected Member Functions inherited from DtSortedList | |
| virtual void | addToList (DtSortedListItem *item, DtSortedListItem *before) |
| Add first item to the list before second. | |
| virtual void | removeFromList (DtSortedListItem *item) |
| Remove item from the list. Does NOT delete the data contained in item. | |
| virtual void | reposition (DtSortedListItem *item) |
| An item's data for sorting has changed. Reposition it within the list. | |
| virtual void | repositionForward (DtSortedListItem *item, DtSortedListItem *positionItem) |
| An item's data for sorting has changed. | |
| virtual void | repositionBackward (DtSortedListItem *item, DtSortedListItem *positionItem) |
| An item's data for sorting has changed. | |
| virtual void | insertBefore (DtSortedListItem *item, DtSortedListItem *positionItem) |
| Insert the first item before the second. | |
| virtual void | insertAfter (DtSortedListItem *item, DtSortedListItem *positionItem) |
| Insert the first item after the second. | |
Protected Attributes | |
| MAKRti::DtHashlist | mySerialIndexList |
| DtLogicalTimeFactory * | myLogicalTimeFactory |
Protected Attributes inherited from DtSortedList | |
| DtSortedListItem * | myFirst |
| DtSortedListItem * | myLast |
| unsigned | myCount |
| DtSortOrder | mySortOrder |
| DtRetractInfoList::DtRetractInfoList | ( | DtLogicalTimeFactory * | logicalTimeFactory | ) |
|
virtual |
References DtSortedList::first(), and DtSortedListItem::next().
|
protected |
Copy and assignment operators are disabled.
|
virtual |
retract entry is added to list.
References DtSortedList::add(), mySerialIndexList, and DtRetractInfo::serialNumber().
Referenced by add(), and DtConnectionMgr::sendStampedUtilityFunction().
|
virtual |
Add an entry using data from the supplied message.
References DtSortedList::add(), DtLogicalTimeFactory::makeInitial(), myLogicalTimeFactory, mySerialIndexList, DtRtiMsg::serialNumber(), and DtRtiMsg::time().
|
protectedvirtual |
|
virtual |
Delete all entries with a time less then the supplied time.
References DtSortedListItem::data(), DtSortedListItem::next(), NULL, DtRetractInfo::serialNumber(), and DtRetractInfo::time().
|
virtual |
Remove and delete the entry with the supplied serial number.
References removeByNumber().
|
inlinevirtual |
Return first and last item on the list.
DtRetractInfoItem is an envelope for your retract data. The data can be obtained using DtRetractInfoItem::RetractInfo()
References DtSortedList::first().
|
inlinevirtual |
References DtSortedList::last().
|
virtual |
Return the entry for the given serial number.
References mySerialIndexList, NULL, and DtRetractInfoItem::retractInfo().
|
protectedvirtual |
Return the list item for the given serial number.
References mySerialIndexList.
|
virtual |
Return the retraction info for the item with the minimum time greater (equal if include is true) than the given lower time and less equal than the upper time; NULL if no such item found.
References NULL, and DtRetractInfo::time().
|
protectedvirtual |
Create a new DtRetractInfoItem envelope for the data to be inserted into the list.
Reimplemented from DtSortedList.
|
protected |
|
protectedvirtual |
Only allowed internally in this class See public method that requires serial number.
Remove an element from the list. Item is the envelope containing the data element you would like to remove. Note: remove does not free memory of data associated with the item. It only frees the item. The data is returned to the caller for deletion if required.
Reimplemented from DtSortedList.
|
virtual |
Calls remove for all elements in the list.
It does NOT delete the data in the list. Merely removes the data from the list.
Reimplemented from DtSortedList.
References mySerialIndexList.
|
virtual |
Return and remove the entry with the supplied serial number.
References mySerialIndexList, and NULL.
Referenced by deleteByNumber().
|
protected |
Referenced by add().
|
protected |
Referenced by add(), lookupByNumber(), lookupItem(), removeAll(), and removeByNumber().