num.hh File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  num

Functions

int isfloat (const num &n)
const num operator+ (const num &x, const num &y)
const num operator- (const num &x, const num &y)
const num operator* (const num &x, const num &y)
const num operator/ (const num &x, const num &y)
const num operator% (const num &x, const num &y)
const num operator<< (const num &x, const num &y)
const num operator>> (const num &x, const num &y)
const num operator& (const num &x, const num &y)
const num operator| (const num &x, const num &y)
const num operator^ (const num &x, const num &y)
const num operator> (const num &x, const num &y)
const num operator< (const num &x, const num &y)
const num operator>= (const num &x, const num &y)
const num operator<= (const num &x, const num &y)
const num operator== (const num &x, const num &y)
const num operator!= (const num &x, const num &y)

Function Documentation

int isfloat ( const num n  )  [inline]

Definition at line 88 of file num.hh.

References num::type().

Referenced by operator!=(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

00088 { return n.type(); }

Here is the call graph for this function:

Here is the caller graph for this function:

const num operator!= ( const num x,
const num y 
) [inline]

Definition at line 141 of file num.hh.

References isfloat().

00142     { return (isfloat(x)|isfloat(y)) ? num(double(x)!=double(y)) : num(int(x)!=int(y)); }

Here is the call graph for this function:

const num operator% ( const num x,
const num y 
) [inline]

Definition at line 102 of file num.hh.

00103     { return num(int(x)%int(y)); }

const num operator& ( const num x,
const num y 
) [inline]

Definition at line 115 of file num.hh.

00116     { return num(int(x)&int(y)); }

const num operator* ( const num x,
const num y 
) [inline]

Definition at line 96 of file num.hh.

References isfloat().

00097     { return (isfloat(x)|isfloat(y)) ? num(double(x)*double(y)) : num(int(x)*int(y)); }

Here is the call graph for this function:

const num operator+ ( const num x,
const num y 
) [inline]

Definition at line 90 of file num.hh.

References isfloat().

00091     { return (isfloat(x)|isfloat(y)) ? num(double(x)+double(y)) : num(int(x)+int(y)); }

Here is the call graph for this function:

const num operator- ( const num x,
const num y 
) [inline]

Definition at line 93 of file num.hh.

References isfloat().

00094     { return (isfloat(x)|isfloat(y)) ? num(double(x)-double(y)) : num(int(x)-int(y)); }

Here is the call graph for this function:

const num operator/ ( const num x,
const num y 
) [inline]

Definition at line 99 of file num.hh.

References isfloat().

00100     { return (isfloat(x)|isfloat(y)) ? num(double(x)/double(y)) : num(int(x)/int(y)); }

Here is the call graph for this function:

const num operator< ( const num x,
const num y 
) [inline]

Definition at line 129 of file num.hh.

References isfloat().

00130     { return (isfloat(x)|isfloat(y)) ? num(double(x)<double(y)) : num(int(x)<int(y)); }

Here is the call graph for this function:

const num operator<< ( const num x,
const num y 
) [inline]

Definition at line 107 of file num.hh.

00108     { return num(int(x)<<int(y)); }

const num operator<= ( const num x,
const num y 
) [inline]

Definition at line 135 of file num.hh.

References isfloat().

00136     { return (isfloat(x)|isfloat(y)) ? num(double(x)<=double(y)) : num(int(x)<=int(y)); }

Here is the call graph for this function:

const num operator== ( const num x,
const num y 
) [inline]

Definition at line 138 of file num.hh.

References isfloat().

00139     { return (isfloat(x)|isfloat(y)) ? num(double(x)==double(y)) : num(int(x)==int(y)); }

Here is the call graph for this function:

const num operator> ( const num x,
const num y 
) [inline]

Definition at line 126 of file num.hh.

References isfloat().

00127     { return (isfloat(x)|isfloat(y)) ? num(double(x)>double(y)) : num(int(x)>int(y)); }

Here is the call graph for this function:

const num operator>= ( const num x,
const num y 
) [inline]

Definition at line 132 of file num.hh.

References isfloat().

00133     { return (isfloat(x)|isfloat(y)) ? num(double(x)>=double(y)) : num(int(x)>=int(y)); }

Here is the call graph for this function:

const num operator>> ( const num x,
const num y 
) [inline]

Definition at line 110 of file num.hh.

00111     { return num(int(x)>>int(y)); }

const num operator^ ( const num x,
const num y 
) [inline]

Definition at line 121 of file num.hh.

00122     { return num(int(x)^int(y)); }

const num operator| ( const num x,
const num y 
) [inline]

Definition at line 118 of file num.hh.

00119     { return num(int(x)|int(y)); }

Generated on Tue Aug 10 08:04:14 2010 for FAUST compiler by  doxygen 1.6.3