DGtal  1.1.0
CUnsignedNumber.h
1 
17 #pragma once
18 
33 #if defined(CUnsignedNumber_RECURSES)
34 #error Recursive header files inclusion detected in CUnsignedNumber.h
35 #else // defined(CUnsignedNumber_RECURSES)
36 
37 #define CUnsignedNumber_RECURSES
38 
39 #if !defined CUnsignedNumber_h
40 
41 #define CUnsignedNumber_h
42 
44 // Inclusions
45 #include <iostream>
46 #include "DGtal/base/Common.h"
47 #include "DGtal/base/ConceptUtils.h"
48 #include "DGtal/kernel/NumberTraits.h"
49 #include "DGtal/base/CQuantity.h"
51 
52 namespace DGtal
53 {
54  namespace concepts
55  {
57  // class CUnsignedNumber
93  template <typename T>
95  {
96  // ----------------------- Concept checks ------------------------------
97  public:
99  {
100  // Will compile iff Unsigned.
102  }
103 
104  // ------------------------- Private Datas --------------------------------
105  private:
106 
107  // ------------------------- Internals ------------------------------------
108  private:
110 
111  }; // end of concept CUnsignedNumber
112 }
113 } // namespace DGtal
114 
115  //
117 
118 #endif // !defined CUnsignedNumber_h
119 
120 #undef CUnsignedNumber_RECURSES
121 #endif // else defined(CUnsignedNumber_RECURSES)
DGtal::concepts::ConceptUtils::checkTrue
void checkTrue(const TagTrue &tag)
DGtal::concepts::CUnsignedNumber
Aim: Concept checking for Unsigned numbers. Models of this concept should be listed in NumberTraits c...
Definition: CUnsignedNumber.h:95
DGtal::TagUnknown
Definition: ConceptUtils.h:63
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::concepts::CUnsignedNumber::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CUnsignedNumber)
Definition: CUnsignedNumber.h:98
DGtal::concepts::CQuantity
Aim: defines the concept of quantity in DGtal.
Definition: CQuantity.h:93
DGtal::concepts::CUnsignedNumber::myIsUnsigned
NumberTraits< T >::IsUnsigned myIsUnsigned
Definition: CUnsignedNumber.h:109