7#ifndef PXR_EXEC_ESF_JOURNAL_H
8#define PXR_EXEC_ESF_JOURNAL_H
18#include "pxr/usd/sdf/path.h"
20PXR_NAMESPACE_OPEN_SCOPE
52 _hashMap[path] |= editReason;
63 for (
const value_type &entry : other) {
64 _hashMap[entry.first] |= entry.second;
68 bool operator==(
const EsfJournal &other)
const {
69 return _hashMap == other._hashMap;
72 bool operator!=(
const EsfJournal &other)
const {
73 return _hashMap != other._hashMap;
83 using value_type = _HashMap::value_type;
88 return _hashMap.
begin();
92 return _hashMap.
end();
95 const_iterator begin() const & {
96 return _hashMap.
begin();
99 const_iterator end() const & {
100 return _hashMap.
end();
103 const_iterator cbegin() const & {
104 return _hashMap.
begin();
107 const_iterator cend() const & {
108 return _hashMap.
end();
116PXR_NAMESPACE_CLOSE_SCOPE
Set of scene changes that should trigger edits to the exec network.
Stores a collection of edit reasons associated with scene objects.
EsfJournal & Add(const SdfPath &path, EsfEditReason editReason)
Adds or updates a new entry in the journal.
void Merge(const EsfJournal &other)
Merges the entries from the other EsfJournal into this one.
A path value used to locate objects in layers or scenegraphs.
bool IsEmpty() const noexcept
Returns true if this is the empty path (SdfPath::EmptyPath()).
SDF_API bool IsAbsolutePath() const
Returns whether the path is absolute.
_IteratorBase< const value_type, typename _Vector::const_iterator > const_iterator
An iterator type for this map.
_IteratorBase< value_type, typename _Vector::iterator > iterator
An iterator type for this map.
iterator end()
Returns an const_iterator pointing to the end of the map.
iterator begin()
Returns an const_iterator pointing to the beginning of the map.
#define TF_VERIFY(cond, format,...)
Checks a condition and reports an error if it evaluates false.