Loading...
Searching...
No Matches
executorObserver.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_OBSERVER_H
8#define PXR_EXEC_VDF_EXECUTOR_OBSERVER_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/exec/vdf/api.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
16
18
31class VDF_API_TYPE VdfExecutorObserver
32{
33 friend class VdfExecutorInterface;
34
35public:
36 VDF_API
37 virtual ~VdfExecutorObserver();
38
39protected:
44 virtual void _OnExecutorDelete(
45 VdfExecutorInterface *executor) const = 0;
46
53 VdfExecutorInterface *executor) const = 0;
54
55};
56
58
59PXR_NAMESPACE_CLOSE_SCOPE
60
61#endif //PXR_EXEC_VDF_EXECUTOR_OBSERVER_H
Abstract base class for classes that execute a VdfNetwork to compute a requested set of values.
This is an interface for any class that wants to listen to specific executor events,...
virtual void _OnExecutorDelete(VdfExecutorInterface *executor) const =0
This will be called once the observed executor gets deleted.
virtual void _OnExecutorClearData(VdfExecutorInterface *executor) const =0
This will get called once the data is being cleared on the observed executor.