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

#include <DGtal/kernel/CSignedNumber.h>

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

Public Member Functions

 BOOST_CONCEPT_USAGE (CSignedNumber)
 

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

Notation

Definitions

Valid expressions and

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

Invariants

Models

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

Notes

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 >  )
inline

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

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

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