HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Hd_SortedIds Class Reference

#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 SdfPathVectorGetIds ()
 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

HD_API Hd_SortedIds::Hd_SortedIds ( )
HD_API Hd_SortedIds::~Hd_SortedIds ( )
default
HD_API Hd_SortedIds::Hd_SortedIds ( Hd_SortedIds &&  other)

Member Function Documentation

HD_API void Hd_SortedIds::Clear ( )

Removes all ids from the collection.

HD_API const SdfPathVector& Hd_SortedIds::GetIds ( )

Sorts the ids if needed and returns the sorted list of ids.

HD_API void Hd_SortedIds::Insert ( const SdfPath id)

Add a new id to the collection.

HD_API void Hd_SortedIds::Remove ( const SdfPath id)

Remove an id from the collection.

HD_API void Hd_SortedIds::RemoveRange ( size_t  start,
size_t  end 
)

Remove a range of id from the collection. Range defined by position index in sorted list. end is inclusive.


The documentation for this class was generated from the following file: