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

#include <DGtal/kernel/CUnsignedNumber.h>

Inheritance diagram for DGtal::concepts::CUnsignedNumber< T >:
[legend]
Collaboration 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 typePrecondition 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

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

Definition at line 98 of file CUnsignedNumber.h.

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

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

Field Documentation

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

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