DGtal  1.5.beta
DGtal::concepts::CUnsignedNumber< T > Struct Template Reference

Aim: Concept checking for Unsigned numbers. Models of this concept should be listed in NumberTraits class and should have the isUnsigned property. More...

#include <DGtal/kernel/CUnsignedNumber.h>

Inheritance diagram for DGtal::concepts::CUnsignedNumber< T >:
[legend]

Public Member Functions

 BOOST_CONCEPT_USAGE (CUnsignedNumber)
 

Private Attributes

NumberTraits< T >::IsUnsigned myIsUnsigned
 

Detailed Description

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

Aim: Concept checking for Unsigned numbers. Models of this concept should be listed in NumberTraits class and should have the isUnsigned property.

Description of concept 'CUnsignedNumber'

Refinement of

Associated types

Notation

Definitions

Valid expressions

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

Invariants

Models

unsigned short, unsigned int, unsigned long long, uint16_t, uint32_t, uint64_t.

Notes

Definition at line 94 of file CUnsignedNumber.h.

Member Function Documentation

◆ BOOST_CONCEPT_USAGE()

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

Definition at line 98 of file CUnsignedNumber.h.

99  {
100  // Will compile iff Unsigned.
102  }
void checkTrue(const TagTrue &tag)
NumberTraits< T >::IsUnsigned myIsUnsigned

References DGtal::concepts::ConceptUtils::checkTrue(), and DGtal::concepts::CUnsignedNumber< T >::myIsUnsigned.

Field Documentation

◆ myIsUnsigned

template<typename T >
NumberTraits<T>::IsUnsigned DGtal::concepts::CUnsignedNumber< T >::myIsUnsigned
private

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