Helper class for read/write of a single vector coordinate. More...
#include <geo_vectors_utils.h>
Public Types | |
using | Vector_t = typename Traits_t::Vector_t |
using | Scalar_t = typename Traits_t::Scalar_t |
using | Getter_t = typename Traits_t::Getter_t |
using | Setter_t = typename Traits_t::Setter_t |
Public Types inherited from geo::vect::details::CoordGetter< Vector > | |
using | Vector_t = typename Traits_t::Vector_t |
using | Scalar_t = typename Traits_t::Scalar_t |
using | Getter_t = typename Traits_t::Getter_t |
Public Member Functions | |
constexpr | CoordManager (Getter_t getter, Setter_t setter) |
Constructor: sets getter and setter functions. More... | |
void | operator() (Vector_t &v, Scalar_t c) const |
Setter: assigns a value to the bound coordinate of specified vector. More... | |
void | set (Vector_t &v, Scalar_t c) const |
Setter: assigns a value to the bound coordinate of specified vector. More... | |
void | incr (Vector_t &v, Scalar_t c) const |
Increments the coordinate by the specified amount. More... | |
void | decr (Vector_t &v, Scalar_t c) const |
Decrements the coordinate by the specified amount. More... | |
void | mult (Vector_t &v, Scalar_t f) const |
Multiplies the coordinate by the specified amount. More... | |
void | div (Vector_t &v, Scalar_t f) const |
Divides the coordinate by the specified amount. More... | |
Public Member Functions inherited from geo::vect::details::CoordGetter< Vector > | |
constexpr | CoordGetter (Getter_t getter) |
Constructor: sets getter and setter functions. More... | |
Scalar_t | operator() (Vector_t const &v) const |
Returns the value of the bound coordinate. More... | |
Scalar_t | get (Vector_t const &v) const |
Returns the value of the bound coordinate. More... | |
Private Types | |
using | Base_t = CoordGetter< Vector > |
using | Traits_t = CoordManagerTraits< Vector, SetterType > |
Private Attributes | |
Setter_t | fSetter |
Member function setting the coordinate value. More... | |
Helper class for read/write of a single vector coordinate.
Definition at line 267 of file geo_vectors_utils.h.
|
private |
Definition at line 268 of file geo_vectors_utils.h.
using geo::vect::details::CoordManager< Vector, SetterType >::Getter_t = typename Traits_t::Getter_t |
Definition at line 274 of file geo_vectors_utils.h.
using geo::vect::details::CoordManager< Vector, SetterType >::Scalar_t = typename Traits_t::Scalar_t |
Definition at line 273 of file geo_vectors_utils.h.
using geo::vect::details::CoordManager< Vector, SetterType >::Setter_t = typename Traits_t::Setter_t |
Definition at line 275 of file geo_vectors_utils.h.
|
private |
Definition at line 269 of file geo_vectors_utils.h.
using geo::vect::details::CoordManager< Vector, SetterType >::Vector_t = typename Traits_t::Vector_t |
Definition at line 272 of file geo_vectors_utils.h.
|
inline |
Constructor: sets getter and setter functions.
Definition at line 278 of file geo_vectors_utils.h.
|
inline |
Decrements the coordinate by the specified amount.
Definition at line 291 of file geo_vectors_utils.h.
|
inline |
Divides the coordinate by the specified amount.
Definition at line 297 of file geo_vectors_utils.h.
|
inline |
Increments the coordinate by the specified amount.
Definition at line 288 of file geo_vectors_utils.h.
|
inline |
Multiplies the coordinate by the specified amount.
Definition at line 294 of file geo_vectors_utils.h.
|
inline |
Setter: assigns a value to the bound coordinate of specified vector.
Definition at line 282 of file geo_vectors_utils.h.
|
inline |
Setter: assigns a value to the bound coordinate of specified vector.
Definition at line 285 of file geo_vectors_utils.h.
|
private |
Member function setting the coordinate value.
Definition at line 300 of file geo_vectors_utils.h.