|
A datasource representing indexed data. More...
#include <dataSource.h>
Public Member Functions | |
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 datasource representing indexed data.
This should be used when a scene index is expected to manipulate the indexing; for array-valued data, a HdSampledDataSource
can be used instead. Note that implementations are responsible for providing cache invalidation, if necessary.
Definition at line 130 of file dataSource.h.
|
pure virtual |
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.
Implemented in HdRetainedSmallVectorDataSource.
|
pure virtual |
Return the number of elements in this datasource.
This call is expected to be threadsafe.
Implemented in HdRetainedSmallVectorDataSource.