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::CSeparableMetric< T > Struct Template Reference

#include <CSeparableMetric.h>

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

Public Types

typedef T::InternalValue InternalValue
typedef T::Value Value
typedef T::Abscissa Abscissa

Public Member Functions

 BOOST_CONCEPT_USAGE (CSeparableMetric)

Private Attributes

myT
Abscissa a
InternalValue h

Detailed Description

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

DescriptionDescription of concept 'CSeparableMetric'

Aim: The concept CSeparableMetric specifies what are the classes that implement a model of separable metrics.

Refinement of

Associated types :

Notation

Definitions

Valid expressions and

Name Expression Type requirements Return type Precondition Semantics Postcondition Complexity

Invariants###

Models### l_0, l_1 and l_2 metrics defined in the SeparableMetricHelper.H

Notes###

Definition at line 89 of file CSeparableMetric.h.


Member Typedef Documentation

template<typename T >
typedef T::Abscissa DGtal::CSeparableMetric< T >::Abscissa

Definition at line 94 of file CSeparableMetric.h.

template<typename T >
typedef T::InternalValue DGtal::CSeparableMetric< T >::InternalValue

Definition at line 92 of file CSeparableMetric.h.

template<typename T >
typedef T::Value DGtal::CSeparableMetric< T >::Value

Definition at line 93 of file CSeparableMetric.h.


Member Function Documentation

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

Definition at line 98 of file CSeparableMetric.h.

References DGtal::CSeparableMetric< T >::myT, and DGtal::ConceptUtils::sameType().

{
//SeparableMetric model should have a F(Abscissa, Abscissa, InternalValue) returing an InternalValue
ConceptUtils::sameType( h, myT.F(a,a,h) );
//SeparableMetric model should have a Sep(Abscissa,InternalValue, Abscissa,InternalValue) returing an Value
ConceptUtils::sameType( a, myT.Sep(a,h,a,h) );
}

Field Documentation

template<typename T >
Abscissa DGtal::CSeparableMetric< T >::a
private

Definition at line 112 of file CSeparableMetric.h.

template<typename T >
InternalValue DGtal::CSeparableMetric< T >::h
private

Definition at line 113 of file CSeparableMetric.h.

template<typename T >
T DGtal::CSeparableMetric< T >::myT
private

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