Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector > Class Template Reference

#include <geo_vectors_utils.h>

Inheritance diagram for geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >:
geo::vect::details::BoundCoordManager< CoordHelper, StoredVector > geo::vect::details::BoundCoordManager< CoordHelper, StoredVector >

Public Types

using Stored_t = StoredVector
 
using CoordHelper_t = CoordHelper
 
using Vector_t = typename CoordHelper_t::Vector_t
 
using Scalar_t = typename CoordHelper_t::Scalar_t
 
using Getter_t = typename CoordHelper_t::Getter_t
 
using Stored_t = StoredVector
 
using CoordHelper_t = CoordHelper
 
using Vector_t = typename CoordHelper_t::Vector_t
 
using Scalar_t = typename CoordHelper_t::Scalar_t
 
using Getter_t = typename CoordHelper_t::Getter_t
 

Public Member Functions

 BoundCoordGetter (Stored_t &v, CoordHelper_t coordManager)
 Constructor: manage the specified coordinate of specified vector. More...
 
 BoundCoordGetter (Stored_t &v, Getter_t getter)
 Constructor: manage the specified vector with specified methods. More...
 
Scalar_t get () const
 Returns the value of the bound coordinate. More...
 
Scalar_t operator() () const
 Returns the value of the bound coordinate. More...
 
 operator Scalar_t () const
 Returns the value of the bound coordinate. More...
 
 BoundCoordGetter (Stored_t &v, CoordHelper_t coordManager)
 Constructor: manage the specified coordinate of specified vector. More...
 
 BoundCoordGetter (Stored_t &v, Getter_t getter)
 Constructor: manage the specified vector with specified methods. More...
 
Scalar_t get () const
 Returns the value of the bound coordinate. More...
 
Scalar_t operator() () const
 Returns the value of the bound coordinate. More...
 
 operator Scalar_t () const
 Returns the value of the bound coordinate. More...
 

Protected Member Functions

CoordHelper_t const & manager () const
 
Stored_tvector () const
 
CoordHelper_t const & manager () const
 
Stored_tvector () const
 

Private Attributes

CoordHelper_t fCoord
 Helper to manage a specific coordinate. More...
 
Stored_tfVector
 The vector to manage the coordinate of. More...
 

Detailed Description

template<typename CoordHelper, typename StoredVector>
class geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >

Definition at line 307 of file geo_vectors_utils.h.

Member Typedef Documentation

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::CoordHelper_t = CoordHelper

Definition at line 312 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::CoordHelper_t = CoordHelper

Definition at line 319 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::Getter_t = typename CoordHelper_t::Getter_t

Definition at line 315 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::Getter_t = typename CoordHelper_t::Getter_t

Definition at line 322 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::Scalar_t = typename CoordHelper_t::Scalar_t

Definition at line 314 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::Scalar_t = typename CoordHelper_t::Scalar_t

Definition at line 321 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::Stored_t = StoredVector

Definition at line 310 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::Stored_t = StoredVector

Definition at line 317 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::Vector_t = typename CoordHelper_t::Vector_t

Definition at line 313 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
using geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::Vector_t = typename CoordHelper_t::Vector_t

Definition at line 320 of file geo_vectors_utils.h.

Constructor & Destructor Documentation

template<typename CoordHelper, typename StoredVector>
geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::BoundCoordGetter ( Stored_t v,
CoordHelper_t  coordManager 
)
inline

Constructor: manage the specified coordinate of specified vector.

Definition at line 318 of file geo_vectors_utils.h.

319  : fCoord(coordManager), fVector(v) {}
constexpr auto coordManager(unsigned int n)
Returns an object that can be bound to a vector to manage one of its coordinates. ...
Stored_t & fVector
The vector to manage the coordinate of.
CoordHelper_t fCoord
Helper to manage a specific coordinate.
template<typename CoordHelper, typename StoredVector>
geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::BoundCoordGetter ( Stored_t v,
Getter_t  getter 
)
inline

Constructor: manage the specified vector with specified methods.

Definition at line 322 of file geo_vectors_utils.h.

