Public Member Functions | List of all members
imath::TISurjectFunction< Argument, Result > Class Template Referenceabstract

Template interface for any surjective mathematical function. More...

#include <TISurjectFunction.h>

Inheritance diagram for imath::TISurjectFunction< Argument, Result >:
imath::TIMathFunction< Argument, Result > istd::IPolymorphic

Public Member Functions

virtual bool GetInvValueAt (const Result &argument, Argument &result) const =0
 Get inverted function value. More...
 
virtual Argument GetInvValueAt (const Result &argument) const =0
 Get inverted function value. More...
 
- Public Member Functions inherited from imath::TIMathFunction< Argument, Result >
virtual bool GetValueAt (const Argument &argument, Result &result) const =0
 Get function value for specified argument value. More...
 
virtual Result GetValueAt (const Argument &argument) const =0
 Get function value for specified argument value. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Additional Inherited Members

- Public Types inherited from imath::TIMathFunction< Argument, Result >
typedef Argument ArgumentType
 
typedef Result ResultType
 

Detailed Description

template<typename Argument, typename Result>
class imath::TISurjectFunction< Argument, Result >

Template interface for any surjective mathematical function.

A function is surjective if for every y in the codomain Y there is at least one x in the domain X such that f(x) = y.

Definition at line 18 of file TISurjectFunction.h.

Member Function Documentation

template<typename Argument, typename Result>
virtual bool imath::TISurjectFunction< Argument, Result >::GetInvValueAt ( const Result &  argument,
Argument &  result 
) const
pure virtual

Get inverted function value.

Parameters
argumentfunction argument.
resultfunction value for specified argument.
Returns
true if result was correctly calculated.
template<typename Argument, typename Result>
virtual Argument imath::TISurjectFunction< Argument, Result >::GetInvValueAt ( const Result &  argument) const
pure virtual

Get inverted function value.

This overloaded menthod is provided only for convinence.

Parameters
argumentfunction argument.
Returns
function value for specified argument.

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy