pqSMProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef pqSMProxy_h
6 #define pqSMProxy_h
7 
8 #include "pqCoreModule.h"
9 #include "vtkSMProxy.h"
10 #include "vtkSmartPointer.h"
11 #include <QMetaType>
12 
17 
21 Q_DECLARE_METATYPE(pqSMProxy) // NOLINT(performance-no-int-to-ptr)
22 
23 // use Schwartz counter idiom to correctly
24 // call qRegisterMetaType<> even on static builds when pqSMProxy
25 // header is included in any translation unit.
27 {
28 public:
30  ~pqSMProxySchwartzCounter() = default;
32 
33 #endif
Q_DECLARE_METATYPE(pqSMProxy) static class PQCORE_EXPORT pqSMProxySchwartzCounter
declare pqSMProxy for use with QVariant
Definition: pqSMProxy.h:21
vtkSmartPointer< vtkSMProxy > pqSMProxy
make pqSMProxy synonymous to a smart pointer of a vtkSMProxy
Definition: pqSMProxy.h:16
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
pqSMProxySchwartzCounter
Definition: pqSMProxy.h:31