@@ -79,21 +79,6 public: | |||||
79 | } |
|
79 | } | |
80 |
|
80 | |||
81 | /** |
|
81 | /** | |
82 | * Sets a data at a specified index. The index has to be valid to be effective |
|
|||
83 | * @param index the index to which the data will be set |
|
|||
84 | * @param data the data to set |
|
|||
85 | * @remarks this method is only available for a unidimensional ArrayData |
|
|||
86 | */ |
|
|||
87 | template <int D = Dim, typename = std::enable_if_t<D == 1> > |
|
|||
88 | void setData(int index, double data) noexcept |
|
|||
89 | { |
|
|||
90 | QWriteLocker locker{&m_Lock}; |
|
|||
91 | if (index >= 0 && index < m_Data.at(0).size()) { |
|
|||
92 | m_Data[0].replace(index, data); |
|
|||
93 | } |
|
|||
94 | } |
|
|||
95 |
|
||||
96 | /** |
|
|||
97 | * @return the data as a vector |
|
82 | * @return the data as a vector | |
98 | * @remarks this method is only available for a unidimensional ArrayData |
|
83 | * @remarks this method is only available for a unidimensional ArrayData | |
99 | */ |
|
84 | */ |
General Comments 0
You need to be logged in to leave comments.
Login now