Qt
Core
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
16
typedef
vtkSmartPointer<vtkSMProxy>
pqSMProxy
;
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.
26
static
class
PQCORE_EXPORT
pqSMProxySchwartzCounter
27
{
28
public
:
29
pqSMProxySchwartzCounter
();
30
~
pqSMProxySchwartzCounter
() =
default
;
31
}
pqSMProxySchwartzCounter
;
32
33
#endif
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(pqSMProxy) static class PQCORE_EXPORT pqSMProxySchwartzCounter
declare pqSMProxy for use with QVariant
Definition:
pqSMProxy.h:21
pqCoreModule.h
vtkSmartPointer< vtkSMProxy >
pqSMProxy
vtkSmartPointer< vtkSMProxy > pqSMProxy
make pqSMProxy synonymous to a smart pointer of a vtkSMProxy
Definition:
pqSMProxy.h:16
PQCORE_EXPORT
#define PQCORE_EXPORT
Definition:
pqCoreModule.h:15
vtkSmartPointer.h
vtkSMProxy.h
pqSMProxySchwartzCounter
pqSMProxySchwartzCounter
Definition:
pqSMProxy.h:31
Generated by
1.8.13 on Tue Oct 1 2024