24 #ifndef PXR_USD_USD_NOTICE_H
25 #define PXR_USD_USD_NOTICE_H
129 using _PathsToChangesMap =
130 std::map<SdfPath, std::vector<const SdfChangeList::Entry*>>;
132 static const _PathsToChangesMap& _GetEmptyChangesMap();
136 const _PathsToChangesMap *resyncChanges,
137 const _PathsToChangesMap *infoChanges,
138 const _PathsToChangesMap *assetPathChanges)
140 , _resyncChanges(resyncChanges)
141 , _infoChanges(infoChanges)
142 , _assetPathChanges(assetPathChanges) {}
145 const _PathsToChangesMap *resyncChanges);
188 using _UnderlyingIterator = _PathsToChangesMap::const_iterator;
195 typename _UnderlyingIterator::difference_type;
202 ++_underlyingIterator;
208 ++_underlyingIterator;
213 return _underlyingIterator == other._underlyingIterator;
217 return _underlyingIterator != other._underlyingIterator;
234 return _underlyingIterator;
238 _UnderlyingIterator
base()
const {
245 explicit iterator(_UnderlyingIterator baseIter)
246 : _underlyingIterator(baseIter) {}
249 return _underlyingIterator->first;
252 _UnderlyingIterator _underlyingIterator;
266 return !_changes || _changes->empty();
271 return _changes ? _changes->size() : 0;
276 return iterator(_changes->cbegin());
281 return iterator(_changes->cbegin());
303 explicit PathRange(
const _PathsToChangesMap* changes)
307 const _PathsToChangesMap* _changes;
383 const _PathsToChangesMap *_resyncChanges;
384 const _PathsToChangesMap *_infoChanges;
385 const _PathsToChangesMap *_assetPathChanges;
417 const std::vector<std::string>& mutedLayers,
418 const std::vector<std::string>& unmutedLayers)
420 _mutedLayers(mutedLayers),
421 _unMutedLayers(unmutedLayers) {}
440 return _unMutedLayers;
444 const std::vector<std::string>& _mutedLayers;
445 const std::vector<std::string>& _unMutedLayers;
453 #endif // PXR_USD_USD_NOTICE_H
bool operator!=(const iterator &other) const
StageContentsChanged(const UsdStageWeakPtr &stage)
size_t size() const
Return the number of paths in this range.
const_iterator cend() const
Return the end iterator for this range.
bool AffectedObject(const UsdObject &obj) const
pointer operator->() const
GLsizei const GLchar *const * path
bool empty() const
Return true if this range contains any paths, false otherwise.
USD_API StageNotice(const UsdStageWeakPtr &stage)
const UsdStageWeakPtr & GetStage() const
Return the stage associated with this notice.
**But if you need a result
const std::vector< std::string > & GetMutedLayers() const
UsdStagePtr UsdStageWeakPtr
USD_API TfTokenVector GetChangedFields() const
const std::vector< std::string > & GetUnmutedLayers() const
const_iterator cbegin() const
Return iterator to the start of this range.
USD_API bool ResolvedAssetPathsResynced(const UsdObject &obj) const
StageEditTargetChanged(const UsdStageWeakPtr &stage)
std::forward_iterator_tag iterator_category
virtual USD_API ~LayerMutingChanged()
Base class for UsdStage notices.
_UnderlyingIterator GetBase() const
Returns the underlying iterator.
USD_API bool HasChangedFields(const UsdObject &obj) const
virtual USD_API ~StageContentsChanged()
USD_API bool HasChangedFields() const
reference operator*() const
USD_API bool ChangedInfoOnly(const UsdObject &obj) const
std::vector< TfToken > TfTokenVector
Convenience types.
typename _UnderlyingIterator::difference_type difference_type
iterator begin() const
Return iterator to the start of this range.
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
virtual USD_API ~StageNotice()
virtual USD_API ~ObjectsChanged()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
USD_API PathRange GetChangedInfoOnlyPaths() const
USD_API PathRange GetResyncedPaths() const
USD_API TfTokenVector GetChangedFields(const UsdObject &obj) const
const SdfPath & reference
LayerMutingChanged(const UsdStageWeakPtr &stage, const std::vector< std::string > &mutedLayers, const std::vector< std::string > &unmutedLayers)
const_iterator find(const SdfPath &path) const
#define PXR_NAMESPACE_CLOSE_SCOPE
bool operator==(const iterator &other) const
iterator end() const
Return the end iterator for this range.
USD_API bool ResyncedObject(const UsdObject &obj) const
USD_API PathRange GetResolvedAssetPathsResyncedPaths() const
_UnderlyingIterator base() const
virtual USD_API ~StageEditTargetChanged()