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

testPrimaryTraits.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_to_pointer
 

Macros

#define claim_void(Type)
 
#define has_void_type(Type)
 
#define has_nonvoid_type(Type)
 
#define claim_integral(Type)
 
#define has_integral_type(Type)
 
#define has_nonintegral_type(Type)
 
#define claim_floating(Type)
 
#define has_floating_type(Type)
 
#define has_nonfloating_type(Type)
 
#define claim_array(Type)
 
#define has_array_type(Type)
 
#define has_nonarray_type(Type)
 
#define claim_ptr(Type)
 
#define has_ptr_type(Type)
 
#define has_nonptr_type(Type)
 
#define claim_lref(Type)
 
#define has_lref_type(Type)
 
#define has_nonlref_type(Type)
 
#define claim_ref(Type)
 
#define has_ref_type(Type)
 
#define has_nonref_type(Type)
 
#define lref(Type)
 
#define nonref(Type)
 
#define claim_mbrobjptr(Type)
 
#define has_mbrobjptr_type(Type)
 
#define has_nonmbrobjptr_type(Type)
 
#define claim_mbrfctnptr(Type)
 
#define has_mbrfctnptr_type(Type)
 
#define has_nonmbrfctnptr_type(Type)
 
#define claim_enum(Type)
 
#define has_enum_type(Type)
 
#define has_nonenum_type(Type)
 

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
 
typedef int & r_type
 

Enumerations

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

Functions

int main ()
 

Macro Definition Documentation

◆ claim_array

#define claim_array ( Type)

◆ claim_enum

#define claim_enum ( Type)

◆ claim_floating

◆ claim_integral

#define claim_integral ( Type)

◆ claim_lref

◆ claim_mbrfctnptr

◆ claim_mbrobjptr

◆ claim_ptr

◆ claim_ref

◆ claim_void

#define claim_void ( Type)

◆ has_array_type

#define has_array_type ( Type)
Value:
assert(claim_array(Type))
#define claim_array(Type)

Referenced by main().

◆ has_enum_type

#define has_enum_type ( Type)
Value:
assert(claim_enum(Type))
#define claim_enum(Type)

Referenced by main().

◆ has_floating_type

#define has_floating_type ( Type)
Value:
assert(claim_floating(Type))
#define claim_floating(Type)

Referenced by main().

◆ has_integral_type

#define has_integral_type ( Type)
Value:
assert(claim_integral(Type))
#define claim_integral(Type)

Referenced by main().

◆ has_lref_type

#define has_lref_type ( Type)
Value:
assert(claim_lref(Type))
#define claim_lref(Type)

◆ has_mbrfctnptr_type

#define has_mbrfctnptr_type ( Type)
Value:
assert(claim_mbrfctnptr(Type))
#define claim_mbrfctnptr(Type)

Referenced by main().

◆ has_mbrobjptr_type

#define has_mbrobjptr_type ( Type)
Value:
assert(claim_mbrobjptr(Type))
#define claim_mbrobjptr(Type)

Referenced by main().

◆ has_nonarray_type

#define has_nonarray_type ( Type)
Value:
assert(!claim_array(Type))

Referenced by main().

◆ has_nonenum_type

#define has_nonenum_type ( Type)
Value:
assert(!claim_enum(Type))

Referenced by main().

◆ has_nonfloating_type

#define has_nonfloating_type ( Type)
Value:
assert(!claim_floating(Type))

Referenced by main().

◆ has_nonintegral_type

#define has_nonintegral_type ( Type)
Value:
assert(!claim_integral(Type))

Referenced by main().

◆ has_nonlref_type

#define has_nonlref_type ( Type)
Value:
assert(!claim_lref(Type))

◆ has_nonmbrfctnptr_type

#define has_nonmbrfctnptr_type ( Type)
Value:
assert(!claim_mbrfctnptr(Type))

Referenced by main().

◆ has_nonmbrobjptr_type

#define has_nonmbrobjptr_type ( Type)
Value:
assert(!claim_mbrobjptr(Type))

Referenced by main().

◆ has_nonptr_type

#define has_nonptr_type ( Type)
Value:
assert(!claim_ptr(Type))
#define claim_ptr(Type)

Referenced by main().

◆ has_nonref_type

#define has_nonref_type ( Type)
Value:
assert(!claim_ref(Type))
#define claim_ref(Type)

◆ has_nonvoid_type

#define has_nonvoid_type ( Type)
Value:
assert(!claim_void(Type))
#define claim_void(Type)

Referenced by main().

◆ has_ptr_type

#define has_ptr_type ( Type)
Value:
assert(claim_ptr(Type))

Referenced by main().

◆ has_ref_type

#define has_ref_type ( Type)
Value:
assert(claim_ref(Type))

◆ has_void_type

#define has_void_type ( Type)
Value:
assert(claim_void(Type))

Referenced by main().

◆ lref

#define lref ( Type)
Value:
#define has_ref_type(Type)
#define has_lref_type(Type)

Referenced by main().

◆ nonref

#define nonref ( Type)
Value:
#define has_nonref_type(Type)
#define has_nonlref_type(Type)

Referenced by main().

Typedef Documentation

◆ cmf

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

Definition at line 50 of file testPrimaryTraits.cc.

◆ f1

typedef void(* f1) ()

Definition at line 42 of file testPrimaryTraits.cc.

◆ f2

typedef int(* f2) (int)

Definition at line 43 of file testPrimaryTraits.cc.

◆ f3

typedef int(* f3) (int, bool)

Definition at line 44 of file testPrimaryTraits.cc.

◆ mf1

typedef void(UDT::* mf1) ()

Definition at line 45 of file testPrimaryTraits.cc.

◆ mf2

typedef int(UDT::* mf2) ()

Definition at line 46 of file testPrimaryTraits.cc.

◆ mf3

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

Definition at line 47 of file testPrimaryTraits.cc.

◆ mf4

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

Definition at line 48 of file testPrimaryTraits.cc.

◆ r_type

typedef int& r_type

Definition at line 60 of file testPrimaryTraits.cc.

Enumeration Type Documentation

◆ enum1

enum enum1
Enumerator
one_ 
two_ 

Definition at line 136 of file testPrimaryTraits.cc.

◆ enum2

enum enum2
Enumerator
three_ 
four_ 

Definition at line 139 of file testPrimaryTraits.cc.

◆ enum_UDT

enum enum_UDT
Enumerator
one 
two 
three 

Definition at line 27 of file testPrimaryTraits.cc.

Function Documentation

◆ main()