File: file.cpp

package info (click to toggle)
qt3d-opensource-src 5.7.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 34,416 kB
  • ctags: 27,051
  • sloc: cpp: 178,121; ansic: 5,373; xml: 30; makefile: 27
file content (42 lines) | stat: -rw-r--r-- 890 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%{Cpp:LicenseTemplate}\
#include "%{HdrFileName}"
#include "%{PrivateHdrFileName}"

QT_BEGIN_NAMESPACE
%{JS: Cpp.openNamespaces('%{Class}')}
@if '%{Base}' === 'QNode' || '%{Base}' === 'QComponent' || '%{Base}' === 'QEntity'
%{CN}Private::%{CN}Private()
    : Qt3DCore::%{Base}Private()
{
}

%{CN}::%{CN}(Qt3DCore::QNode *parent)
    : Qt3DCore::%{Base}(*new %{CN}Private, parent)
{
}

%{CN}::%{CN}(%{CN}Private &dd, Qt3DCore::QNode *parent)
    : Qt3DCore::%{Base}(dd, parent)
{
}

%{CN}::~%{CN}()
{
    QNode::cleanup();
}
@else
// TODO: Implement QBackendNode template
@endif

@if '%{Base}' === 'QNode' || '%{Base}' === 'QComponent' || '%{Base}' === 'QEntity'
void %{CN}::copy(const QNode *ref)
{
    %{Base}::copy(ref);
    const %{CN} *object = static_cast<const %{CN} *>(ref);

    // TODO: Copy the objects's members
}
@endif
%{JS: Cpp.closeNamespaces('%{Class}')}\

QT_END_NAMESPACE