ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 87 of file casts.cpp.

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

Definition at line 88 of file casts.cpp.

#define TEST (   v1,
  v2 
)
Value:
typedef T2Helper<v1, v2> CONCAT(v1, v2); \
#define CONCAT(A, B)
Definition: casts.cpp:88
const Double_t * v1
Definition: TArcBall.cxx:33
void testCast()
Definition: casts.cpp:82
#define runTest(name)
Definition: unittest.h:42

Referenced by main().

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 104 of file casts.cpp.

template<typename T >
double maxHelper ( )

Definition at line 38 of file casts.cpp.

template<>
double maxHelper< int > ( )

Definition at line 43 of file casts.cpp.

template<>
double maxHelper< unsigned int > ( )

Definition at line 50 of file casts.cpp.

template<typename T >
void testCast ( )

Definition at line 82 of file casts.cpp.

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

Definition at line 57 of file casts.cpp.

void testFloatIndexesFromZero ( )

Definition at line 96 of file casts.cpp.

Referenced by main().

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

Definition at line 26 of file casts.cpp.