HdRetainedSmallVectorDataSource Class Reference

A retained data source version of HdVectorDataSource. More...

+ Inheritance diagram for HdRetainedSmallVectorDataSource:

Public Member Functions

 HD_DECLARE_DATASOURCE (HdRetainedSmallVectorDataSource)
 
HD_API HdRetainedSmallVectorDataSource (size_t count, HdDataSourceBaseHandle *values)
 
HD_API size_t GetNumElements () override
 Return the number of elements in this datasource. More...
 
HD_API HdDataSourceBaseHandle GetElement (size_t element) override
 Return the element at position element in this datasource. More...
 
- Public Member Functions inherited from HdVectorDataSource
 HD_DECLARE_DATASOURCE_ABSTRACT (HdVectorDataSource)
 

Detailed Description

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.

Member Function Documentation

◆ GetElement()

HD_API HdDataSourceBaseHandle GetElement ( size_t  element)
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.

◆ GetNumElements()

HD_API size_t GetNumElements ( )
overridevirtual

Return the number of elements in this datasource.

This call is expected to be threadsafe.

Implements HdVectorDataSource.


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