HDK
|
#include <sortedIds.h>
Public Member Functions | |
HD_API | Hd_SortedIds () |
Default ctor produces an empty container. More... | |
HD_API | ~Hd_SortedIds () |
HD_API | Hd_SortedIds (Hd_SortedIds const &) |
Copy construct. More... | |
HD_API | Hd_SortedIds (Hd_SortedIds &&) |
Move construct. More... | |
HD_API Hd_SortedIds & | operator= (Hd_SortedIds const &) |
Copy assign. More... | |
HD_API Hd_SortedIds & | operator= (Hd_SortedIds &&) |
Move assign. More... | |
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) |
HD_API void | Remove (const SdfPath &id) |
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.
Note that this class behaves like a multiset. Duplicate elements are allowed.
Definition at line 25 of file sortedIds.h.
HD_API Hd_SortedIds::Hd_SortedIds | ( | ) |
Default ctor produces an empty container.
HD_API Hd_SortedIds::~Hd_SortedIds | ( | ) |
HD_API Hd_SortedIds::Hd_SortedIds | ( | Hd_SortedIds const & | ) |
Copy construct.
HD_API Hd_SortedIds::Hd_SortedIds | ( | Hd_SortedIds && | ) |
Move construct.
HD_API const SdfPathVector& Hd_SortedIds::GetIds | ( | ) |
Sorts the ids if needed and returns the sorted list of ids.
Add an id to the collection. If the id is already present in the collection, a duplicate id is added.
HD_API Hd_SortedIds& Hd_SortedIds::operator= | ( | Hd_SortedIds const & | ) |
Copy assign.
HD_API Hd_SortedIds& Hd_SortedIds::operator= | ( | Hd_SortedIds && | ) |
Move assign.
Remove up to one occurrence of id from the collection. If the id is not present, do nothing. Otherwise remove one copy of id.
Remove a range of id from the collection. Range defined by position index in sorted list. end is inclusive.