LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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.