Loading...
Searching...
No Matches
valueKey.h
Go to the documentation of this file.
1//
2// Copyright 2026 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_IMAGING_USD_EXEC_IMAGING_VALUE_KEY_H
8#define PXR_USD_IMAGING_USD_EXEC_IMAGING_VALUE_KEY_H
9
11
12#include "pxr/pxr.h"
13
14#include "pxr/base/tf/token.h"
15#include "pxr/usd/sdf/path.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
27{
28public:
34
41
42 UsdExecImagingValueKey(SdfPath providerPath_, TfToken computationName_)
43 : providerPath(std::move(providerPath_))
44 , computationName(std::move(computationName_))
45 {}
46
47 bool operator==(const UsdExecImagingValueKey &other) const {
48 return providerPath == other.providerPath &&
50 }
51};
52
53template <class HashState>
54void TfHashAppend(HashState &h, const UsdExecImagingValueKey &valueKey) {
55 h.Append(valueKey.providerPath, valueKey.computationName);
56}
57
58PXR_NAMESPACE_CLOSE_SCOPE
59
60#endif
A path value used to locate objects in layers or scenegraphs.
Definition path.h:281
Token for efficient comparison, assignment, and hashing of known strings.
Definition token.h:71
Identifies a value that is computed by exec.
Definition valueKey.h:27
TfToken computationName
The name of the computation.
Definition valueKey.h:40
SdfPath providerPath
Path to the object that provides the named computation.
Definition valueKey.h:33
STL namespace.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...