LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
A boolean coordinate. More...
#include <CoordinateExpr.h>
Public Member Functions | |
CoordinateExpr (bool val=false) | |
Construct a CoordinateExpr with all elements set to the same scalar value. More... | |
template<typename Vector > | |
CoordinateExpr (Eigen::MatrixBase< Vector > const &vector) | |
Construct a CoordinateExpr from an Eigen vector. More... | |
Logical operators | |
These operators do not provide interoperability with scalars. | |
CoordinateExpr | and_ (CoordinateExpr const &rhs) const |
CoordinateExpr | or_ (CoordinateExpr const &rhs) const |
CoordinateExpr | not_ () const |
Public Member Functions inherited from lsst::afw::geom::CoordinateBase< CoordinateExpr< N >, bool, N > | |
bool & | operator[] (int n) |
boolconst & | operator[] (int n) const |
bool & | coeffRef (int n) |
boolconst & | coeffRef (int n) const |
EigenVector const & | asEigen () const |
Return a fixed-size Eigen representation of the coordinate object. More... | |
Private Types | |
typedef CoordinateBase < CoordinateExpr< N >, bool, N > | Super |
Additional Inherited Members | |
Public Types inherited from lsst::afw::geom::CoordinateBase< CoordinateExpr< N >, bool, N > | |
typedef bool | Element |
typedef Eigen::Matrix< bool, N, 1, Eigen::DontAlign > | EigenVector |
Static Public Attributes inherited from lsst::afw::geom::CoordinateBase< CoordinateExpr< N >, bool, N > | |
static int const | dimensions |
Protected Member Functions inherited from lsst::afw::geom::CoordinateBase< CoordinateExpr< N >, bool, N > | |
CoordinateBase (boolval=static_cast< bool >(0)) | |
Initialize all elements to a scalar. More... | |
CoordinateBase (Eigen::MatrixBase< Vector > const &vector) | |
Initialize all elements from an N-d Eigen vector. More... | |
void | _swap (CoordinateBase &other) |
Protected Attributes inherited from lsst::afw::geom::CoordinateBase< CoordinateExpr< N >, bool, N > | |
EigenVector | _vector |
A boolean coordinate.
CoordinateExpr is intended to be used as a temporary in coordinate comparisons:
CoordinateExpr is not a true lazy-evaluation expression template, as that seems unnecessary when the object is typically only two bools large (smaller than the raw pointers necessary to implement a lazy solution). The consequence is that there's no short-circuiting of logical operators, but I don't think that will even remotely matter for most use cases. The any() and all() functions do support short-circuiting.
Definition at line 54 of file CoordinateExpr.h.
|
private |
Definition at line 55 of file CoordinateExpr.h.
|
inlineexplicit |
Construct a CoordinateExpr with all elements set to the same scalar value.
Definition at line 59 of file CoordinateExpr.h.
|
inlineexplicit |
Construct a CoordinateExpr from an Eigen vector.
Definition at line 63 of file CoordinateExpr.h.
CoordinateExpr lsst::afw::geom::CoordinateExpr< N >::and_ | ( | CoordinateExpr< N > const & | rhs | ) | const |
CoordinateExpr lsst::afw::geom::CoordinateExpr< N >::not_ | ( | ) | const |
CoordinateExpr lsst::afw::geom::CoordinateExpr< N >::or_ | ( | CoordinateExpr< N > const & | rhs | ) | const |