HDK
|
#include <retainedDataSource.h>
Public Member Functions | |
HD_DECLARE_DATASOURCE (HdRetainedSmallVectorDataSource) | |
HD_API | HdRetainedSmallVectorDataSource (size_t count, const HdDataSourceBaseHandle *values) |
HD_API size_t | GetNumElements () override |
HD_API HdDataSourceBaseHandle | GetElement (size_t element) override |
Public Member Functions inherited from HdVectorDataSource | |
HD_DECLARE_DATASOURCE_ABSTRACT (HdVectorDataSource) | |
Public Member Functions inherited from HdDataSourceBase | |
virtual HD_API | ~HdDataSourceBase ()=0 |
A retained data source version of HdVectorDataSource.
Internally it uses a TfSmallVector with up to 32 locally stored entries for storage.
Definition at line 349 of file retainedDataSource.h.
HD_API HdRetainedSmallVectorDataSource::HdRetainedSmallVectorDataSource | ( | size_t | count, |
const HdDataSourceBaseHandle * | values | ||
) |
|
overridevirtual |
Return the element at position element
in this datasource. This is expected to return non-null for the range [0, numElements
). This call is expected to be threadsafe.
Implements HdVectorDataSource.
|
overridevirtual |
Return the number of elements in this datasource. This call is expected to be threadsafe.
Implements HdVectorDataSource.
HdRetainedSmallVectorDataSource::HD_DECLARE_DATASOURCE | ( | HdRetainedSmallVectorDataSource | ) |