Public Member Functions | Private Attributes
DGtal::concepts::CSignedNumber< T > Struct Template Reference

#include <DGtal/kernel/CSignedNumber.h>

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

Public Member Functions


Private Attributes

NumberTraits< T >::IsSigned myIsSigned

Detailed Description

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

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

Description of concept 'CSignedNumber'

Refinement of

Associated types



Valid expressions and

Name Expression Type requirements Return type Precondition Semantics Postcondition Complexity
X should be tagged true in NumberTraits for IsSigned typename NumberTraits<X>::IsSigned TagTrue



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


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

Definition at line 97 of file CSignedNumber.h.

Member Function Documentation


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

Definition at line 101 of file CSignedNumber.h.

References DGtal::concepts::ConceptUtils::checkTrue(), and DGtal::concepts::CSignedNumber< T >::myIsSigned.

102  {
103  // Will compile iff Signed.
105  }
void checkTrue(const TagTrue &tag)
NumberTraits< T >::IsSigned myIsSigned

Field Documentation

◆ myIsSigned

template<typename T >
NumberTraits<T>::IsSigned DGtal::concepts::CSignedNumber< T >::myIsSigned

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