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

Classes | Typedefs | Enumerations | Functions | Variables
testCategories.cc File Reference
#include "CLHEP/Utility/noncopyable.h"
#include "CLHEP/Utility/type_traits.h"
#include <cassert>
#include <iostream>

Go to the source code of this file.

Classes

struct  mytype
union  myblend
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

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 intUDT::* mp
typedef int(UDT::* cmf )(int) const
typedef int & r_type
typedef const r_type cr_type
typedef void foo0_t ()
typedef void foo1_t (int)
typedef void foo2_t (int &, double)
typedef void foo3_t (int &, bool, int, int)
typedef void foo4_t (int, bool, int *, int[], int, int, int, int, int)
typedef const doubleUDT::* mp2

Enumerations

enum  myenum { a = 12, b = 16 }
enum  enum_UDT {
  one, two, three, one,
  two, three, one, two,
  three
}
enum  enum1 {
  one_, two_, one_, two_,
  one_, two_
}
enum  enum2 {
  three_, four_, three_, four_,
  three_, four_
}

Functions

template<typename T >
unsigned evaluate ()
int main ()

Variables

unsigned _unknown = 0uL
unsigned _void = 1uL << 0
unsigned _integral = 1uL << 1
unsigned _floating_point = 1uL << 2
unsigned _array = 1uL << 3
unsigned _pointer = 1uL << 4
unsigned _lvalue_reference = 1uL << 5
unsigned _rvalue_reference = 1uL << 6
unsigned _member_object_pointer = 1uL << 7
unsigned _member_function_pointer = 1uL << 8
unsigned _enum = 1uL << 9
unsigned _union = 1uL << 10
unsigned _class = 1uL << 11
unsigned _function = 1uL << 12
unsigned _reference = 1uL << 13
unsigned _arithmetic = 1uL << 14
unsigned _fundamental = 1uL << 15
unsigned _object = 1uL << 16
unsigned _scalar = 1uL << 17
unsigned _compound = 1uL << 18
unsigned _member_pointer = 1uL << 19
unsigned cat_void = _void | _fundamental
unsigned cat_int = _integral | _arithmetic | _object | _fundamental | _scalar
unsigned cat_flt = _floating_point | _arithmetic | _object | _fundamental | _scalar
unsigned cat_arr = _array | _object | _compound
unsigned cat_ptr = _pointer | _object | _compound | _scalar
unsigned cat_lref = _lvalue_reference | _reference | _compound
unsigned cat_rref = _rvalue_reference | _reference | _compound
unsigned cat_mem_obj_ptr = _member_object_pointer | _member_pointer | _object | _compound | _scalar
unsigned cat_mbr_fctn_ptr = _member_function_pointer | _member_pointer | _object | _compound | _scalar
unsigned cat_enum = _enum | _object | _compound | _scalar
unsigned cat_union = _union | _object | _compound
unsigned cat_class = _class | _object | _compound
unsigned cat_fctn = _function | _compound

Typedef Documentation

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

Definition at line 159 of file testCategories.cc.

typedef const r_type cr_type

Definition at line 171 of file testCategories.cc.

typedef void(* f1)()

Definition at line 151 of file testCategories.cc.

typedef int(* f2)(int)

Definition at line 152 of file testCategories.cc.

typedef int(* f3)(int, bool)

Definition at line 153 of file testCategories.cc.

typedef void foo0_t()

Definition at line 322 of file testCategories.cc.

typedef void foo1_t(int)

Definition at line 323 of file testCategories.cc.

typedef void foo2_t(int &, double)

Definition at line 324 of file testCategories.cc.

typedef void foo3_t(int &, bool, int, int)

Definition at line 325 of file testCategories.cc.

typedef void foo4_t(int, bool, int *, int[], int, int, int, int, int)

Definition at line 326 of file testCategories.cc.

typedef void(UDT::* mf1)()

Definition at line 154 of file testCategories.cc.

typedef int(UDT::* mf2)()

Definition at line 155 of file testCategories.cc.

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

Definition at line 156 of file testCategories.cc.

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

Definition at line 157 of file testCategories.cc.

typedef intUDT::* mp

Definition at line 158 of file testCategories.cc.

typedef const doubleUDT::* mp2

Definition at line 368 of file testCategories.cc.

typedef int& r_type

Definition at line 169 of file testCategories.cc.

Enumeration Type Documentation

enum enum1
Enumerator:
one_ 
two_ 
one_ 
two_ 
one_ 
two_ 

Definition at line 245 of file testCategories.cc.

enum enum2
Enumerator:
three_ 
four_ 
three_ 
four_ 
three_ 
four_ 

