Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
util::math::ConstantDivisor< T > Class Template Reference

Detailed Description

template<typename T>
class util::math::ConstantDivisor< T >

Definition at line 57 of file constant_divisor.h.

#include <constant_divisor.h>

Public Types

typedef T value_type

Public Member Functions

 ConstantDivisor (value_type denominator)
value_type div (value_type n) const
value_type mod (value_type n) const

Friends

value_type operator/ (value_type a, const ConstantDivisor &b)
value_type operator% (value_type a, const ConstantDivisor &b)

Member Typedef Documentation

◆ value_type

template<typename T>
typedef T util::math::ConstantDivisor< T >::value_type

Definition at line 59 of file constant_divisor.h.

Constructor & Destructor Documentation

◆ ConstantDivisor()

template<typename T>
util::math::ConstantDivisor< T >::ConstantDivisor ( value_type denominator)
inlineexplicit

Definition at line 61 of file constant_divisor.h.

Member Function Documentation

◆ div()

template<typename T>
value_type util::math::ConstantDivisor< T >::div ( value_type n) const
inline

Definition at line 64 of file constant_divisor.h.

◆ mod()

template<typename T>
value_type util::math::ConstantDivisor< T >::mod ( value_type n) const
inline

Definition at line 66 of file constant_divisor.h.

◆ operator%

template<typename T>
value_type operator% ( value_type a,
const ConstantDivisor< T > & b )
friend

Definition at line 72 of file constant_divisor.h.

◆ operator/

template<typename T>
value_type operator/ ( value_type a,
const ConstantDivisor< T > & b )
friend

Definition at line 68 of file constant_divisor.h.


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