STK++ 0.9.13
STK::DivisionOp< Type1, Type2 > Struct Template Reference

Template functor which compute the division of two numbers. More...

#include <STK_Functors.h>

Public Types

enum  { NbParam_ = 2 }
 
typedef hidden::Promote< Type1, Type2 >::result_type result_type
 
typedef hidden::RemoveConst< Type1 >::Type constparam1_type
 
typedef hidden::RemoveConst< Type2 >::Type constparam2_type
 

Public Member Functions

result_type operator() (param1_type a, param2_type b) const
 

Detailed Description

template<class Type1, class Type2 = Type1>
struct STK::DivisionOp< Type1, Type2 >

Template functor which compute the division of two numbers.

Definition at line 236 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

template<class Type1 , class Type2 = Type1>
typedef hidden::RemoveConst<Type1>::Type const& STK::DivisionOp< Type1, Type2 >::param1_type

Definition at line 240 of file STK_Functors.h.

◆ param2_type

template<class Type1 , class Type2 = Type1>
typedef hidden::RemoveConst<Type2>::Type const& STK::DivisionOp< Type1, Type2 >::param2_type

Definition at line 241 of file STK_Functors.h.

◆ result_type

template<class Type1 , class Type2 = Type1>
typedef hidden::Promote<Type1,Type2>::result_type STK::DivisionOp< Type1, Type2 >::result_type

Definition at line 239 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<class Type1 , class Type2 = Type1>
anonymous enum
Enumerator
NbParam_ 

Definition at line 238 of file STK_Functors.h.

238{ NbParam_ = 2 };

Member Function Documentation

◆ operator()()

template<class Type1 , class Type2 = Type1>
result_type STK::DivisionOp< Type1, Type2 >::operator() ( param1_type  a,
param2_type  b 
) const
inline

Definition at line 243 of file STK_Functors.h.

243{ return a / b;}

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