aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/photon.cpp
blob: 2a7f20e332e0d6b86e55af3b762c6ca7c9965cda (plain)
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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include "photon.h"

namespace Photon
{

const ClassType Base::staticType;

int callCalculateForValueDuplicatorPointer(ValueDuplicator *value)
{
    return value->calculate();
}

int callCalculateForValueDuplicatorReference(ValueDuplicator &value)
{
    return value.calculate();
}

int countValueIdentities(const std::list<ValueIdentity> &values)
{
    return values.size();
}

int countValueDuplicators(const std::list<TemplateBase<DuplicatorType> > &values)
{
    return values.size();
}

} // namespace Photon