![]() |
|
A retained data source version of HdVectorDataSource. More...
#include <retainedDataSource.h>
Inheritance diagram for HdRetainedSmallVectorDataSource:Public Member Functions | |
| HD_DECLARE_DATASOURCE (HdRetainedSmallVectorDataSource) | |
| HD_API | HdRetainedSmallVectorDataSource (size_t count, const HdDataSourceBaseHandle *values) |
| HD_API size_t | GetNumElements () override |
| Return the number of elements in this datasource. | |
| HD_API HdDataSourceBaseHandle | GetElement (size_t element) override |
Return the element at position element in this datasource. | |
Public Member Functions inherited from HdVectorDataSource | |
| HD_DECLARE_DATASOURCE_ABSTRACT (HdVectorDataSource) | |
| virtual size_t | GetNumElements ()=0 |
| Return the number of elements in this datasource. | |
| virtual HdDataSourceBaseHandle | GetElement (size_t element)=0 |
Return the element at position element in this datasource. | |
A retained data source version of HdVectorDataSource.
Internally it uses a TfSmallVector with up to 32 locally stored entries for storage.
Definition at line 334 of file retainedDataSource.h.
|
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.