Loading...
Searching...
No Matches
executorFactory.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_VDF_EXECUTOR_FACTORY_H
8#define PXR_EXEC_VDF_EXECUTOR_FACTORY_H
9
11
12#include "pxr/pxr.h"
13
15
16#include <memory>
17
18PXR_NAMESPACE_OPEN_SCOPE
19
21class VdfSpeculationExecutorBase;
23
30template <
31 typename ChildExecutorType,
32 typename SpeculationExecutorType
33 >
34class VdfExecutorFactory : public VdfExecutorFactoryBase
35{
36public:
37
41 virtual std::unique_ptr<VdfExecutorInterface>
42 ManufactureChildExecutor(
43 const VdfExecutorInterface *parentExecutor) const override final {
44 return std::unique_ptr<VdfExecutorInterface>(
45 new ChildExecutorType(parentExecutor));
46 }
47
51 virtual std::unique_ptr<VdfSpeculationExecutorBase>
52 ManufactureSpeculationExecutor(
53 const VdfSpeculationNode *speculationNode,
54 const VdfExecutorInterface *parentExecutor) const override final {
55 return std::unique_ptr<VdfSpeculationExecutorBase>(
56 new SpeculationExecutorType(speculationNode, parentExecutor));
57 }
58
59};
60
62
63PXR_NAMESPACE_CLOSE_SCOPE
64
65#endif
Abstract base class for classes that execute a VdfNetwork to compute a requested set of values.
A node that pulls on a vector of value that are downstream of the current execution position.