Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

ConstFun Class Reference

#include <FloatFun.h>

Inheritance diagram for ConstFun:

Inheritance graph
[legend]
Collaboration diagram for ConstFun:

Collaboration graph
[legend]
List of all members.

Detailed Description

A FloatFun that returns a constant value.

Definition at line 52 of file FloatFun.h.

Public Member Functions

 ConstFun (Float_FF c_, const char *name_=0)
 ConstFun (Float_FF c_, const std::string &name_)
 Constructor from a C++ string.

virtual Float_FF operator() () const
 Returns a constant value c.


Protected Member Functions

virtual ~ConstFun ()
 Protected destructor ensures creation on the heap.


Protected Attributes

Float_FF c


Constructor & Destructor Documentation

ConstFun::ConstFun Float_FF  c_,
const char *  name_ = 0
[inline, explicit]
 

Parameters:
c_  The constant to be returned
name_  The object's name

Definition at line 55 of file FloatFun.h.

References c, and NamedO::str().

ConstFun::ConstFun Float_FF  c_,
const std::string &  name_
[inline]
 

Constructor from a C++ string.

Parameters:
c_  The constant to be returned
name_  The object's name

Definition at line 62 of file FloatFun.h.

References c, and NamedO::str().


Member Data Documentation

Float_FF ConstFun::c [protected]
 

The constant to be returned

Definition at line 71 of file FloatFun.h.

Referenced by ConstFun(), and operator()().


The documentation for this class was generated from the following file:
Generated on Thu Oct 26 12:54:29 2006 for SFH by doxygen 1.3.2