DGtal 1.3.0
|
Aim: Defines the concept describing an object that computes some primitive from input points, while keeping some internal state. At any moment, the object is supposed to store at least one valid primitive for the formerly given input points. A primitive is an informal word that describes some family of objects that share common characteristics. Often, the primitives are geometric, e.g. digital planes. More...
#include <DGtal/geometry/surfaces/CPrimitiveComputer.h>
Public Types | |
typedef T::Primitive | Primitive |
typedef T::Space | Space |
Public Member Functions | |
BOOST_CONCEPT_USAGE (CPrimitiveComputer) | |
void | checkConstConstraints () const |
Private Attributes | |
T | myX |
Primitive | myP |
Aim: Defines the concept describing an object that computes some primitive from input points, while keeping some internal state. At any moment, the object is supposed to store at least one valid primitive for the formerly given input points. A primitive is an informal word that describes some family of objects that share common characteristics. Often, the primitives are geometric, e.g. digital planes.
Description of concept 'CPrimitiveComputer'
Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
---|---|---|---|---|---|---|---|
access to primitive | x.primitive() | Primitive | returns a primitive that represents the current solution | O(1) |
T | the type that should be a model of CPrimitiveComputer. |
Definition at line 95 of file CPrimitiveComputer.h.
typedef T::Primitive DGtal::concepts::CPrimitiveComputer< T >::Primitive |
Definition at line 100 of file CPrimitiveComputer.h.
typedef T::Space DGtal::concepts::CPrimitiveComputer< T >::Space |
Definition at line 101 of file CPrimitiveComputer.h.
|
inline |
Definition at line 104 of file CPrimitiveComputer.h.
References DGtal::concepts::CPrimitiveComputer< T >::checkConstConstraints().
|
inline |
Definition at line 108 of file CPrimitiveComputer.h.
References DGtal::concepts::CPrimitiveComputer< T >::myP, DGtal::concepts::CPrimitiveComputer< T >::myX, and DGtal::concepts::ConceptUtils::sameType().
Referenced by DGtal::concepts::CPrimitiveComputer< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 115 of file CPrimitiveComputer.h.
Referenced by DGtal::concepts::CPrimitiveComputer< T >::checkConstConstraints().
|
private |
Definition at line 114 of file CPrimitiveComputer.h.
Referenced by DGtal::concepts::CPrimitiveComputer< T >::checkConstConstraints().