CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxPlainObjectEigenAddons.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 /*
13  * sscPlainObjectEigenAddons.h
14  *
15  * Plugin extension for the eigen::PlainObject type
16  *
17  *
18  * Created on: Apr 10, 2011
19  * Author: christiana
20  */
21 
22 Scalar* begin()
23 {
24  return this->data();
25 }
26 
27 const Scalar* begin() const
28 {
29  return this->data();
30 }
31 
32 Scalar* end()
33 {
34  return this->data() + this->size();
35 }
36 
37 const Scalar* end() const
38 {
39  return this->data() + this->size();
40 }
41 
Scalar * end()
Scalar * begin()