HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
types.h
Go to the documentation of this file.
1 //
2 // Copyright 2025 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_EXEC_EXEC_TYPES_H
8 #define PXR_EXEC_EXEC_TYPES_H
9 
10 /// \file
11 ///
12 /// This file contains definitions for trivial types, including type aliases, so
13 /// that source files that require these types can get access to them without
14 /// transitively including many headers, and otherwise pulling in unneeded
15 /// definitions. Defining these types in this public header also helps keep
16 /// other headers private to this library.
17 ///
18 
19 #include "pxr/pxr.h"
20 
22 
23 #include <functional>
24 
26 
27 /// Function type used for computation callbacks.
28 using ExecCallbackFn = std::function<void (const class VdfContext &context)>;
29 
30 /// Type used to identify Exec_DefinitionRegistry registry functions.
31 ///
32 /// We use a separate public type as the tag, rather than
33 /// Exec_DefinitionRegistry itself, to allow that type to remain private.
34 ///
36 
37 // A vector of schema types used to restrict the schemas that dispatched
38 // compuations dispatch onto.
39 //
41 
43 
44 #endif
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
std::function< void(const class VdfContext &context)> ExecCallbackFn
Function type used for computation callbacks.
Definition: types.h:28
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74