HDK
|
#include <sortedIds.h>
Public Member Functions | |
HD_API | Hd_SortedIds () |
HD_API | ~Hd_SortedIds ()=default |
HD_API | Hd_SortedIds (Hd_SortedIds &&other) |
HD_API const SdfPathVector & | GetIds () |
Sorts the ids if needed and returns the sorted list of ids. More... | |
HD_API void | Insert (const SdfPath &id) |
Add a new id to the collection. More... | |
HD_API void | Remove (const SdfPath &id) |
Remove an id from the collection. More... | |
HD_API void | RemoveRange (size_t start, size_t end) |
HD_API void | Clear () |
Removes all ids from the collection. More... | |
Manages a container of Hydra Ids in a sorted order.
For performance reasons, sorting of the list is deferred due to inserting a large number of items at once.
The class chooses the type of sort based on how many unsorted items there are in the list.
Definition at line 43 of file sortedIds.h.
HD_API Hd_SortedIds::Hd_SortedIds | ( | ) |
|
default |
HD_API Hd_SortedIds::Hd_SortedIds | ( | Hd_SortedIds && | other | ) |
HD_API const SdfPathVector& Hd_SortedIds::GetIds | ( | ) |
Sorts the ids if needed and returns the sorted list of ids.
Remove a range of id from the collection. Range defined by position index in sorted list. end is inclusive.