HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
invalidatableContainerDataSource.h
Go to the documentation of this file.
1 //
2 // Copyright 2023 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_IMAGING_HD_INVALIDATABLE_CONTAINER_DATA_SOURCE_H
8 #define PXR_IMAGING_HD_INVALIDATABLE_CONTAINER_DATA_SOURCE_H
9 
10 #include "pxr/imaging/hd/api.h"
11 
14 
16 
17 /// \class HdInvalidatableContainerDataSource
18 ///
19 /// Base class for container data sources that cache data but provide
20 /// a locator to invalidate the cached data.
21 ///
23 {
24 public:
26 
27  virtual bool Invalidate(const HdDataSourceLocatorSet &dirtyLocators) = 0;
28 };
29 
31 
33 
34 #endif
HD_DECLARE_DATASOURCE_HANDLES(HdInvalidatableContainerDataSource)
HD_DECLARE_DATASOURCE_ABSTRACT(HdContainerDataSource)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
virtual bool Invalidate(const HdDataSourceLocatorSet &dirtyLocators)=0