CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

testIsConvertible.cc File Reference
#include <CLHEP/Utility/noncopyable.h>
#include <CLHEP/Utility/type_traits.h>
#include <cassert>

Go to the source code of this file.

Classes

struct  UDT
 
struct  POD_UDT
 
struct  empty_UDT
 
struct  empty_POD_UDT
 
union  union_UDT
 
union  POD_union_UDT
 
union  empty_union_UDT
 
union  empty_POD_union_UDT
 
struct  nothrow_copy_UDT
 
struct  nothrow_assign_UDT
 
struct  nothrow_construct_UDT
 
class  Base
 
class  Derived
 
class  Derived2
 
class  MultiBase
 
class  PrivateBase
 
class  NonDerived
 
struct  VB
 
struct  VD
 
struct  non_pointer
 
struct  non_int_pointer
 
struct  int_constructible
 
struct  int_convertible
 
struct  non_empty
 
struct  test_abc1
 
struct  test_abc2
 
struct  test_abc3
 
struct  polymorphic_base
 
struct  polymorphic_derived1
 
struct  polymorphic_derived2
 
struct  virtual_inherit1
 
struct  virtual_inherit2
 
struct  virtual_inherit3
 
struct  virtual_inherit4
 
struct  virtual_inherit5
 
struct  virtual_inherit6
 
struct  trivial_except_construct
 
struct  trivial_except_destroy
 
struct  trivial_except_copy
 
struct  trivial_except_assign
 
struct  wrap< T >
 
struct  convertible_from< T >
 
struct  base2
 
struct  middle2
 
struct  derived2
 

Macros

#define conversion_claim(From, To)
 
#define does_convert(From, To)
 
#define does_not_convert(From, To)
 

Typedefs

typedef void(* f1) ()
 
typedef int(* f2) (int)
 
typedef int(* f3) (int, bool)
 
typedef void(UDT::* mf1) ()
 
typedef int(UDT::* mf2) ()
 
typedef int(UDT::* mf3) (int)
 
typedef int(UDT::* mf4) (int, float)
 
typedef int(UDT::* cmf) (int) const
 

Enumerations

enum  enum_UDT { one , two , three }
 
enum  enum1 { one_ , two_ }
 
enum  enum2 { three_ , four_ }
 

Functions

int main ()
 

Macro Definition Documentation

◆ conversion_claim

#define conversion_claim ( From,
To )

◆ does_convert

#define does_convert ( From,
To )
Value:
assert(conversion_claim(From,To))
#define conversion_claim(From, To)

Referenced by main().

◆ does_not_convert

#define does_not_convert ( From,
To )
Value:
assert(!conversion_claim(From,To))

Referenced by main().

Typedef Documentation

◆ cmf

typedef int(UDT::* cmf) (int) const

Definition at line 45 of file testIsConvertible.cc.

◆ f1

typedef void(* f1) ()

Definition at line 37 of file testIsConvertible.cc.

◆ f2

typedef int(* f2) (int)

Definition at line 38 of file testIsConvertible.cc.

◆ f3

typedef int(* f3) (int, bool)

Definition at line 39 of file testIsConvertible.cc.

◆ mf1

typedef void(UDT::* mf1) ()

Definition at line 40 of file testIsConvertible.cc.

◆ mf2

typedef int(UDT::* mf2) ()

Definition at line 41 of file testIsConvertible.cc.

◆ mf3

typedef int(UDT::* mf3) (int)

Definition at line 42 of file testIsConvertible.cc.

◆ mf4

typedef int(UDT::* mf4) (int, float)

Definition at line 43 of file testIsConvertible.cc.

Enumeration Type Documentation

◆ enum1

enum enum1
Enumerator
one_ 
two_ 

Definition at line 118 of file testIsConvertible.cc.

◆ enum2

enum enum2
Enumerator
three_ 
four_ 

Definition at line 123 of file testIsConvertible.cc.

◆ enum_UDT

enum enum_UDT
Enumerator
one 
two 
three 

Definition at line 22 of file testIsConvertible.cc.

Function Documentation

◆ main()

int main ( )

Definition at line 267 of file testIsConvertible.cc.

References does_convert, and does_not_convert.