Back to index

texmacs  1.0.7.15
Classes | Defines | Functions
function.hpp File Reference
#include "ball.hpp"
#include "vector.hpp"
#include "polynomial.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  function_rep
class  function
class  properties< function< F, T > >
class  constant_function_rep
class  coordinate_function_rep
class  unary_function_rep< F, T, Op >
class  binary_function_rep< F, T, Op >

Defines

#define TMPL   template<typename F, typename T>
#define V   typename properties<F>::index_type
#define C   typename properties<F>::scalar_type

Functions

TMPL bool is_nil (function< F, T > f)
 ABSTRACT_NULL_TEMPLATE_2_CODE (function, typename, F, typename, T)
TMPL function< F, Tderive (function< F, T > f, V var)
TMPL tree as_tree (function< F, T > f)
TMPL tm_ostreamoperator<< (tm_ostream &out, function< F, T > f)
TMPL function< F, Tcoordinate_function (V var, T c=1)
template<typename F , typename T , typename Op >
function< F, Tunary_function (function< F, T > f)
template<typename F , typename T , typename Op >
function< F, Tbinary_function (function< F, T > f, function< F, T > g)
TMPL function< F, Toperator- (function< F, T > f)
TMPL function< F, Toperator+ (function< F, T > f, function< F, T > g)
TMPL function< F, Toperator- (function< F, T > f, function< F, T > g)
TMPL function< F, Toperator* (function< F, T > f, function< F, T > g)
TMPL function< F, Toperator/ (function< F, T > f, function< F, T > g)
TMPL function< F, Tsqrt (function< F, T > f)
TMPL function< F, Texp (function< F, T > f)
TMPL function< F, Tlog (function< F, T > f)
TMPL function< F, Tpow (function< F, T > f, function< F, T > g)
TMPL function< F, Tcos (function< F, T > f)
TMPL function< F, Tsin (function< F, T > f)
TMPL function< F, Ttan (function< F, T > f)

Define Documentation

#define C   typename properties<F>::scalar_type

Definition at line 19 of file function.hpp.

#define TMPL   template<typename F, typename T>

Definition at line 17 of file function.hpp.

#define V   typename properties<F>::index_type

Definition at line 18 of file function.hpp.


Function Documentation

ABSTRACT_NULL_TEMPLATE_2_CODE ( function  ,
typename  ,
,
typename  ,
T   
)
TMPL tree as_tree ( function< F, T f) [inline]

Definition at line 55 of file function.hpp.

                                           {
  return f->expression (); }
template<typename F , typename T , typename Op >
function<F,T> binary_function ( function< F, T f,
function< F, T g 
) [inline]

Definition at line 136 of file function.hpp.

                                                   {
  return tm_new<binary_function_rep<F,T,Op> > (f, g); }
TMPL function<F,T> coordinate_function ( V  var,
T  c = 1 
) [inline]

Definition at line 101 of file function.hpp.

                                   {
  return tm_new<coordinate_function_rep<F,T> > (var, c); }
TMPL function<F,T> cos ( function< F, T f) [inline]

Definition at line 180 of file function.hpp.

                      {
  return unary_function<F,T,cos_op> (f); }
TMPL function<F,T> derive ( function< F, T f,
V  var 
) [inline]

Definition at line 53 of file function.hpp.

                                                          {
  return f->derive (var); }

Here is the caller graph for this function:

TMPL function<F,T> exp ( function< F, T f) [inline]

Definition at line 168 of file function.hpp.

                      {
  return unary_function<F,T,exp_op> (f); }
TMPL bool is_nil ( function< F, T f)
TMPL function<F,T> log ( function< F, T f) [inline]

Definition at line 172 of file function.hpp.

                      {
  return unary_function<F,T,log_op> (f); }
TMPL function<F,T> operator* ( function< F, T f,
function< F, T g 
) [inline]

Definition at line 156 of file function.hpp.

                                              {
  return binary_function<F,T,mul_op> (f, g); }
TMPL function<F,T> operator+ ( function< F, T f,
function< F, T g 
) [inline]

Definition at line 148 of file function.hpp.

                                              {
  return binary_function<F,T,add_op> (f, g); }
TMPL function<F,T> operator- ( function< F, T f) [inline]

Definition at line 144 of file function.hpp.

                             {
  return unary_function<F,T,neg_op> (f); }
TMPL function<F,T> operator- ( function< F, T f,
function< F, T g 
) [inline]

Definition at line 152 of file function.hpp.

                                              {
  return binary_function<F,T,sub_op> (f, g); }
TMPL function<F,T> operator/ ( function< F, T f,
function< F, T g 
) [inline]

Definition at line 160 of file function.hpp.

                                              {
  return binary_function<F,T,div_op> (f, g); }
TMPL tm_ostream& operator<< ( tm_ostream out,
function< F, T f 
) [inline]

Definition at line 57 of file function.hpp.

                                                                       {
  return out << as_math_string (as_tree (f)); }

Here is the call graph for this function:

TMPL function<F,T> pow ( function< F, T f,
function< F, T g 
) [inline]

Definition at line 176 of file function.hpp.

                                       {
  return binary_function<F,T,pow_op> (f, g); }
TMPL function<F,T> sin ( function< F, T f) [inline]

Definition at line 184 of file function.hpp.

                      {
  return unary_function<F,T,sin_op> (f); }
TMPL function<F,T> sqrt ( function< F, T f) [inline]

Definition at line 164 of file function.hpp.

                       {
  return unary_function<F,T,sqrt_op> (f); }
TMPL function<F,T> tan ( function< F, T f) [inline]

Definition at line 188 of file function.hpp.

                      {
  return unary_function<F,T,tan_op> (f); }
template<typename F , typename T , typename Op >
function<F,T> unary_function ( function< F, T f) [inline]

Definition at line 120 of file function.hpp.

                                 {
  return tm_new<unary_function_rep<F,T,Op> > (f); }