1// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "parameterpack_p.h"
5
6QT_BEGIN_NAMESPACE
7
8namespace Qt3DRender {
9namespace Render {
10
11ParameterPack::ParameterPack()
12{
13}
14
15ParameterPack::~ParameterPack()
16{
17}
18
19void ParameterPack::clear()
20{
21 m_peers.clear();
22}
23
24void ParameterPack::appendParameter(Qt3DCore::QNodeId parameterId)
25{
26 if (!m_peers.contains(t: parameterId)) {
27 m_peers.append(t: parameterId);
28 }
29}
30
31void ParameterPack::removeParameter(Qt3DCore::QNodeId parameterId)
32{
33 m_peers.removeOne(t: parameterId);
34}
35
36QList<Qt3DCore::QNodeId> ParameterPack::parameters() const
37{
38 return m_peers;
39}
40
41} // namespace Render
42} // namespace Qt3DRender
43
44QT_END_NAMESPACE
45

source code of qt3d/src/render/backend/parameterpack.cpp