Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

Function_impl_owner Class Reference

#include <Function.h>

Inheritance diagram for Function_impl_owner::

IFunction List of all members.

Public Methods

 Function_impl_owner (std::string label, std::auto_ptr< Anaphe::IModelFunction > modelFun)
const std::string& label () const
double value (const std::vector< double > &point) const
int dimension () const
const std::vector< std::string >& parameterNames () const
const std::vector< double >& parameterValues () const
bool setParameterValue (const std::string &name, double value)
const std::string& version () const
bool setParameterValues (std::vector< double > vals)

Private Attributes

std::auto_ptr<Anaphe::IModelFunction> m_modelFun
Function_plain_wrapper m_wrapper

Detailed Description

Wrapper with automatic memory management for underlying implementation. Suitable for direct 'standalone' use (i.e. in interactive environment).

Definition at line 140 of file Function.h.


Constructor & Destructor Documentation

Function_impl_owner::Function_impl_owner ( std::string label,
std::auto_ptr< Anaphe::IModelFunction > modelFun )
 

IModelFunction pointer must not be null and must be allocated on the heap (new). Function claims ownership and deletes IModelFunction pointer in destructor.


Member Function Documentation

int Function_impl_owner::dimension ( ) const [inline]
 

Definition at line 160 of file Function.h.

const std::string & Function_impl_owner::label ( ) const [inline]
 

Definition at line 154 of file Function.h.

const std::vector< std::string > & Function_impl_owner::parameterNames< std::string > ( ) const [inline]
 

Definition at line 163 of file Function.h.

const std::vector< double > & Function_impl_owner::parameterValues< double > ( ) const [inline]
 

Definition at line 166 of file Function.h.

bool Function_impl_owner::setParameterValue ( const std::string & name,
double value ) [inline]
 

Definition at line 169 of file Function.h.

bool Function_impl_owner::setParameterValues ( std::vector< double > vals ) [inline]
 

Definition at line 176 of file Function.h.

double Function_impl_owner::value ( const std::vector< double > & point ) const [inline]
 

Definition at line 157 of file Function.h.

const std::string & Function_impl_owner::version ( ) const [inline]
 

Definition at line 172 of file Function.h.


Member Data Documentation

std::auto_ptr< Anaphe::IModelFunction > Function_impl_owner::m_modelFun<Anaphe::IModelFunction> [private]
 

Definition at line 180 of file Function.h.

Function_plain_wrapper Function_impl_owner::m_wrapper [private]
 

Definition at line 181 of file Function.h.


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

Anaphe documentation generated by Doxygen (www.doxygen.org)