Back to index

texmacs  1.0.7.15
Public Member Functions | Private Attributes
constant_function_rep Class Reference

#include <function.hpp>

Inheritance diagram for constant_function_rep:
Inheritance graph
[legend]
Collaboration diagram for constant_function_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

T c

Detailed Description

Definition at line 73 of file function.hpp.


Constructor & Destructor Documentation

Definition at line 76 of file function.hpp.

: c (c2) {}

Member Function Documentation

T constant_function_rep::apply ( x) [inline, virtual]

Implements function_rep< F, T >.

Definition at line 77 of file function.hpp.

{ return c; }
ball<T> constant_function_rep::apply ( ball< F >  x) [inline, virtual]

Implements function_rep< F, T >.

Definition at line 78 of file function.hpp.

{ return ball<T> (c, 0); }
function<F,T> constant_function_rep::derive ( V  var) [inline, virtual]

Implements function_rep< F, T >.

Definition at line 79 of file function.hpp.

{ return C(0) * c; }
tree constant_function_rep::expression ( ) [inline, virtual]

Implements function_rep< F, T >.

Definition at line 80 of file function.hpp.

{ return as_tree (c); }

Here is the call graph for this function:


Member Data Documentation

Definition at line 74 of file function.hpp.


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