323  : fCoord(getter), fVector(v) {}
Stored_t & fVector
The vector to manage the coordinate of.
CoordHelper_t fCoord
Helper to manage a specific coordinate.
template<typename CoordHelper, typename StoredVector>
geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::BoundCoordGetter ( Stored_t v,
CoordHelper_t  coordManager 
)
inline

Constructor: manage the specified coordinate of specified vector.

Definition at line 325 of file geo_vectors_utils.h.

326  : fCoord(coordManager), fVector(v) {}
constexpr auto coordManager(unsigned int n)
Returns an object that can be bound to a vector to manage one of its coordinates. ...
Stored_t & fVector
The vector to manage the coordinate of.
CoordHelper_t fCoord
Helper to manage a specific coordinate.
template<typename CoordHelper, typename StoredVector>
geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::BoundCoordGetter ( Stored_t v,
Getter_t  getter 
)
inline

Constructor: manage the specified vector with specified methods.

Definition at line 329 of file geo_vectors_utils.h.

330  : fCoord(getter), fVector(v) {}
Stored_t & fVector
The vector to manage the coordinate of.
CoordHelper_t fCoord
Helper to manage a specific coordinate.

Member Function Documentation

template<typename CoordHelper, typename StoredVector>
Scalar_t geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::get ( ) const
inline

Returns the value of the bound coordinate.

Definition at line 326 of file geo_vectors_utils.h.

326 { return manager().get(vector()); }
CoordHelper_t const & manager() const
template<typename CoordHelper, typename StoredVector>
Scalar_t geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::get ( ) const
inline

Returns the value of the bound coordinate.

Definition at line 333 of file geo_vectors_utils.h.

333 { return manager().get(vector()); }
CoordHelper_t const & manager() const
template<typename CoordHelper, typename StoredVector>
CoordHelper_t const& geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::manager ( ) const
inlineprotected

Definition at line 335 of file geo_vectors_utils.h.

335 { return fCoord; }
CoordHelper_t fCoord
Helper to manage a specific coordinate.
template<typename CoordHelper, typename StoredVector>
CoordHelper_t const& geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::manager ( ) const
inlineprotected

Definition at line 342 of file geo_vectors_utils.h.

342 { return fCoord; }
CoordHelper_t fCoord
Helper to manage a specific coordinate.
template<typename CoordHelper, typename StoredVector>
geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::operator Scalar_t ( ) const
inline

Returns the value of the bound coordinate.

Definition at line 332 of file geo_vectors_utils.h.

332 { return manager().get(vector()); }
CoordHelper_t const & manager() const
template<typename CoordHelper, typename StoredVector>
geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::operator Scalar_t ( ) const
inline

Returns the value of the bound coordinate.

Definition at line 339 of file geo_vectors_utils.h.

339 { return manager().get(vector()); }
CoordHelper_t const & manager() const
template<typename CoordHelper, typename StoredVector>
Scalar_t geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::operator() ( ) const
inline

Returns the value of the bound coordinate.

Definition at line 329 of file geo_vectors_utils.h.

329 { return get(); }
template<typename CoordHelper, typename StoredVector>
Scalar_t geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::operator() ( void  ) const
inline

Returns the value of the bound coordinate.

Definition at line 336 of file geo_vectors_utils.h.

336 { return get(); }
template<typename CoordHelper, typename StoredVector>
Stored_t& geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::vector ( ) const
inlineprotected

Definition at line 336 of file geo_vectors_utils.h.

336 { return fVector; }
Stored_t & fVector
The vector to manage the coordinate of.
template<typename CoordHelper, typename StoredVector>
Stored_t& geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::vector ( ) const
inlineprotected

Definition at line 343 of file geo_vectors_utils.h.

343 { return fVector; }
Stored_t & fVector
The vector to manage the coordinate of.

Member Data Documentation

template<typename CoordHelper, typename StoredVector>
CoordHelper_t geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::fCoord
private

Helper to manage a specific coordinate.

Definition at line 339 of file geo_vectors_utils.h.

template<typename CoordHelper, typename StoredVector>
Stored_t & geo::vect::details::BoundCoordGetter< CoordHelper, StoredVector >::fVector
private

The vector to manage the coordinate of.

Definition at line 340 of file geo_vectors_utils.h.


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