cacheView.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_USD_CACHE_VIEW_H
8 #define PXR_EXEC_EXEC_USD_CACHE_VIEW_H
9 
11 
12 #include "pxr/pxr.h"
13 
14 #include "pxr/exec/execUsd/api.h"
15 
16 #include "pxr/exec/exec/cacheView.h"
17 
18 #include <utility>
19 
20 PXR_NAMESPACE_OPEN_SCOPE
21 
28 {
29 public:
31  ExecUsdCacheView() = default;
32 
38  EXECUSD_API
39  VtValue Get(int index) const;
40 
41 private:
42  friend class ExecUsd_RequestImpl;
43  explicit ExecUsdCacheView(
44  Exec_CacheView &&view)
45  : _view(std::move(view))
46  {}
47 
48 private:
49  Exec_CacheView _view;
50 };
51 
52 PXR_NAMESPACE_CLOSE_SCOPE
53 
54 #endif
Provides a view of values computed by ExecUsdSystem::Compute().
Definition: cacheView.h:27
EXECUSD_API VtValue Get(int index) const
Returns the computed value for the provided extraction index.
ExecUsdCacheView()=default
Construct an invalid view.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:89
A view into values cached by ExecSystem.
Definition: cacheView.h:33