Back to index

texmacs  1.0.7.15
Public Member Functions | Private Attributes
binary_function_rep< F, T, Op > Class Template Reference

#include <function.hpp>

Inheritance diagram for binary_function_rep< F, T, Op >:
Inheritance graph
[legend]
Collaboration diagram for binary_function_rep< F, T, Op >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 binary_function_rep (function< F, T > f2, function< F, T > g2)
T apply (F x)
ball< Tapply (ball< F > x)
function< F, Tderive (V var)
tree expression ()

Private Attributes

function< F, Tf
function< F, Tg

Detailed Description

template<typename F, typename T, typename Op>
class binary_function_rep< F, T, Op >

Definition at line 124 of file function.hpp.


Constructor & Destructor Documentation

template<typename F , typename T , typename Op >
binary_function_rep< F, T, Op >::binary_function_rep ( function< F, T f2,
function< F, T g2 
) [inline]

Definition at line 127 of file function.hpp.

                                                                 :
    f (f2), g (g2) {}

Member Function Documentation

template<typename F , typename T , typename Op >
T binary_function_rep< F, T, Op >::apply ( x) [inline, virtual]

Implements function_rep< F, T >.

Definition at line 129 of file function.hpp.

{ return Op::eval (f (x), g (x)); }

Here is the call graph for this function:

template<typename F , typename T , typename Op >
ball<T> binary_function_rep< F, T, Op >::apply ( ball< F >  x) [inline, virtual]

Implements function_rep< F, T >.

Definition at line 130 of file function.hpp.

{ return Op::eval (f (x), g (x)); }

Here is the call graph for this function:

template<typename F , typename T , typename Op >
function<F,T> binary_function_rep< F, T, Op >::derive ( V  var) [inline, virtual]

Implements function_rep< F, T >.

Definition at line 131 of file function.hpp.

{ return Op::diff (f, g, var); }
template<typename F , typename T , typename Op >
tree binary_function_rep< F, T, Op >::expression ( ) [inline, virtual]

Implements function_rep< F, T >.

Definition at line 132 of file function.hpp.

{ return Op::eval (as_tree (f), as_tree (g)); }

Here is the call graph for this function:


Member Data Documentation

template<typename F , typename T , typename Op >
function<F,T> binary_function_rep< F, T, Op >::f [private]

Definition at line 125 of file function.hpp.

template<typename F , typename T , typename Op >
function<F,T> binary_function_rep< F, T, Op >::g [private]

Definition at line 125 of file function.hpp.


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