Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
spatial::iterator_minus< 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 an iterator. More...

#include <spatial_builtin.hpp>

Public Member Functions

 iterator_minus ()
 
template<typename AnyUnit >
 iterator_minus (const iterator_minus< Tp, AnyUnit > &)
 
Unit operator() (dimension_type n, const Tp &x, const Tp &y) const
 

Detailed Description

template<typename Tp, typename Unit>
struct spatial::iterator_minus< Tp, Unit >

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

The returned value is cast into the type Unit.

Concept:
This object is a model of Difference

Definition at line 26 of file spatial_builtin.hpp.

Constructor & Destructor Documentation

template<typename Tp , typename Unit >
spatial::iterator_minus< Tp, Unit >::iterator_minus ( )

Definition at line 98 of file function.hpp.

template<typename Tp , typename Unit >
template<typename AnyUnit >
spatial::iterator_minus< Tp, Unit >::iterator_minus ( const iterator_minus< Tp, AnyUnit > &  )

Definition at line 101 of file function.hpp.

Member Function Documentation

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

Definition at line 104 of file function.hpp.


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