EmbededFunctions.cpp File Reference
#include <EmbededFunctions.hpp>
Go to the source code of this file.
|
Functions |
| real_t | unaryMinus (real_t x) |
| bool | not_ (bool a) |
| real_t | modulo (real_t x, real_t y) |
| real_t | sum (real_t x, real_t y) |
| real_t | difference (real_t x, real_t y) |
| real_t | division (real_t x, real_t y) |
| real_t | product (real_t x, real_t y) |
| bool | gt (real_t x, real_t y) |
| bool | lt (real_t x, real_t y) |
| bool | ge (real_t x, real_t y) |
| bool | le (real_t x, real_t y) |
| bool | eq (real_t x, real_t y) |
| bool | ne (real_t x, real_t y) |
| bool | and_ (bool a, bool b) |
| bool | or_ (bool a, bool b) |
| bool | xor_ (bool a, bool b) |
| template<> |
| std::ostream & | functionName< std::log > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::sin > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::cos > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::tan > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::asin > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::acos > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::atan > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::exp > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::abs > (std::ostream &os) |
| template<> |
| std::ostream & | functionName< std::sqrt > (std::ostream &os) |
| template<> |
| std::ostream & | operatorName< gt > (std::ostream &os) |
| template<> |
| std::ostream & | operatorName< lt > (std::ostream &os) |
| template<> |
| std::ostream & | operatorName< ge > (std::ostream &os) |
| template<> |
| std::ostream & | operatorName< le > (std::ostream &os) |
| template<> |
| std::ostream & | operatorName< eq > (std::ostream &os) |
| template<> |
| std::ostream & | operatorName< ne > (std::ostream &os) |
| template<> |
| std::ostream & | binaryBooleanName< and_ > (std::ostream &os) |
| template<> |
| std::ostream & | binaryBooleanName< or_ > (std::ostream &os) |
| template<> |
| std::ostream & | binaryBooleanName< xor_ > (std::ostream &os) |
| template<> |
| std::ostream & | unaryBooleanName< not_ > (std::ostream &os) |
Function Documentation
| bool and_ |
( |
bool |
a, |
|
|
bool |
b | |
|
) |
| | |
template<>
| std::ostream& binaryBooleanName< and_ > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& binaryBooleanName< or_ > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& binaryBooleanName< xor_ > |
( |
std::ostream & |
os |
) |
[inline] |
| real_t difference |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
| real_t division |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
| bool eq |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
template<>
| std::ostream& functionName< std::abs > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::acos > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::asin > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::atan > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::cos > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::exp > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::log > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::sin > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::sqrt > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& functionName< std::tan > |
( |
std::ostream & |
os |
) |
[inline] |
| bool ge |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
| bool gt |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
| bool le |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
| bool lt |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
| real_t modulo |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
Definition at line 34 of file EmbededFunctions.cpp.
00035 {
00036 int a = static_cast<int>(x);
00037 int b = static_cast<int>(y);
00038 return a%b;
00039 }
| bool ne |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
template<>
| std::ostream& operatorName< eq > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& operatorName< ge > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& operatorName< gt > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& operatorName< le > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& operatorName< lt > |
( |
std::ostream & |
os |
) |
[inline] |
template<>
| std::ostream& operatorName< ne > |
( |
std::ostream & |
os |
) |
[inline] |
| bool or_ |
( |
bool |
a, |
|
|
bool |
b | |
|
) |
| | |
| real_t product |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
| real_t sum |
( |
real_t |
x, |
|
|
real_t |
y | |
|
) |
| | |
template<>
| std::ostream& unaryBooleanName< not_ > |
( |
std::ostream & |
os |
) |
[inline] |
| real_t unaryMinus |
( |
real_t |
x |
) |
|
| bool xor_ |
( |
bool |
a, |
|
|
bool |
b | |
|
) |
| | |