24#ifndef PXR_IMAGING_HD_LAZY_CONTAINER_DATA_SOURCE_H
25#define PXR_IMAGING_HD_LAZY_CONTAINER_DATA_SOURCE_H
27#include "pxr/imaging/hd/dataSource.h"
29PXR_NAMESPACE_OPEN_SCOPE
41 using Thunk = std::function<HdContainerDataSourceHandle()>;
46 HdDataSourceBaseHandle
Get(
const TfToken &name)
override;
56 HdContainerDataSourceHandle _GetSrc();
59 HdContainerDataSourceAtomicHandle _src;
62PXR_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.