mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 01:53:34 +08:00
GDTR collision checks, ordered storage
This commit is contained in:
@@ -30,6 +30,17 @@ class GlobalDataTypeRegistry : Noncopyable
|
||||
{ }
|
||||
};
|
||||
|
||||
struct EntryInsertionComparator
|
||||
{
|
||||
const uint16_t id;
|
||||
EntryInsertionComparator(Entry* dtd) : id(dtd->decriptor.getID()) { }
|
||||
bool operator()(const Entry* entry) const
|
||||
{
|
||||
assert(entry);
|
||||
return entry->decriptor.getID() > id;
|
||||
}
|
||||
};
|
||||
|
||||
typedef LinkedListRoot<Entry> List;
|
||||
List msgs_;
|
||||
List srvs_;
|
||||
|
||||
Reference in New Issue
Block a user