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:
42 virtual void _OnExecutorDelete(
43 VdfExecutorInterface *executor) const = 0;
44
49 VdfExecutorInterface *executor) const = 0;
50
51};
52
54
55PXR_NAMESPACE_CLOSE_SCOPE
56
57#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
Called when the observed executor gets deleted.
virtual void _OnExecutorClearData(VdfExecutorInterface *executor) const =0
Called when temporary buffers and invalidation state are cleared for the observed executor.