DGtal  0.9.3beta
Public Member Functions | Private Attributes
DGtal::concepts::CIntegralNumber< T > Struct Template Reference

#include <DGtal/kernel/CIntegralNumber.h>

Inheritance diagram for DGtal::concepts::CIntegralNumber< T >:
Collaboration diagram for DGtal::concepts::CIntegralNumber< T >:

Public Member Functions


Private Attributes

NumberTraits< T >::IsIntegral myIsIntegral

Detailed Description

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

Aim: Concept checking for Integral Numbers. Models of this concept should be listed in NumberTraits class and should have the isIntegral property.

Description of concept 'CIntegralNumber'

Refinement of

Associated types



Valid expressions and semantics

Name Expression Type requirements Return typePrecondition Semantics Postcondition Complexity
X should be tagged true in NumberTraits for IsIntegral. typename NumberTraits<X>::IsIntegral TagTrue



BigInteger, short, int, long long, uint32_t, int16_t, int32_t, int64_t, ...


Template Parameters
Tthe type that is checked. T should be a model of CBoundedInteger.

Definition at line 101 of file CIntegralNumber.h.

Member Function Documentation

template<typename T >
DGtal::concepts::CIntegralNumber< T >::BOOST_CONCEPT_USAGE ( CIntegralNumber< T >  )

Definition at line 105 of file CIntegralNumber.h.

References DGtal::concepts::ConceptUtils::checkTrue(), and DGtal::concepts::CIntegralNumber< T >::myIsIntegral.

106  {
107  // Will compile iff Integral.
109  }
void checkTrue(const TagTrue &tag)
NumberTraits< T >::IsIntegral myIsIntegral

Field Documentation

template<typename T >
NumberTraits<T>::IsIntegral DGtal::concepts::CIntegralNumber< T >::myIsIntegral

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