This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
17PXR_NAMESPACE_OPEN_SCOPE
18
31class SdfOpaqueValue final {};
32
33inline bool
34operator==(SdfOpaqueValue const &, SdfOpaqueValue const &)
35{
36 return true;
37}
38
39inline bool
40operator!=(SdfOpaqueValue const &, SdfOpaqueValue const &)
41{
42 return false;
43}
44
45inline 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
52SDF_API std::ostream& operator<<(std::ostream &, SdfOpaqueValue const &);
53
54PXR_NAMESPACE_CLOSE_SCOPE
55
56#endif
In-memory representation of the value of an opaque attribute.
Definition: opaqueValue.h:31
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
size_t hash_value(const half h)
Overload hash_value for half.
Definition: half.h:28