Beispiel #1
0
 /**
  * Finds a FLARMNetRecord object based on the given FLARM id
  * @param id FLARM id
  * @return FLARMNetRecord object
  */
 gcc_pure
 const FlarmNetRecord *FindRecordById(FlarmId id) const {
   auto i = map.find(id);
   return i != map.end()
     ? &i->second
     : NULL;
 }
Beispiel #2
0
StackMaps::RecordMap StackMaps::computeRecordMap() const
{
    RecordMap result;
    for (unsigned i = records.size(); i--;)
        result.add(records[i].patchpointID, Vector<Record>()).iterator->value.append(records[i]);
    return result;
}
Beispiel #3
0
StackMaps::RecordMap StackMaps::getRecordMap() const
{
    RecordMap result;
    for (unsigned i = records.size(); i--;)
        result.add(records[i].patchpointID, records[i]);
    return result;
}
Beispiel #4
0
 RecordMap::const_iterator end() const {
   return map.end();
 }
Beispiel #5
0
 RecordMap::const_iterator begin() const {
   return map.begin();
 }
Beispiel #6
0
 void Clear() {
   map.clear();
 }
Beispiel #7
0
 bool IsEmpty() const {
   return map.empty();
 }