7#ifndef PXR_IMAGING_HD_LAZY_CONTAINER_DATA_SOURCE_H
8#define PXR_IMAGING_HD_LAZY_CONTAINER_DATA_SOURCE_H
10#include "pxr/imaging/hd/dataSource.h"
12PXR_NAMESPACE_OPEN_SCOPE
24 using Thunk = std::function<HdContainerDataSourceHandle()>;
29 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
39 HdContainerDataSourceHandle _GetSrc();
42 HdContainerDataSourceAtomicHandle _src;
45PXR_NAMESPACE_CLOSE_SCOPE
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
A container data source lazily evaluating the given thunk to forward all calls to the container data ...
HD_API TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
HD_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
Token for efficient comparison, assignment, and hashing of known strings.
std::vector< TfToken > TfTokenVector
Convenience types.