LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 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... | |
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 300 of file geo_vectors_utils.h.
|
private |
Definition at line 301 of file geo_vectors_utils.h.
using geo::vect::details::CoordManager< Vector, SetterType >::Getter_t = typename Traits_t::Getter_t |
Definition at line 307 of file geo_vectors_utils.h.
using geo::vect::details::CoordManager< Vector, SetterType >::Scalar_t = typename Traits_t::Scalar_t |
Definition at line 306 of file geo_vectors_utils.h.
using geo::vect::details::CoordManager< Vector, SetterType >::Setter_t = typename Traits_t::Setter_t |
Definition at line 308 of file geo_vectors_utils.h.
|
private |
Definition at line 302 of file geo_vectors_utils.h.
using geo::vect::details::CoordManager< Vector, SetterType >::Vector_t = typename Traits_t::Vector_t |
Definition at line 305 of file geo_vectors_utils.h.
|
inline |
Constructor: sets getter and setter functions.
Definition at line 311 of file geo_vectors_utils.h.
|
inline |
Decrements the coordinate by the specified amount.
Definition at line 324 of file geo_vectors_utils.h.
References util::get().
|
inline |
Divides the coordinate by the specified amount.
Definition at line 330 of file geo_vectors_utils.h.
References f, and util::get().
|
inlineinherited |
Returns the value of the bound coordinate.
Definition at line 272 of file geo_vectors_utils.h.
|
inline |
Increments the coordinate by the specified amount.
Definition at line 321 of file geo_vectors_utils.h.
References util::get().
|
inline |
Multiplies the coordinate by the specified amount.
Definition at line 327 of file geo_vectors_utils.h.
References f, and util::get().
|
inlineinherited |
Returns the value of the bound coordinate.
Definition at line 269 of file geo_vectors_utils.h.
|
inline |
Setter: assigns a value to the bound coordinate of specified vector.
Definition at line 315 of file geo_vectors_utils.h.
|
inline |
Setter: assigns a value to the bound coordinate of specified vector.
Definition at line 318 of file geo_vectors_utils.h.
|
private |
Member function setting the coordinate value.
Definition at line 333 of file geo_vectors_utils.h.