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

#include <CSegment.h>

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

Public Types

typedef T::ConstIterator ConstIterator

Public Member Functions

 BOOST_CONCEPT_USAGE (CSegment)

Private Attributes

myX
ConstIterator it

Detailed Description

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

Aim: Defines the concept describing a segment, ie. a valid and not empty range.

Description of concept 'CSegment'

Refinement of boost::DefaultConstructible<T>, boost::CopyConstructible<T>, boost::Assignable<T>, boost::EqualityComparable<T>

Associated types :

Notation

Valid expressions and semantics

Name Expression Type requirements Return type Precondition Semantics Postcondition Complexity
begin method x.begin() ConstIterator provides an iterator on the first element of the segment O(1)
end method x.end() ConstIterator past-the-end value

O(1)

Invariants

The range [x.begin(),x.end()) is valid (x.end() is reachable from x.begin()) and not empty (x.begin() != x.end()).

Models

Notes

A class of segments \( \Sigma_P \) is a set of segments such that for each segment of the set, a given predicate \( P \) is true: \( \forall s \in \Sigma_P, P(s) = \textrm{true} \).

Segment computers, which refines CSegment, are segment that can control their own extension so that a given predicate remains true.

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

Definition at line 126 of file CSegment.h.


Member Typedef Documentation

template<typename T >
typedef T::ConstIterator DGtal::CSegment< T >::ConstIterator

Definition at line 131 of file CSegment.h.


Member Function Documentation

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

Field Documentation

template<typename T >
ConstIterator DGtal::CSegment< T >::it
private

Definition at line 144 of file CSegment.h.

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

template<typename T >
T DGtal::CSegment< T >::myX
private

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