Loading...
Searching...
No Matches
opaqueValue.h
1
//
2
// Copyright 2022 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_SDF_OPAQUE_VALUE_H
8
#define PXR_USD_SDF_OPAQUE_VALUE_H
9
10
#include "
pxr/pxr.h
"
11
#include "pxr/usd/sdf/api.h"
12
13
#include <cstddef>
14
#include <iosfwd>
15
16
17
PXR_NAMESPACE_OPEN_SCOPE
18
31
class
SdfOpaqueValue
final {};
32
33
inline
bool
34
operator==(
SdfOpaqueValue
const
&,
SdfOpaqueValue
const
&)
35
{
36
return
true
;
37
}
38
39
inline
bool
40
operator!=(
SdfOpaqueValue
const
&,
SdfOpaqueValue
const
&)
41
{
42
return
false
;
43
}
44
45
inline
size_t
hash_value
(
SdfOpaqueValue
const
&)
46
{
47
// Use a nonzero constant here because some bad hash functions don't deal
48
// with zero well. Chosen by fair dice roll.
49
return
9;
50
}
51
52
SDF_API std::ostream&
operator<<
(std::ostream &,
SdfOpaqueValue
const
&);
53
54
PXR_NAMESPACE_CLOSE_SCOPE
55
56
#endif
SdfOpaqueValue
In-memory representation of the value of an opaque attribute.
Definition:
opaqueValue.h:31
operator<<
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
pxr_half::hash_value
std::size_t hash_value(const half h)
Overload hash_value for half.
Definition:
half.h:30
pxr.h
pxr
usd
sdf
opaqueValue.h
© Copyright 2025, Pixar Animation Studios. |
Terms of Use
| Generated on Thu Oct 23 2025 15:48:44 by
1.9.6