Definition at line 248 of file testCategories.cc.

enum enum_UDT
Enumerator:
one 
two 
three 
one 
two 
three 
one 
two 
three 

Definition at line 136 of file testCategories.cc.

enum myenum
Enumerator:
a 
b 

Definition at line 125 of file testCategories.cc.

Function Documentation

template<typename T >
unsigned evaluate ( )
int main ( )

Variable Documentation

unsigned _arithmetic = 1uL << 14

Definition at line 44 of file testCategories.cc.

Referenced by evaluate().

unsigned _array = 1uL << 3

Definition at line 31 of file testCategories.cc.

Referenced by evaluate().

unsigned _class = 1uL << 11

Definition at line 39 of file testCategories.cc.

Referenced by evaluate().

unsigned _compound = 1uL << 18

Definition at line 48 of file testCategories.cc.

Referenced by evaluate().

unsigned _enum = 1uL << 9

Definition at line 37 of file testCategories.cc.

Referenced by evaluate().

unsigned _floating_point = 1uL << 2

Definition at line 30 of file testCategories.cc.

Referenced by evaluate().

unsigned _function = 1uL << 12

Definition at line 40 of file testCategories.cc.

Referenced by evaluate().

unsigned _fundamental = 1uL << 15

Definition at line 45 of file testCategories.cc.

Referenced by evaluate().

unsigned _integral = 1uL << 1

Definition at line 29 of file testCategories.cc.

Referenced by evaluate().

unsigned _lvalue_reference = 1uL << 5

Definition at line 33 of file testCategories.cc.

Referenced by evaluate().

unsigned _member_function_pointer = 1uL << 8

Definition at line 36 of file testCategories.cc.

Referenced by evaluate().

unsigned _member_object_pointer = 1uL << 7

Definition at line 35 of file testCategories.cc.

Referenced by evaluate().

unsigned _member_pointer = 1uL << 19

Definition at line 49 of file testCategories.cc.

Referenced by evaluate().

unsigned _object = 1uL << 16

Definition at line 46 of file testCategories.cc.

Referenced by evaluate().

unsigned _pointer = 1uL << 4

Definition at line 32 of file testCategories.cc.

Referenced by evaluate().

unsigned _reference = 1uL << 13

Definition at line 43 of file testCategories.cc.

Referenced by evaluate().

unsigned _rvalue_reference = 1uL << 6

Definition at line 34 of file testCategories.cc.

Referenced by evaluate().

unsigned _scalar = 1uL << 17

Definition at line 47 of file testCategories.cc.

Referenced by evaluate().

unsigned _union = 1uL << 10

Definition at line 38 of file testCategories.cc.

Referenced by evaluate().

unsigned _unknown = 0uL

Definition at line 27 of file testCategories.cc.

Referenced by evaluate().

unsigned _void = 1uL << 0

Definition at line 28 of file testCategories.cc.

Referenced by evaluate().

unsigned cat_arr = _array | _object | _compound

Definition at line 92 of file testCategories.cc.

Referenced by main().

unsigned cat_class = _class | _object | _compound

Definition at line 108 of file testCategories.cc.

Referenced by main().

unsigned cat_enum = _enum | _object | _compound | _scalar

Definition at line 104 of file testCategories.cc.

Referenced by main().

unsigned cat_fctn = _function | _compound

Definition at line 110 of file testCategories.cc.

Referenced by main().

Definition at line 90 of file testCategories.cc.

Referenced by main().

unsigned cat_int = _integral | _arithmetic | _object | _fundamental | _scalar

Definition at line 88 of file testCategories.cc.

Referenced by main().

unsigned cat_lref = _lvalue_reference | _reference | _compound

Definition at line 96 of file testCategories.cc.

Referenced by main().

unsigned cat_mbr_fctn_ptr = _member_function_pointer | _member_pointer | _object | _compound | _scalar

Definition at line 102 of file testCategories.cc.

Referenced by main().

unsigned cat_mem_obj_ptr = _member_object_pointer | _member_pointer | _object | _compound | _scalar

Definition at line 100 of file testCategories.cc.

Referenced by main().

unsigned cat_ptr = _pointer | _object | _compound | _scalar

Definition at line 94 of file testCategories.cc.

Referenced by main().

unsigned cat_rref = _rvalue_reference | _reference | _compound

Definition at line 98 of file testCategories.cc.

unsigned cat_union = _union | _object | _compound

Definition at line 106 of file testCategories.cc.

Referenced by main().

unsigned cat_void = _void | _fundamental

Definition at line 86 of file testCategories.cc.

Referenced by main().