HdMapContainerDataSource Class Reference

Applies function to all data sources in a container data source (non-recursively). More...

+ Inheritance diagram for HdMapContainerDataSource:

Public Types

using ValueFunction = std::function< HdDataSourceBaseHandle(const HdDataSourceBaseHandle &)>
 

Public Member Functions

 HD_DECLARE_DATASOURCE (HdMapContainerDataSource)
 
HD_API HdMapContainerDataSource (const ValueFunction &f, const HdContainerDataSourceHandle &src)
 (Lazily) Create new container data source by applying given function to all data sources. More...
 
HD_API TfTokenVector GetNames () override
 Returns the list of names for which Get(...) is expected to return a non-null value. More...
 
HD_API HdDataSourceBaseHandle Get (const TfToken &name) override
 Returns the child datasource of the given name. More...
 
- Public Member Functions inherited from HdContainerDataSource
 HD_DECLARE_DATASOURCE_ABSTRACT (HdContainerDataSource)
 

Additional Inherited Members

- Static Public Member Functions inherited from HdContainerDataSource
static HD_API HdDataSourceBaseHandle Get (const Handle &container, const HdDataSourceLocator &locator)
 A convenience function: given container, return the descendant identified by locator, which may be at any depth. More...
 

Detailed Description

Applies function to all data sources in a container data source (non-recursively).

Definition at line 35 of file mapContainerDataSource.h.

Constructor & Destructor Documentation

◆ HdMapContainerDataSource()

HD_API HdMapContainerDataSource ( const ValueFunction &  f,
const HdContainerDataSourceHandle &  src 
)

(Lazily) Create new container data source by applying given function to all data sources.

Member Function Documentation

◆ Get()

HD_API HdDataSourceBaseHandle Get ( const TfToken name)
overridevirtual

Returns the child datasource of the given name.

This call is expected to be threadsafe.

Implements HdContainerDataSource.

◆ GetNames()

HD_API TfTokenVector GetNames ( )
overridevirtual

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.


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