Loading...
Searching...
No Matches
HdRetainedSmallVectorDataSource Class Reference

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.
 

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: