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

#include <lazyContainerDataSource.h>

+ Inheritance diagram for HdLazyContainerDataSource:

Public Types

using Thunk = std::function< HdContainerDataSourceHandle()>

Public Member Functions

 HD_DECLARE_DATASOURCE (HdLazyContainerDataSource)
HD_API TfTokenVector GetNames () override
HD_API HdDataSourceBaseHandle Get (const TfToken &name) override
HD_API ~HdLazyContainerDataSource ()
- Public Member Functions inherited from HdContainerDataSource
- Public Member Functions inherited from HdDataSourceBase
virtual HD_API ~HdDataSourceBase ()=0

Protected Member Functions

HD_API HdLazyContainerDataSource (const Thunk &thunk)

Additional Inherited Members

- Static Public Member Functions inherited from HdContainerDataSource
static HD_API
Get (const Handle &container, const HdDataSourceLocator &locator)

Detailed Description

A container data source lazily evaluating the given thunk to forward all calls to the container data source computed by the thunk.

Definition at line 36 of file lazyContainerDataSource.h.

Member Typedef Documentation

using HdLazyContainerDataSource::Thunk = std::function<HdContainerDataSourceHandle()>

Definition at line 41 of file lazyContainerDataSource.h.

Constructor & Destructor Documentation

HD_API HdLazyContainerDataSource::~HdLazyContainerDataSource ( )
HD_API HdLazyContainerDataSource::HdLazyContainerDataSource ( const Thunk thunk)

Member Function Documentation

HD_API HdDataSourceBaseHandle HdLazyContainerDataSource::Get ( const TfToken name)

Returns the child datasource of the given name. This call is expected to be threadsafe.

Implements HdContainerDataSource.

HD_API TfTokenVector HdLazyContainerDataSource::GetNames ( )

Returns the list of names for which Get(...) is expected to return a non-null value. This call is expected to be threadsafe.

Implements HdContainerDataSource.

HdLazyContainerDataSource::HD_DECLARE_DATASOURCE ( HdLazyContainerDataSource  )

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