Loading...
Searching...
No Matches
cache.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_PCP_CACHE_H
8#define PXR_USD_PCP_CACHE_H
9
10#include "pxr/pxr.h"
11#include "pxr/usd/pcp/api.h"
12#include "pxr/usd/pcp/dependency.h"
13#include "pxr/usd/pcp/errors.h"
14#include "pxr/usd/pcp/mapFunction.h"
15#include "pxr/usd/pcp/primIndex.h"
16#include "pxr/usd/pcp/propertyIndex.h"
18#include "pxr/usd/sdf/path.h"
19#include "pxr/usd/sdf/pathTable.h"
20
21#include "pxr/usd/ar/ar.h"
24#include "pxr/base/tf/functionRef.h"
25#include "pxr/base/tf/hashset.h"
26
27#include <memory>
28#include <string>
29#include <unordered_set>
30#include <vector>
31
32PXR_NAMESPACE_OPEN_SCOPE
33
34// Forward declarations:
35class PcpChanges;
36class PcpCacheChanges;
37class Pcp_Dependencies;
39class PcpLifeboat;
40class PcpNodeRef;
41class PcpMapFunction;
42
44TF_DECLARE_WEAK_AND_REF_PTRS(Pcp_LayerStackRegistry);
45SDF_DECLARE_HANDLES(SdfSpec);
46
77{
78 PcpCache(PcpCache const &) = delete;
79 PcpCache &operator=(PcpCache const &) = delete;
80public:
91 PCP_API
92 PcpCache(const PcpLayerStackIdentifier & layerStackIdentifier,
93 const std::string& fileFormatTarget = std::string(),
94 bool usd = false);
95 PCP_API ~PcpCache();
96
99
101 PCP_API
103
110 PCP_API
111 PcpLayerStackPtr GetLayerStack() const;
112
117 bool HasRootLayerStack(PcpLayerStackRefPtr const &layerStack) const {
118 return layerStack == _layerStack;
119 }
120
122 PCP_API
123 bool HasRootLayerStack(PcpLayerStackPtr const &layerStack) const;
124
126 PCP_API
127 bool IsUsd() const;
128
130 PCP_API
131 const std::string& GetFileFormatTarget() const;
132
135 PCP_API
137
144 PCP_API
146 PcpChanges* changes = NULL );
147
149 PCP_API
150 bool IsPayloadIncluded(const SdfPath &path) const;
151
153 using PayloadSet = std::unordered_set<SdfPath, SdfPath::Hash>;
154 PCP_API
155 PayloadSet const &GetIncludedPayloads() const;
156
168 PCP_API
169 void RequestPayloads( const SdfPathSet & pathsToInclude,
170 const SdfPathSet & pathsToExclude,
171 PcpChanges* changes = NULL );
172
204 PCP_API
205 void RequestLayerMuting(const std::vector<std::string>& layersToMute,
206 const std::vector<std::string>& layersToUnmute,
207 PcpChanges* changes = nullptr,
208 std::vector<std::string>* newLayersMuted = nullptr,
209 std::vector<std::string>* newLayersUnmuted =
210 nullptr);
211
215 PCP_API
216 const std::vector<std::string>& GetMutedLayers() const;
217
223 PCP_API
224 bool IsLayerMuted(const std::string& layerIdentifier) const;
225
233 PCP_API
234 bool IsLayerMuted(const SdfLayerHandle& anchorLayer,
235 const std::string& layerIdentifier,
236 std::string* canonicalMutedLayerIdentifier
237 = nullptr) const;
238
246 PCP_API
248
250
253
259 PCP_API
260 PcpLayerStackRefPtr
262 PcpErrorVector *allErrors);
263
266 PCP_API
267 PcpLayerStackPtr
268 FindLayerStack(const PcpLayerStackIdentifier &identifier) const;
269
272 PCP_API
273 bool UsesLayerStack(const PcpLayerStackPtr &layerStack) const;
274
278 PCP_API
279 const PcpPrimIndex &
280 ComputePrimIndex(const SdfPath &primPath, PcpErrorVector *allErrors);
281
304 template <class ChildrenPredicate, class PayloadPredicate>
306 PcpErrorVector *allErrors,
307 const ChildrenPredicate &childrenPred,
308 const PayloadPredicate &payloadPred) {
309 ComputePrimIndexesInParallel(SdfPathVector(1, path), allErrors,
310 childrenPred, payloadPred);
311 }
312
315 template <class ChildrenPredicate, class PayloadPredicate>
316 void ComputePrimIndexesInParallel(const SdfPathVector &paths,
317 PcpErrorVector *allErrors,
318 const ChildrenPredicate &childrenPred,
319 const PayloadPredicate &payloadPred) {
320 _UntypedIndexingChildrenPredicate cp(&childrenPred);
321 _UntypedIndexingPayloadPredicate pp(&payloadPred);
322 _ComputePrimIndexesInParallel(paths, allErrors, cp, pp);
323 }
324
327 PCP_API
328 const PcpPrimIndex *
329 FindPrimIndex(const SdfPath &primPath) const;
330
333 template <class Callback>
334 void
335 ForEachPrimIndex(const Callback& callback) const
336 {
337 TfFunctionRef<void(const PcpPrimIndex&)> fn(callback);
338 _ForEachPrimIndex(fn);
339 }
340
344 PCP_API
345 const PcpPropertyIndex &
346 ComputePropertyIndex(const SdfPath &propPath, PcpErrorVector *allErrors);
347
350 PCP_API
351 const PcpPropertyIndex *
352 FindPropertyIndex(const SdfPath &propPath) const;
353
363 PCP_API
364 void
365 ComputeRelationshipTargetPaths(const SdfPath &relationshipPath,
366 SdfPathVector *paths,
367 bool localOnly,
368 const SdfSpecHandle &stopProperty,
369 bool includeStopProperty,
370 SdfPathVector *deletedPaths,
371 PcpErrorVector *allErrors);
372
382 PCP_API
383 void
385 SdfPathVector *paths,
386 bool localOnly,
387 const SdfSpecHandle &stopProperty,
388 bool includeStopProperty,
389 SdfPathVector *deletedPaths,
390 PcpErrorVector *allErrors);
391
395
397 PCP_API
398 SdfLayerHandleSet GetUsedLayers() const;
399
405 PCP_API
406 size_t GetUsedLayersRevision() const;
407
409 PCP_API
410 SdfLayerHandleSet GetUsedRootLayers() const;
411
413 PCP_API
414 const PcpLayerStackPtrVector&
415 FindAllLayerStacksUsingLayer(const SdfLayerHandle& layer) const;
416
420 template <class Callback>
421 void
422 ForEachLayerStack(const Callback& callback) const
423 {
424 TfFunctionRef<void(const PcpLayerStackPtr&)> fn(callback);
425 _ForEachLayerStack(fn);
426 }
427
441 PCP_API
442 PcpDependencyVector
443 FindSiteDependencies(const PcpLayerStackPtr& siteLayerStack,
444 const SdfPath& sitePath,
445 PcpDependencyFlags depMask,
446 bool recurseOnSite,
447 bool recurseOnIndex,
448 bool filterForExistingCachesOnly) const;
449
459 PCP_API
460 PcpDependencyVector
461 FindSiteDependencies(const SdfLayerHandle& siteLayer,
462 const SdfPath& sitePath,
463 PcpDependencyFlags depMask,
464 bool recurseOnSite,
465 bool recurseOnIndex,
466 bool filterForExistingCachesOnly) const;
467
476 PCP_API
477 bool CanHaveOpinionForSite(const SdfPath& localPcpSitePath,
478 const SdfLayerHandle& layer,
479 SdfPath* allowedPathInLayer) const;
480
483 PCP_API
484 std::vector<std::string> GetInvalidSublayerIdentifiers() const;
485
490 PCP_API
491 bool IsInvalidSublayerIdentifier(const std::string& identifier) const;
492
495 PCP_API
496 std::map<SdfPath, std::vector<std::string>, SdfPath::FastLessThan>
498
503 PCP_API
504 bool IsInvalidAssetPath(const std::string& resolvedAssetPath) const;
505
508 PCP_API
510
513 PCP_API
515
519 PCP_API
521
525 PCP_API
527 const TfToken &attributeName) const;
528
533 PCP_API
536 const SdfPath &primIndexPath) const;
537
540 PCP_API
542 const PcpLayerStackPtr &layerStack) const;
543
546 PCP_API
547 const std::unordered_set<std::string>&
549 const SdfPath &primIndexPath,
550 const PcpLayerStackPtr &layerStack) const;
551
553
556
576 PCP_API
577 void Apply(const PcpCacheChanges& changes, PcpLifeboat* lifeboat);
578
585 PCP_API
586 void Reload(PcpChanges* changes);
587
599 PCP_API
600 void ReloadReferences(PcpChanges* changes, const SdfPath& primPath);
601
603
606
608 PCP_API
609 void PrintStatistics() const;
610
612
613private:
614 friend class PcpChanges;
615 friend class Pcp_Dependencies;
616 friend class Pcp_Statistics;
617
618 struct _ParallelIndexer;
619
620 // Helper struct to type-erase a children predicate for the duration of
621 // ComputePrimIndexesInParallel.
622 //
623 // This lets us achieve two goals. First, clients may pass any arbitrary
624 // type as a predicate (e.g. they do not have to derive some base class).
625 // Second, it lets us keep the parallel indexing implementation in the .cpp
626 // file, avoiding any large template code instantiation.
627 //
628 // The cost we pay is this very thin indirect call. We instantiate a
629 // function template with the client's predicate type that simply does a
630 // typecast and predicate invocation, and pass that function pointer into
631 // the implementation. There is no heap allocation, no predicate copy, no
632 // argument marshalling, etc.
633 struct _UntypedIndexingChildrenPredicate {
634 _UntypedIndexingChildrenPredicate() : pred(nullptr), invoke(nullptr) {}
635 template <class Pred>
636 explicit _UntypedIndexingChildrenPredicate(const Pred *pred)
637 : pred(pred), invoke(_Invoke<Pred>) {}
638
639 inline bool operator()(const PcpPrimIndex &index,
640 TfTokenVector *childNamesToCompose) const {
641 return invoke(pred, index, childNamesToCompose);
642 }
643 private:
644 template <class Pred>
645 static bool _Invoke(const void *pred, const PcpPrimIndex &index,
646 TfTokenVector *namesToCompose) {
647 return (*static_cast<const Pred *>(pred))(index, namesToCompose);
648 }
649 const void *pred;
650 bool (*invoke)(const void *, const PcpPrimIndex &, TfTokenVector *);
651 };
652
653 // See doc for _UntypedIndexingChildrenPredicate above. This does the same
654 // for the payload inclusion predicate.
655 struct _UntypedIndexingPayloadPredicate {
656 template <class Pred>
657 explicit _UntypedIndexingPayloadPredicate(const Pred *pred)
658 : pred(pred), invoke(_Invoke<Pred>) {}
659
660 inline bool operator()(const SdfPath &path) const {
661 return invoke(pred, path);
662 }
663 private:
664 template <class Pred>
665 static bool _Invoke(const void *pred, const SdfPath &path) {
666 return (*static_cast<const Pred *>(pred))(path);
667 }
668 const void *pred;
669 bool (*invoke)(const void *, const SdfPath &);
670 };
671
672 // Internal helper for recursive indexing.
673 const PcpPrimIndex &
674 _ComputePrimIndexWithCompatibleInputs(
675 const SdfPath & path, const PcpPrimIndexInputs &inputs,
676 PcpErrorVector *allErrors);
677
678 // Friend to allow low-level indexing code access to the above.
679 friend const PcpPrimIndex &
680 Pcp_ComputePrimIndexWithCompatibleInputs(
681 PcpCache &cache,
682 const SdfPath & path, const PcpPrimIndexInputs &inputs,
683 PcpErrorVector *allErrors);
684
685 // Parallel indexing implementation.
686 PCP_API
687 void _ComputePrimIndexesInParallel(
688 const SdfPathVector &paths,
689 PcpErrorVector *allErrors,
690 _UntypedIndexingChildrenPredicate childrenPred,
691 _UntypedIndexingPayloadPredicate payloadPred);
692
693 void _RemovePrimCache(const SdfPath& primPath, PcpLifeboat* lifeboat);
694 void _RemovePrimAndPropertyCaches(const SdfPath& root,
695 PcpLifeboat* lifeboat);
696 void _RemovePropertyCache(const SdfPath& root, PcpLifeboat* lifeboat);
697 void _RemovePropertyCaches(const SdfPath& root, PcpLifeboat* lifeboat);
698
699 // Returns the prim index for \p path if it exists, NULL otherwise.
700 PcpPrimIndex* _GetPrimIndex(const SdfPath& path);
701 const PcpPrimIndex* _GetPrimIndex(const SdfPath& path) const;
702
703 // Returns the property index for \p path if it exists, NULL otherwise.
704 PcpPropertyIndex* _GetPropertyIndex(const SdfPath& path);
705 const PcpPropertyIndex* _GetPropertyIndex(const SdfPath& path) const;
706
707 PCP_API
708 void _ForEachPrimIndex(
709 const TfFunctionRef<void(const PcpPrimIndex&)>& fn) const;
710
711 PCP_API
712 void _ForEachLayerStack(
713 const TfFunctionRef<void(const PcpLayerStackPtr&)>& fn) const;
714
715private:
716 // Fixed evaluation parameters, set when the cache is created. Note that
717 // _rootLayer and _sessionLayer are not const because we want to mutate them
718 // to enable parallel teardown in the destructor.
719 SdfLayerRefPtr _rootLayer;
720 SdfLayerRefPtr _sessionLayer;
721 const PcpLayerStackIdentifier _layerStackIdentifier;
722
723 // Flag that configures PcpCache to use the restricted set of USD features.
724 // Currently it governs whether relocates, inherits, permissions,
725 // symmetry, or payloads are considered, and whether the prim stack
726 // is populated and its depdencies gathered during computation of
727 // prim indices and composition of prim child names.
728 const bool _usd;
729
730 // File format target for all scene description layers this cache will
731 // find or open during prim index computation.
732 const std::string _fileFormatTarget;
733
734 // The layer stack for this cache. Holding this by ref ptr means we
735 // hold all of our local layers by ref ptr (including the root and
736 // session layers, again).
737 PcpLayerStackRefPtr _layerStack;
738
739 // Modifiable evaluation parameters.
740 // Anything that changes these should also yield a PcpChanges
741 // value describing the necessary cache invalidation.
742 PayloadSet _includedPayloads;
743 PcpVariantFallbackMap _variantFallbackMap;
744
745 // The default prim index inputs used when computing a prim index within
746 // this cache.
747 PcpPrimIndexInputs _primIndexInputs;
748
749 // Cached computation types.
750 typedef Pcp_LayerStackRegistryRefPtr _LayerStackCache;
751 typedef SdfPathTable<PcpPrimIndex> _PrimIndexCache;
752 typedef SdfPathTable<PcpPropertyIndex> _PropertyIndexCache;
753
754 // Cached computations.
755 _LayerStackCache _layerStackCache;
756 _PrimIndexCache _primIndexCache;
757 _PropertyIndexCache _propertyIndexCache;
758 std::unique_ptr<Pcp_Dependencies> _primDependencies;
759
760 // Parallel indexer state.
761 std::unique_ptr<_ParallelIndexer> _parallelIndexer;
762};
763
764PXR_NAMESPACE_CLOSE_SCOPE
765
766#endif // PXR_USD_PCP_CACHE_H
Types of changes per cache.
Definition: changes.h:102
PcpCache is the context required to make requests of the Pcp composition algorithm and cache the resu...
Definition: cache.h:77
std::unordered_set< SdfPath, SdfPath::Hash > PayloadSet
Returns the payloads requested for inclusion.
Definition: cache.h:153
PCP_API void ReloadReferences(PcpChanges *changes, const SdfPath &primPath)
Reload every layer used by the prim at primPath that's across a reference or payload.
PCP_API const std::unordered_set< std::string > & GetExpressionVariablesFromLayerStackUsedByPrim(const SdfPath &primIndexPath, const PcpLayerStackPtr &layerStack) const
Returns the set of expression variables in layerStack that are used by the prim index at primIndexPat...
void ForEachPrimIndex(const Callback &callback) const
Run the given callback on every prim index in the cache.
Definition: cache.h:335
PCP_API void Reload(PcpChanges *changes)
Reload the layers of the layer stack, except session layers and sublayers of session layers.
PCP_API void RequestPayloads(const SdfPathSet &pathsToInclude, const SdfPathSet &pathsToExclude, PcpChanges *changes=NULL)
Request payloads to be included or excluded from composition.
PCP_API const PcpPropertyIndex & ComputePropertyIndex(const SdfPath &propPath, PcpErrorVector *allErrors)
Compute and return a reference to the cached result for the property index for the given path.
PCP_API const PcpLayerStackIdentifier & GetLayerStackIdentifier() const
Get the identifier of the layerStack used for composition.
PCP_API const PcpPrimIndex & ComputePrimIndex(const SdfPath &primPath, PcpErrorVector *allErrors)
Compute and return a reference to the cached result for the prim index for the given path.
PCP_API void ComputeAttributeConnectionPaths(const SdfPath &attributePath, SdfPathVector *paths, bool localOnly, const SdfSpecHandle &stopProperty, bool includeStopProperty, SdfPathVector *deletedPaths, PcpErrorVector *allErrors)
Compute the attribute connection paths for the attribute at attributePath into paths.
PCP_API PcpVariantFallbackMap GetVariantFallbacks() const
Get the list of fallbacks to attempt to use when evaluating variant sets that lack an authored select...
PCP_API SdfLayerHandleSet GetUsedRootLayers() const
Returns set of all root layers used by this cache.
PCP_API PcpLayerStackPtr GetLayerStack() const
Get the layer stack for GetLayerStackIdentifier().
PCP_API PcpLayerStackRefPtr ComputeLayerStack(const PcpLayerStackIdentifier &identifier, PcpErrorVector *allErrors)
Returns the layer stack for identifier if it exists, otherwise creates a new layer stack for identifi...
PCP_API void Apply(const PcpCacheChanges &changes, PcpLifeboat *lifeboat)
Apply the changes in changes.
PCP_API void RequestLayerMuting(const std::vector< std::string > &layersToMute, const std::vector< std::string > &layersToUnmute, PcpChanges *changes=nullptr, std::vector< std::string > *newLayersMuted=nullptr, std::vector< std::string > *newLayersUnmuted=nullptr)
Request layers to be muted or unmuted in this cache.
PCP_API const PcpPrimIndex * FindPrimIndex(const SdfPath &primPath) const
Returns a pointer to the cached computed prim index for the given path, or NULL if it has not been co...
PCP_API bool IsPossibleDynamicFileFormatArgumentField(const TfToken &field) const
Returns true if the given field is the name of a field that was composed while generating dynamic fil...
PCP_API const std::vector< std::string > & GetMutedLayers() const
Returns the list of canonical identifiers for muted layers in this cache.
PCP_API const PcpPrimIndexInputs & GetPrimIndexInputs() const
Returns parameter object containing all inputs for the prim index computation used by this cache.
PCP_API bool IsPossibleDynamicFileFormatArgumentAttribute(const TfToken &attributeName) const
Returns true if the given attributeName is the name of an attribute whose default value field was com...
PCP_API const PcpLayerStackPtrVector & FindAllLayerStacksUsingLayer(const SdfLayerHandle &layer) const
Returns every computed & cached layer stack that includes layer.
PCP_API bool IsLayerMuted(const std::string &layerIdentifier) const
Returns true if the layer specified by layerIdentifier is muted in this cache, false otherwise.
bool HasRootLayerStack(PcpLayerStackRefPtr const &layerStack) const
Return true if this cache's root layer stack is layerStack, false otherwise.
Definition: cache.h:117
PCP_API void SetVariantFallbacks(const PcpVariantFallbackMap &map, PcpChanges *changes=NULL)
Set the list of fallbacks to attempt to use when evaluating variant sets that lack an authored select...
void ComputePrimIndexesInParallel(const SdfPath &path, PcpErrorVector *allErrors, const ChildrenPredicate &childrenPred, const PayloadPredicate &payloadPred)
Compute PcpPrimIndexes in the subtree rooted at path in parallel, recursing to children based on the ...
Definition: cache.h:305
PCP_API PcpLayerStackPtr FindLayerStack(const PcpLayerStackIdentifier &identifier) const
Returns the layer stack for identifier if it has been computed and cached, otherwise returns NULL.
PCP_API std::vector< std::string > GetInvalidSublayerIdentifiers() const
Returns a vector of sublayer asset paths used in the layer stack that didn't resolve to valid assets.
PCP_API const PcpPropertyIndex * FindPropertyIndex(const SdfPath &propPath) const
Returns a pointer to the cached computed property index for the given path, or NULL if it has not bee...
PCP_API bool UsesLayerStack(const PcpLayerStackPtr &layerStack) const
Return true if layerStack is used by this cache in its composition, false otherwise.
PCP_API bool IsUsd() const
Return true if the cache is configured in Usd mode.
PCP_API bool HasRootLayerStack(PcpLayerStackPtr const &layerStack) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
PCP_API bool IsInvalidAssetPath(const std::string &resolvedAssetPath) const
Returns true if resolvedAssetPath was used by a prim (e.g.
PCP_API const SdfPathVector & GetPrimsUsingExpressionVariablesFromLayerStack(const PcpLayerStackPtr &layerStack) const
Returns the list of prim index paths that depend on one or more expression variables from layerStack.
PCP_API size_t GetUsedLayersRevision() const
Return a number that can be used to determine whether or not the set of layers used by this cache may...
PCP_API bool CanHaveOpinionForSite(const SdfPath &localPcpSitePath, const SdfLayerHandle &layer, SdfPath *allowedPathInLayer) const
Returns true if an opinion for the site at localPcpSitePath in the cache's layer stack can be provide...
PCP_API const PcpDynamicFileFormatDependencyData & GetDynamicFileFormatArgumentDependencyData(const SdfPath &primIndexPath) const
Returns the dynamic file format dependency data object for the prim index with the given primIndexPat...
PCP_API bool HasAnyDynamicFileFormatArgumentFieldDependencies() const
Returns true if any prim index in this cache has a dependency on a dynamic file format argument field...
PCP_API void ComputeRelationshipTargetPaths(const SdfPath &relationshipPath, SdfPathVector *paths, bool localOnly, const SdfSpecHandle &stopProperty, bool includeStopProperty, SdfPathVector *deletedPaths, PcpErrorVector *allErrors)
Compute the relationship target paths for the relationship at relationshipPath into paths.
void ComputePrimIndexesInParallel(const SdfPathVector &paths, PcpErrorVector *allErrors, const ChildrenPredicate &childrenPred, const PayloadPredicate &payloadPred)
Vectorized form of ComputePrimIndexesInParallel().
Definition: cache.h:316
PCP_API PcpDependencyVector FindSiteDependencies(const SdfLayerHandle &siteLayer, const SdfPath &sitePath, PcpDependencyFlags depMask, bool recurseOnSite, bool recurseOnIndex, bool filterForExistingCachesOnly) const
Returns dependencies on the given site of scene description, as discovered by the cached index comput...
PCP_API PcpCache(const PcpLayerStackIdentifier &layerStackIdentifier, const std::string &fileFormatTarget=std::string(), bool usd=false)
Construct a PcpCache to compose results for the layer stack identified by layerStackIdentifier.
PCP_API SdfLayerHandleSet GetUsedLayers() const
Returns set of all layers used by this cache.
PCP_API bool IsPayloadIncluded(const SdfPath &path) const
Return true if the payload is included for the given path.
PCP_API std::map< SdfPath, std::vector< std::string >, SdfPath::FastLessThan > GetInvalidAssetPaths() const
Returns a map of prim paths to asset paths used by that prim (e.g.
PCP_API void PrintStatistics() const
Prints various statistics about the data stored in this cache.
PCP_API bool IsInvalidSublayerIdentifier(const std::string &identifier) const
Returns true if identifier was used as a sublayer path in a layer stack but did not identify a valid ...
PCP_API bool IsLayerMuted(const SdfLayerHandle &anchorLayer, const std::string &layerIdentifier, std::string *canonicalMutedLayerIdentifier=nullptr) const
Returns true if the layer specified by layerIdentifier is muted in this cache, false otherwise.
void ForEachLayerStack(const Callback &callback) const
Run the given callbcack on every layer stack used by prim indexes in the cache.
Definition: cache.h:422
PCP_API PcpDependencyVector FindSiteDependencies(const PcpLayerStackPtr &siteLayerStack, const SdfPath &sitePath, PcpDependencyFlags depMask, bool recurseOnSite, bool recurseOnIndex, bool filterForExistingCachesOnly) const
Returns dependencies on the given site of scene description, as discovered by the cached index comput...
PCP_API bool HasAnyDynamicFileFormatArgumentAttributeDependencies() const
Returns true if any prim index in this cache has a dependency on a dynamic file format argument attri...
PCP_API const std::string & GetFileFormatTarget() const
Returns the file format target this cache is configured for.
Describes Pcp changes.
Definition: changes.h:219
Contains the necessary information for storing a prim index's dependency on dynamic file format argum...
Represents a stack of layers that contribute opinions to composition.
Definition: layerStack.h:50
Arguments used to identify a layer stack.
Structure used to temporarily retain layers and layerStacks within a code block.
Definition: changes.h:187
A function that maps values from one namespace (and time domain) to another.
Definition: mapFunction.h:65
PcpNode represents a node in an expression tree for compositing scene description.
Definition: node.h:47
PcpPrimIndex is an index of the all sites of scene description that contribute opinions to a specific...
Definition: primIndex.h:62
Inputs for the prim indexing procedure.
Definition: primIndex.h:355
PcpPropertyIndex is an index of all sites in scene description that contribute opinions to a specific...
Definition: propertyIndex.h:49
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:281
A mapping from SdfPath to MappedType, somewhat similar to map<SdfPath, MappedType> and TfHashMap<SdfP...
Definition: pathTable.h:66
Base class for all Sdf spec classes.
Definition: spec.h:33
This class provides a non-owning reference to a type-erased callable object with a specified signatur...
Definition: functionRef.h:19
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Standard pointer typedefs.
#define TF_DECLARE_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Definition: declarePtrs.h:72
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
std::map< std::string, std::vector< std::string > > PcpVariantFallbackMap
typedef std::map<std::string, std::vector<std::string>> PcpVariantFallbackMap
Definition: types.h:189