Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
geo::vect::details::CoordGetter< Vector > Class Template Reference

Helper class for read of a single vector coordinate. More...

#include <geo_vectors_utils.h>

Inheritance diagram for geo::vect::details::CoordGetter< Vector >:
geo::vect::details::CoordManager< Vector, SetterType > geo::vect::details::CoordManager< Vector, SetterType >

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 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 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...
 
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 Traits_t = CoordGetterTraits< Vector >
 
using Traits_t = CoordGetterTraits< Vector >
 

Private Attributes

Getter_t fGetter
 Member function returning the coordinate value. More...
 

Detailed Description

template<typename Vector>
class geo::vect::details::CoordGetter< Vector >

Helper class for read of a single vector coordinate.

Definition at line 216 of file geo_vectors_utils.h.

Member Typedef Documentation

template<typename Vector >
using geo::vect::details::CoordGetter< Vector >::Getter_t = typename Traits_t::Getter_t

Definition at line 222 of file geo_vectors_utils.h.

template<typename Vector >
using geo::vect::details::CoordGetter< Vector >::Getter_t = typename Traits_t::Getter_t

Definition at line 229 of file geo_vectors_utils.h.

template<typename Vector >
using geo::vect::details::CoordGetter< Vector >::Scalar_t = typename Traits_t::Scalar_t

Definition at line 221 of file geo_vectors_utils.h.

template<typename Vector >
using geo::vect::details::CoordGetter< Vector >::Scalar_t = typename Traits_t::Scalar_t

Definition at line 228 of file geo_vectors_utils.h.

template<typename Vector >
using geo::vect::details::CoordGetter< Vector >::Traits_t = CoordGetterTraits<Vector>
private

Definition at line 217 of file geo_vectors_utils.h.

template<typename Vector >
using geo::vect::details::CoordGetter< Vector >::Traits_t = CoordGetterTraits<Vector>
private

Definition at line 224 of file geo_vectors_utils.h.

template<typename Vector >
using geo::vect::details::CoordGetter< Vector >::Vector_t = typename Traits_t::Vector_t

Definition at line 220 of file geo_vectors_utils.h.

template<typename Vector >
using geo::vect::details::CoordGetter< Vector >::Vector_t = typename Traits_t::Vector_t

Definition at line 227 of file geo_vectors_utils.h.

Constructor & Destructor Documentation

template<typename Vector >
constexpr geo::vect::details::CoordGetter< Vector >::CoordGetter ( Getter_t  getter)
inline

Constructor: sets getter and setter functions.

Definition at line 225 of file geo_vectors_utils.h.

225 : fGetter(getter) {}
Getter_t fGetter
Member function returning the coordinate value.
template<typename Vector >
constexpr geo::vect::details::CoordGetter< Vector >::CoordGetter ( Getter_t  getter)
inline

Constructor: sets getter and setter functions.

Definition at line 232 of file geo_vectors_utils.h.

232 : fGetter(getter) {}
Getter_t fGetter
Member function returning the coordinate value.

Member Function Documentation

template<typename Vector >
Scalar_t geo::vect::details::CoordGetter< Vector >::get ( Vector_t const &  v) const
inline

Returns the value of the bound coordinate.

Definition at line 231 of file geo_vectors_utils.h.

231 { return (v.*fGetter)(); }
Getter_t fGetter
Member function returning the coordinate value.
template<typename Vector >
Scalar_t geo::vect::details::CoordGetter< Vector >::get ( Vector_t const &  v) const
inline

Returns the value of the bound coordinate.

Definition at line 238 of file geo_vectors_utils.h.

238 { return (v.*fGetter)(); }
Getter_t fGetter
Member function returning the coordinate value.
template<typename Vector >
Scalar_t geo::vect::details::CoordGetter< Vector >::operator() ( Vector_t const &  v) const
inline

Returns the value of the bound coordinate.

Definition at line 228 of file geo_vectors_utils.h.

228 { return get(v); }
template<typename Vector >
Scalar_t geo::vect::details::CoordGetter< Vector >::operator() ( Vector_t const &  v) const
inline

Returns the value of the bound coordinate.

Definition at line 235 of file geo_vectors_utils.h.

235 { return get(v); }

Member Data Documentation

template<typename Vector >
Getter_t geo::vect::details::CoordGetter< Vector >::fGetter
private

Member function returning the coordinate value.

Definition at line 234 of file geo_vectors_utils.h.


The documentation for this class was generated from the following file: