Back to index

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

#include <function.hpp>

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

List of all members.

Public Member Functions

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

Private Attributes

function< F, Tf

Detailed Description

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

Definition at line 109 of file function.hpp.


Constructor & Destructor Documentation

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

Definition at line 112 of file function.hpp.

: f (f2) {}

Member Function Documentation

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

Implements function_rep< F, T >.

Definition at line 113 of file function.hpp.

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

Here is the call graph for this function:

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

Implements function_rep< F, T >.

Definition at line 114 of file function.hpp.

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

Here is the call graph for this function:

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

Implements function_rep< F, T >.

Definition at line 115 of file function.hpp.

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

Implements function_rep< F, T >.

Definition at line 116 of file function.hpp.

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

Here is the call graph for this function:


Member Data Documentation

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

Definition at line 110 of file function.hpp.


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