Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
spatial::accessor_minus< Accessor, Tp, Unit > Struct Template Reference

This functor uses the minus operator to calculate the difference between 2 elements of Tp along the dimension n accessed through a custom accessor. More...

#include <spatial_builtin.hpp>

Inherits Accessor.

Public Member Functions

 accessor_minus (Accessor accessor_=Accessor())
 
template<typename AnyUnit >
 accessor_minus (const accessor_minus< Accessor, Tp, AnyUnit > &other)
 
Unit operator() (dimension_type n, const Tp &x, const Tp &y) const
 
Accessor accessor () const
 

Detailed Description

template<typename Accessor, typename Tp, typename Unit>
struct spatial::accessor_minus< Accessor, Tp, Unit >

This functor uses the minus operator to calculate the difference between 2 elements of Tp along the dimension n accessed through a custom accessor.

The returned value is cast into the type Unit.

Concept:
This object is a model of Difference

Definition at line 23 of file spatial_builtin.hpp.

Constructor & Destructor Documentation

template<typename Accessor , typename Tp , typename Unit >
spatial::accessor_minus< Accessor, Tp, Unit >::accessor_minus ( Accessor  accessor_ = Accessor())
explicit

Definition at line 32 of file function.hpp.

template<typename Accessor , typename Tp , typename Unit >
template<typename AnyUnit >
spatial::accessor_minus< Accessor, Tp, Unit >::accessor_minus ( const accessor_minus< Accessor, Tp, AnyUnit > &  other)

Definition at line 37 of file function.hpp.

Member Function Documentation

template<typename Accessor , typename Tp , typename Unit >
Accessor spatial::accessor_minus< Accessor, Tp, Unit >::accessor ( ) const

Definition at line 45 of file function.hpp.

template<typename Accessor , typename Tp , typename Unit >
Unit spatial::accessor_minus< Accessor, Tp, Unit >::operator() ( dimension_type  n,
const Tp &  x,
const Tp &  y 
) const

Definition at line 42 of file function.hpp.


The documentation for this struct was generated from the following files: