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

#include <spatial_builtin.hpp>

Public Member Functions

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

Detailed Description

template<typename Tp, typename Unit>
struct spatial::bracket_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 bracket operator.

The returned value is cast into the type Unit.

Concept:
This object is a model of Difference

Definition at line 24 of file spatial_builtin.hpp.

Constructor & Destructor Documentation

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

Definition at line 58 of file function.hpp.

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

Definition at line 61 of file function.hpp.

Member Function Documentation

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

Definition at line 64 of file function.hpp.


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