This class keep a list of mapped part info object. The list of objects are sorted according to their validity period. Starting from the future to the past.
Definition at line 409 of file cpmapper.h.
typedef std::list<MappedPartInfo> OSB_LIB::MappedPartInfoList::MappedPartInfos |
void OSB_LIB::MappedPartInfoList::add | ( | const MappedPartInfo & | info | ) |
Add in mapped part info into the list.
This function will internally sort the list of mapped part info according to their release date from future to past.
info | New mapped part info to be inserted. |
void OSB_LIB::MappedPartInfoList::map2Cp | ( | Id< ConnectionPt > & | cpId, | |
const DateTime & | ts | |||
) | const |
Get the valid connection point at the given time.
This function will take in a time stamp and search through the list of mapped part info for a connection point that is valid for the given time.
cpId | Connection point id found. | |
ts | Timestamp of the mapping. |
void OSB_LIB::MappedPartInfoList::print | ( | std::ostream & | os, | |
std::string | spacer | |||
) | const |
Print for testing purposes.