LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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 >

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
 

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...
 

Protected Member Functions

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 308 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 313 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 316 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 315 of file geo_vectors_utils.h.

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

Definition at line 311 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 314 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 319 of file geo_vectors_utils.h.

320  : 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. ...
CoordHelper_t fCoord
Helper to manage a specific coordinate.
Stored_t & fVector
The vector to manage the coordinate of.
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 323 of file geo_vectors_utils.h.

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

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 327 of file geo_vectors_utils.h.

References lar::dump::vector().

327 { 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 336 of file geo_vectors_utils.h.

336 { 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 333 of file geo_vectors_utils.h.

References lar::dump::vector().

333 { 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 330 of file geo_vectors_utils.h.

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

Definition at line 337 of file geo_vectors_utils.h.

337 { 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 340 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 341 of file geo_vectors_utils.h.


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