BSUtilities::Rational< N, D > Struct Template Reference

#include <TemplateTools.h>

List of all members.

Public Types

typedef Rational< N/gcd,
D/gcd
Canonical

Static Public Member Functions

template<class To>
static To convert ()
 convert the Rational into a type To

Static Public Attributes

static long const numerator = N
static long const denominator = D

Static Private Attributes

static long const gcd = Signum<D>::RET * Gcd<N,D>::RET


Detailed Description

template<long N, long D = 1L>
struct BSUtilities::Rational< N, D >

Rational numbers in metaprogramming (from Brown, 2001) A rational number Rational is defined by two long integers N and D; from Brown, 2001

Definition at line 342 of file TemplateTools.h.


The documentation for this struct was generated from the following file:
Generated on Sun Jul 26 16:51:58 2009 for BSUtilities by  doxygen 1.5.3