##// END OF EJS Templates
Removes unused methods
Alexandre Leroux -
r602:63310f797e77
parent child
Show More
@@ -235,22 +235,21 public:
235 m_Data, m_NbComponents, false)}};
235 m_Data, m_NbComponents, false)}};
236 }
236 }
237
237
238 // ///////////// //
239 // 1-dim methods //
240 // ///////////// //
241
238
242 /**
239 /**
243 * @return the data at a specified index
240 * @return the data at a specified index
244 * @remarks index must be a valid position
241 * @remarks index must be a valid position
245 * @remarks this method is only available for a unidimensional ArrayData
246 */
242 */
247 template <int D = Dim, typename = std::enable_if_t<D == 1> >
248 double at(int index) const noexcept
243 double at(int index) const noexcept
249 {
244 {
250 QReadLocker locker{&m_Lock};
245 QReadLocker locker{&m_Lock};
251 return m_Data.at(index);
246 return m_Data.at(index);
252 }
247 }
253
248
249 // ///////////// //
250 // 1-dim methods //
251 // ///////////// //
252
254 /**
253 /**
255 * @return the data as a vector, as a const reference
254 * @return the data as a vector, as a const reference
256 * @remarks this method is only available for a unidimensional ArrayData
255 * @remarks this method is only available for a unidimensional ArrayData
@@ -259,32 +258,6 public:
259 const QVector<double> &cdata() const noexcept
258 const QVector<double> &cdata() const noexcept
260 {
259 {
261 QReadLocker locker{&m_Lock};
260 QReadLocker locker{&m_Lock};
262 return m_Data.at(0);
263 }
264
265 /**
266 * @return the data as a vector
267 * @remarks this method is only available for a unidimensional ArrayData
268 */
269 template <int D = Dim, typename = std::enable_if_t<D == 1> >
270 QVector<double> data() const noexcept
271 {
272 QReadLocker locker{&m_Lock};
273 return m_Data[0];
274 }
275
276 // ///////////// //
277 // 2-dim methods //
278 // ///////////// //
279
280 /**
281 * @return the data
282 * @remarks this method is only available for a two-dimensional ArrayData
283 */
284 template <int D = Dim, typename = std::enable_if_t<D == 2> >
285 DataContainer data() const noexcept
286 {
287 QReadLocker locker{&m_Lock};
288 return m_Data;
261 return m_Data;
289 }
262 }
290
263
General Comments 0
You need to be logged in to leave comments. Login now