|
LSSTApplications
8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
|
A CRTP base class for coordinate objects. More...
#include <CoordinateBase.h>
Public Types | |
| typedef T | Element |
| typedef Eigen::Matrix< T, N, 1, Eigen::DontAlign > | EigenVector |
Public Member Functions | |
| T & | operator[] (int n) |
| T const & | operator[] (int n) const |
| T & | coeffRef (int n) |
| T const & | coeffRef (int n) const |
| EigenVector const & | asEigen () const |
| Return a fixed-size Eigen representation of the coordinate object. More... | |
Static Public Attributes | |
| static int const | dimensions = N |
Protected Member Functions | |
| CoordinateBase (T val=static_cast< T >(0)) | |
| Initialize all elements to a scalar. More... | |
| template<typename Vector > | |
| CoordinateBase (Eigen::MatrixBase< Vector > const &vector) | |
| Initialize all elements from an N-d Eigen vector. More... | |
| void | _swap (CoordinateBase &other) |
Protected Attributes | |
| EigenVector | _vector |
A CRTP base class for coordinate objects.
CoordinateBase has partial specializations for 2 and 3 dimensions so its subclasses don't have to.
Definition at line 49 of file CoordinateBase.h.
| typedef Eigen::Matrix<T,N,1,Eigen::DontAlign> lsst::afw::geom::CoordinateBase< Derived, T, N >::EigenVector |
Definition at line 53 of file CoordinateBase.h.
| typedef T lsst::afw::geom::CoordinateBase< Derived, T, N >::Element |
Definition at line 51 of file CoordinateBase.h.
|
inlineexplicitprotected |
Initialize all elements to a scalar.
A public constructor with the same signature is expected for subclasses.
Definition at line 78 of file CoordinateBase.h.
|
inlineexplicitprotected |
Initialize all elements from an N-d Eigen vector.
A public constructor with the same signature is expected for subclasses.
Definition at line 86 of file CoordinateBase.h.
|
inlineprotected |
Definition at line 88 of file CoordinateBase.h.
|
inline |
Return a fixed-size Eigen representation of the coordinate object.
The fact that this returns by const reference rather than by value should not be considered part of the API; this is merely an optimization enabled by the implementation.
Definition at line 67 of file CoordinateBase.h.
|
inline |
Definition at line 58 of file CoordinateBase.h.
|
inline |
Definition at line 59 of file CoordinateBase.h.
|
inline |
Definition at line 56 of file CoordinateBase.h.
|
inline |
Definition at line 57 of file CoordinateBase.h.
|
protected |
Definition at line 89 of file CoordinateBase.h.
|
static |
Definition at line 52 of file CoordinateBase.h.
1.8.5