ROOT  6.06/08
Reference Guide
Macros | Functions
casts.cpp File Reference
#include "unittest.h"
#include <limits>
#include <algorithm>
+ Include dependency graph for casts.cpp:

Go to the source code of this file.

Macros

#define _CONCAT(A, B)   A ## _ ## B
 
#define CONCAT(A, B)   _CONCAT(A, B)
 
#define TEST(v1, v2)
 

Functions

template<typename V1 , typename V2 >
void testNumber (double n)
 
template<typename T >
double maxHelper ()
 
template<>
double maxHelper< int > ()
 
template<>
double maxHelper< unsigned int > ()
 
template<typename V1 , typename V2 >
void testCast2 ()
 
template<typename T >
void testCast ()
 
void testFloatIndexesFromZero ()
 
int main (int argc, char **argv)
 

Macro Definition Documentation

§ _CONCAT

#define _CONCAT (   A,
 
)    A ## _ ## B

Definition at line 87 of file casts.cpp.

§ CONCAT

#define CONCAT (   A,
 
)    _CONCAT(A, B)

Definition at line 88 of file casts.cpp.

§ TEST

#define TEST (   v1,
  v2 
)
Value:
typedef T2Helper<v1, v2> CONCAT(v1, v2); \
runTest(testCast<CONCAT(v1, v2)>)
#define CONCAT(A, B)
Definition: casts.cpp:88
void testCast()
Definition: casts.cpp:82

Referenced by main().

Function Documentation

§ main()

int main ( int  argc,
char **  argv 
)

Definition at line 104 of file casts.cpp.

§ maxHelper()

template<typename T >
double maxHelper ( )

Definition at line 38 of file casts.cpp.

§ maxHelper< int >()

template<>
double maxHelper< int > ( )

Definition at line 43 of file casts.cpp.

§ maxHelper< unsigned int >()

template<>
double maxHelper< unsigned int > ( )

Definition at line 50 of file casts.cpp.

§ testCast()

template<typename T >
void testCast ( )

Definition at line 82 of file casts.cpp.

§ testCast2()

template<typename V1 , typename V2 >
void testCast2 ( )

Definition at line 57 of file casts.cpp.

§ testFloatIndexesFromZero()

void testFloatIndexesFromZero ( )

Definition at line 96 of file casts.cpp.

Referenced by main().

§ testNumber()

template<typename V1 , typename V2 >
void testNumber ( double  n)

Definition at line 26 of file casts.cpp.