ROOT  6.06/09
Reference Guide
Macros | Typedefs | Enumerations | Functions
implicit_type_conversion.cpp File Reference
#include "unittest.h"
+ Include dependency graph for implicit_type_conversion.cpp:

Go to the source code of this file.

Macros

#define _TYPE_TEST(a, b, c)
 
#define _TYPE_TEST_ERR(a, b)
 
#define TYPE_TEST(a, b, c)
 

Typedefs

typedef unsigned short ushort
 
typedef unsigned int uint
 
typedef unsigned long ulong
 
typedef long long longlong
 
typedef unsigned long long ulonglong
 

Enumerations

enum  SomeEnum { EnumValue = 0 }
 

Functions

SomeEnum Enum ()
 
void testImplicitTypeConversions ()
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define _TYPE_TEST (   a,
  b,
  c 
)
Value:
COMPARE(typeid(a() * b()), typeid(c)); \
COMPARE(typeid(a() / b()), typeid(c)); \
COMPARE(typeid(a() + b()), typeid(c)); \
COMPARE(typeid(a() - b()), typeid(c)); \
COMPARE(typeid(a() & b()), typeid(c)); \
COMPARE(typeid(a() | b()), typeid(c)); \
COMPARE(typeid(a() ^ b()), typeid(c)); \
COMPARE(typeid(a() == b()), typeid(c::Mask)); \
COMPARE(typeid(a() != b()), typeid(c::Mask)); \
COMPARE(typeid(a() <= b()), typeid(c::Mask)); \
COMPARE(typeid(a() >= b()), typeid(c::Mask)); \
COMPARE(typeid(a() < b()), typeid(c::Mask));
TArc * a
Definition: textangle.C:12
#define COMPARE(a, b)
Definition: unittest.h:509

Definition at line 50 of file implicit_type_conversion.cpp.

#define _TYPE_TEST_ERR (   a,
 
)
Value:
COMPARE(typeid(a() * b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() / b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() + b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() - b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() & b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() | b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() ^ b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() == b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() != b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() <= b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() >= b()), typeid(Vc::Error::invalid_operands_of_types<a, b>)); \
COMPARE(typeid(a() < b()), typeid(Vc::Error::invalid_operands_of_types<a, b>));
TArc * a
Definition: textangle.C:12
#define COMPARE(a, b)
Definition: unittest.h:509

Definition at line 64 of file implicit_type_conversion.cpp.

#define TYPE_TEST (   a,
  b,
  c 
)
Value:
COMPARE(typeid(a() > b()), typeid(c::Mask))
TArc * a
Definition: textangle.C:12
#define COMPARE(a, b)
Definition: unittest.h:509
#define _TYPE_TEST(a, b, c)

Definition at line 79 of file implicit_type_conversion.cpp.

Referenced by testImplicitTypeConversions().

Typedef Documentation

typedef long long longlong

Definition at line 28 of file implicit_type_conversion.cpp.

typedef unsigned int uint

Definition at line 26 of file implicit_type_conversion.cpp.

typedef unsigned long ulong

Definition at line 27 of file implicit_type_conversion.cpp.

typedef unsigned long long ulonglong

Definition at line 29 of file implicit_type_conversion.cpp.

typedef unsigned short ushort

Definition at line 25 of file implicit_type_conversion.cpp.

Enumeration Type Documentation

enum SomeEnum
Enumerator
EnumValue 

Definition at line 89 of file implicit_type_conversion.cpp.

Function Documentation

Definition at line 90 of file implicit_type_conversion.cpp.

Referenced by testImplicitTypeConversions().

int main ( int  argc,
char **  argv 
)

Definition at line 270 of file implicit_type_conversion.cpp.

void testImplicitTypeConversions ( )

Definition at line 92 of file implicit_type_conversion.cpp.

Referenced by main().