Coverage Report

Created: 2026-05-30 06:46

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/PROJ/src/iso19111/operation/vectorofvaluesparams.hpp
Line
Count
Source
1
/******************************************************************************
2
 *
3
 * Project:  PROJ
4
 * Purpose:  ISO19111:2019 implementation
5
 * Author:   Even Rouault <even dot rouault at spatialys dot com>
6
 *
7
 ******************************************************************************
8
 * Copyright (c) 2018, Even Rouault <even dot rouault at spatialys dot com>
9
 *
10
 * Permission is hereby granted, free of charge, to any person obtaining a
11
 * copy of this software and associated documentation files (the "Software"),
12
 * to deal in the Software without restriction, including without limitation
13
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
 * and/or sell copies of the Software, and to permit persons to whom the
15
 * Software is furnished to do so, subject to the following conditions:
16
 *
17
 * The above copyright notice and this permission notice shall be included
18
 * in all copies or substantial portions of the Software.
19
 *
20
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
 * DEALINGS IN THE SOFTWARE.
27
 ****************************************************************************/
28
29
#ifndef VECTOROFVALUESPARAMS_HPP
30
#define VECTOROFVALUESPARAMS_HPP
31
32
#include "proj/coordinateoperation.hpp"
33
#include "proj/util.hpp"
34
35
// ---------------------------------------------------------------------------
36
37
NS_PROJ_START
38
namespace operation {
39
40
// ---------------------------------------------------------------------------
41
42
//! @cond Doxygen_Suppress
43
44
struct VectorOfValues : public std::vector<ParameterValueNNPtr> {
45
0
    VectorOfValues() : std::vector<ParameterValueNNPtr>() {}
46
    explicit VectorOfValues(std::initializer_list<ParameterValueNNPtr> list)
47
199k
        : std::vector<ParameterValueNNPtr>(list) {}
48
49
    explicit VectorOfValues(std::initializer_list<common::Measure> list);
50
    VectorOfValues(const VectorOfValues &) = delete;
51
    VectorOfValues(VectorOfValues &&) = default;
52
53
    ~VectorOfValues();
54
};
55
56
VectorOfValues createParams(const common::Measure &m1,
57
                            const common::Measure &m2,
58
                            const common::Measure &m3);
59
60
VectorOfValues createParams(const common::Measure &m1,
61
                            const common::Measure &m2,
62
                            const common::Measure &m3,
63
                            const common::Measure &m4);
64
65
VectorOfValues createParams(const common::Measure &m1,
66
                            const common::Measure &m2,
67
                            const common::Measure &m3,
68
                            const common::Measure &m4,
69
                            const common::Measure &m5);
70
71
VectorOfValues
72
createParams(const common::Measure &m1, const common::Measure &m2,
73
             const common::Measure &m3, const common::Measure &m4,
74
             const common::Measure &m5, const common::Measure &m6);
75
76
VectorOfValues
77
createParams(const common::Measure &m1, const common::Measure &m2,
78
             const common::Measure &m3, const common::Measure &m4,
79
             const common::Measure &m5, const common::Measure &m6,
80
             const common::Measure &m7);
81
82
// ---------------------------------------------------------------------------
83
84
struct VectorOfParameters : public std::vector<OperationParameterNNPtr> {
85
0
    VectorOfParameters() : std::vector<OperationParameterNNPtr>() {}
86
    explicit VectorOfParameters(
87
        std::initializer_list<OperationParameterNNPtr> list)
88
254k
        : std::vector<OperationParameterNNPtr>(list) {}
89
    VectorOfParameters(const VectorOfParameters &) = delete;
90
91
    ~VectorOfParameters();
92
};
93
94
//! @endcond
95
96
// ---------------------------------------------------------------------------
97
98
} // namespace operation
99
NS_PROJ_END
100
101
#endif // VECTOROFVALUESPARAMS_HPP