Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
spatial::paren_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 the parenthesis operator. More...

#include <spatial_builtin.hpp>

Public Member Functions

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

Detailed Description

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

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

The returned value is cast into the type Unit.

Concept:
This object is a model of Difference

Definition at line 25 of file spatial_builtin.hpp.

Constructor & Destructor Documentation

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

Definition at line 78 of file function.hpp.

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

Definition at line 81 of file function.hpp.

Member Function Documentation

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

Definition at line 84 of file function.hpp.


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