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

ConstIntFun Class Reference

#include <IntFun.h>

Inheritance diagram for ConstIntFun:

Inheritance graph
[legend]
Collaboration diagram for ConstIntFun:

Collaboration graph
[legend]
List of all members.

Detailed Description

A IntFun that returns a constant value.

Definition at line 44 of file IntFun.h.

Public Member Functions

 ConstIntFun (int c_, const char *name_=0)
 Constructor from a C style string, serves as default constructor.

 ConstIntFun (int c_, const std::string &name_)
 Constructor from a C++ string.

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


Protected Member Functions

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


Protected Attributes

const int c


Constructor & Destructor Documentation

ConstIntFun::ConstIntFun int  c_,
const char *  name_ = 0
[inline, explicit]
 

Constructor from a C style string, serves as default constructor.

Parameters:
c_  The constant to be returned
name_  An optional name

Definition at line 47 of file IntFun.h.

References c, and NamedO::str().

ConstIntFun::ConstIntFun int  c_,
const std::string &  name_
[inline, explicit]
 

Constructor from a C++ string.

Parameters:
c_  The constant to be returned
name_  An optional name

Definition at line 55 of file IntFun.h.

References c, and NamedO::str().


Member Data Documentation

const int ConstIntFun::c [protected]
 

The constant to be returned

Definition at line 66 of file IntFun.h.

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


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