DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes
DGtal::concepts::CIncrementalPrimitiveComputer< T > Struct Template Reference

Aim: Defines the concept describing an object that computes some primitive from input points given one at a time, 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/CIncrementalPrimitiveComputer.h>

Inheritance diagram for DGtal::concepts::CIncrementalPrimitiveComputer< T >:
DGtal::concepts::CPrimitiveComputer< T > boost::DefaultConstructible< T > boost::CopyConstructible< T > boost::Assignable< T > DGtal::concepts::CAdditivePrimitiveComputer< T >

Public Types

typedef T::Point Point
 
- Public Types inherited from DGtal::concepts::CPrimitiveComputer< T >
typedef T::Primitive Primitive
 
typedef T::Space Space
 

Public Member Functions

 BOOST_CONCEPT_USAGE (CIncrementalPrimitiveComputer)
 
void checkConstConstraints () const
 
- Public Member Functions inherited from DGtal::concepts::CPrimitiveComputer< T >
 BOOST_CONCEPT_USAGE (CPrimitiveComputer)
 
void checkConstConstraints () const
 

Private Attributes

myX
 
Point myPoint
 
bool myBool
 

Detailed Description

template<typename T>
struct DGtal::concepts::CIncrementalPrimitiveComputer< T >

Aim: Defines the concept describing an object that computes some primitive from input points given one at a time, 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 'CIncrementalPrimitiveComputer'

Refinement of CPrimitiveComputer

Associated types

Notation

Valid expressions and semantics

Name Expression Type requirements Return type Precondition Semantics Post condition Complexity
insert new point x.extend(p) bool tries to find a primitive that matches the new point p and all formerly given input points, return true on success (state may change), false otherwise (state is unchanged)
check new point x.isExtendable(p) bool tries to find a primitive that matches the new point p and all formerly given input points, return true only if it possible, the state is always unchanged

Invariants

Models

Notes

Template Parameters
Tthe type that should be a model of CIncrementalPrimitiveComputer.

Definition at line 99 of file CIncrementalPrimitiveComputer.h.

Member Typedef Documentation

◆ Point

template<typename T >
typedef T::Point DGtal::concepts::CIncrementalPrimitiveComputer< T >::Point

Definition at line 104 of file CIncrementalPrimitiveComputer.h.

Member Function Documentation

◆ BOOST_CONCEPT_USAGE()

template<typename T >
DGtal::concepts::CIncrementalPrimitiveComputer< T >::BOOST_CONCEPT_USAGE ( CIncrementalPrimitiveComputer< T >  )
inline

◆ checkConstConstraints()

template<typename T >
void DGtal::concepts::CIncrementalPrimitiveComputer< T >::checkConstConstraints ( ) const
inline

Field Documentation

◆ myBool

template<typename T >
bool DGtal::concepts::CIncrementalPrimitiveComputer< T >::myBool
private

◆ myPoint

template<typename T >
Point DGtal::concepts::CIncrementalPrimitiveComputer< T >::myPoint
private

◆ myX

template<typename T >
T DGtal::concepts::CIncrementalPrimitiveComputer< T >::myX
private

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