KOSMIndoorMap

route.cpp
1/*
2 SPDX-FileCopyrightText: 2024 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#include "route.h"
7
8namespace KOSMIndoorRouting {
9class RoutePrivate : public QSharedData {
10public:
11 std::vector<RouteStep> m_steps;
12};
13}
14
15using namespace KOSMIndoorRouting;
16
17Route::Route()
18 : d(new RoutePrivate)
19{
20}
21
22Route::Route(const Route &) = default;
23Route::Route(Route &&) noexcept = default;
24Route::~Route() = default;
25Route& Route::operator=(const Route &) = default;
26Route& Route::operator=(Route &&) noexcept = default;
27
28const std::vector<RouteStep>& Route::steps() const
29{
30 return d->m_steps;
31}
32
33void Route::setSteps(std::vector<RouteStep> &&steps)
34{
35 d.detach();
36 d->m_steps = std::move(steps);
37}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.