24 #ifndef PXR_IMAGING_HD_MAP_CONTAINER_DATA_SOURCE_H 25 #define PXR_IMAGING_HD_MAP_CONTAINER_DATA_SOURCE_H 27 #include "pxr/imaging/hd/dataSource.h" 29 PXR_NAMESPACE_OPEN_SCOPE
41 std::function<HdDataSourceBaseHandle(
const HdDataSourceBaseHandle &)>;
47 const ValueFunction &f,
48 const HdContainerDataSourceHandle &src);
56 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
60 HdContainerDataSourceHandle _src;
65 PXR_NAMESPACE_CLOSE_SCOPE
HD_API HdMapContainerDataSource(const ValueFunction &f, const HdContainerDataSourceHandle &src)
(Lazily) Create new container data source by applying given function to all data sources.
HD_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
HD_API TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
Token for efficient comparison, assignment, and hashing of known strings.
std::vector< TfToken > TfTokenVector
Convenience types.
Applies function to all data sources in a container data source (non-recursively).