All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdRetainedSmallVectorDataSource Class Reference

#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
HD_API HdDataSourceBaseHandle GetElement (size_t element) override
- Public Member Functions inherited from HdVectorDataSource
- Public Member Functions inherited from HdDataSourceBase
virtual HD_API ~HdDataSourceBase ()=0

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.

Constructor & Destructor Documentation

HD_API HdRetainedSmallVectorDataSource::HdRetainedSmallVectorDataSource ( size_t  count,
const HdDataSourceBaseHandle *  values 

Member Function Documentation

HD_API HdDataSourceBaseHandle HdRetainedSmallVectorDataSource::GetElement ( size_t  element)

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.

HD_API size_t HdRetainedSmallVectorDataSource::GetNumElements ( )

Return the number of elements in this datasource. This call is expected to be threadsafe.

Implements HdVectorDataSource.

HdRetainedSmallVectorDataSource::HD_DECLARE_DATASOURCE ( HdRetainedSmallVectorDataSource  )

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