Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

function_real_parameter Class Reference

function_parameters calculate themselves from other parameters. More...

#include <function_real_parameter.h>

Inheritance diagram for function_real_parameter::

abstract_real_parameter List of all members.

Public Methods

 function_real_parameter ()
 function_real_parameter (double(*func)(real_parameter *), real_parameter *pars)
void set (double(*func)(real_parameter *), real_parameter *pars)
 Set the function and array of parameters to be used to calculate this parameter. More...

double get () const
 Get the value of this parameter. More...


Private Attributes

double (*  function )(real_parameter *)
 This is a function to calculate the parameter. More...

real_parameterfunction_pars
 Hold an array of parameters to pass to the function. More...


Detailed Description

function_parameters calculate themselves from other parameters.

They hold a function pointer and an array of real_parameters to pass to the function.

Definition at line 50 of file function_real_parameter.h.


Constructor & Destructor Documentation

function_real_parameter::function_real_parameter ( )
 

Definition at line 36 of file function_real_parameter.cc.

function_real_parameter::function_real_parameter ( double(* func)(real_parameter *),
real_parameter * pars )
 

Parameters:
func   a function to be used to calculate this real_parameter
pars   an array of parameters to be passed to func

Definition at line 41 of file function_real_parameter.cc.


Member Function Documentation

double function_real_parameter::get ( ) const [virtual]
 

Get the value of this parameter.

Returns:
the value of this parameter

Reimplemented from abstract_real_parameter.

Definition at line 46 of file function_real_parameter.cc.

void function_real_parameter::set ( double(* func)(real_parameter *),
real_parameter * pars )
 

Set the function and array of parameters to be used to calculate this parameter.

Parameters:
func   a function to be used to calculate this real_parameter
pars   an array of parameters to be passed to func

Definition at line 58 of file function_real_parameter.cc.


Member Data Documentation

double(* function_real_parameter::function)(real_parameter *) [private]
 

This is a function to calculate the parameter.

Referenced by get().

real_parameter * function_real_parameter::function_pars [private]
 

Hold an array of parameters to pass to the function.

They must be real_parameter instances!

Definition at line 60 of file function_real_parameter.h.


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

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7