DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Attributes
DGtal::CImplicitFunctionDiff1< T > Struct Template Reference

#include <CImplicitFunctionDiff1.h>

Inheritance diagram for DGtal::CImplicitFunctionDiff1< T >:
Inheritance graph
[legend]
Collaboration diagram for DGtal::CImplicitFunctionDiff1< T >:
Collaboration graph
[legend]

Public Types

typedef T::RealPoint RealPoint
typedef T::RealVector RealVector
- Public Types inherited from DGtal::CImplicitFunction< T >
typedef T::Value Value

Public Member Functions

 BOOST_CONCEPT_USAGE (CImplicitFunctionDiff1)
void checkConstConstraints () const
- Public Member Functions inherited from DGtal::CImplicitFunction< T >
 BOOST_CONCEPT_ASSERT ((boost::UnaryFunction< T, Value, RealPoint >))

Private Attributes

myX
RealPoint myA
RealVector myB

Detailed Description

template<typename T>
struct DGtal::CImplicitFunctionDiff1< T >

Aim: Describes a 1-differentiable function of the form f(x), where x is some real point in the given space, and f(x) is some value.

Description of concept 'CImplicitFunctionDiff1'

Refinement of CImplicitFunction

Associated types :

- RealPoint: the type for the domain
- RealVector: the type for a vector in the domain
- Value: the type for the range

Notation

Definitions

Valid expressions and

Name Expression Type requirements Return type Precondition Semantics Postcondition Complexity
gradient operator gradient( a ) RealVector Evaluates the gradient of the function f at point a

Invariants

Models

- ImplicitPolynomial3Shape

Notes

Template Parameters:
Tthe type that should be a model of CImplicitFunctionDiff1.

Definition at line 112 of file CImplicitFunctionDiff1.h.


Member Typedef Documentation

template<typename T >
typedef T::RealPoint DGtal::CImplicitFunctionDiff1< T >::RealPoint

Reimplemented from DGtal::CImplicitFunction< T >.

Definition at line 117 of file CImplicitFunctionDiff1.h.

template<typename T >
typedef T::RealVector DGtal::CImplicitFunctionDiff1< T >::RealVector

Definition at line 118 of file CImplicitFunctionDiff1.h.


Member Function Documentation

template<typename T >
DGtal::CImplicitFunctionDiff1< T >::BOOST_CONCEPT_USAGE ( CImplicitFunctionDiff1< T >  )
inline

Definition at line 120 of file CImplicitFunctionDiff1.h.

References DGtal::CImplicitFunctionDiff1< T >::checkConstConstraints().

{
// check const methods.
}
template<typename T >
void DGtal::CImplicitFunctionDiff1< T >::checkConstConstraints ( ) const
inline

Definition at line 125 of file CImplicitFunctionDiff1.h.

References DGtal::CImplicitFunctionDiff1< T >::myA, DGtal::CImplicitFunctionDiff1< T >::myB, DGtal::CImplicitFunctionDiff1< T >::myX, and DGtal::ConceptUtils::sameType().

Referenced by DGtal::CImplicitFunctionDiff1< T >::BOOST_CONCEPT_USAGE().

{
// const method dummyConst should take parameter myA of type A and return
// something of type B
ConceptUtils::sameType( myB, myX.gradient( myA ) );
}

Field Documentation

template<typename T >
RealPoint DGtal::CImplicitFunctionDiff1< T >::myA
private
template<typename T >
RealVector DGtal::CImplicitFunctionDiff1< T >::myB
private
template<typename T >
T DGtal::CImplicitFunctionDiff1< T >::myX
private

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