sofa::core::RegisterObject::Conversion< T, U > Class Template Reference

Test whether T* converts to U*, that is, if T is derived from U taken from Modern C++ Design. More...

#include <ObjectFactory.h>


Data Structures

class  Big

Public Types

enum  { exists = sizeof(Test(MakeT())) == sizeof(Small) }

Static Public Member Functions

static int Exists ()

Private Types

typedef char Small

Static Private Member Functions

static Small Test (U *)
static Big Test (...)
static T * MakeT ()


Detailed Description

template<class T, class U>
class sofa::core::RegisterObject::Conversion< T, U >

Test whether T* converts to U*, that is, if T is derived from U taken from Modern C++ Design.

Definition at line 247 of file ObjectFactory.h.


Member Typedef Documentation

template<class T , class U >
typedef char sofa::core::RegisterObject::Conversion< T, U >::Small [private]

Definition at line 249 of file ObjectFactory.h.


Member Enumeration Documentation

template<class T , class U >
anonymous enum

Enumerator:
exists 

Definition at line 255 of file ObjectFactory.h.


Member Function Documentation

template<class T , class U >
static int sofa::core::RegisterObject::Conversion< T, U >::Exists (  )  [inline, static]

template<class T , class U >
static T* sofa::core::RegisterObject::Conversion< T, U >::MakeT (  )  [static, private]

template<class T , class U >
static Big sofa::core::RegisterObject::Conversion< T, U >::Test (   ...  )  [static, private]

template<class T , class U >
static Small sofa::core::RegisterObject::Conversion< T, U >::Test ( U *   )  [static, private]


The documentation for this class was generated from the following file:

Generated on Sun Nov 23 04:22:08 2008 for Sofa by  doxygen 1.5.7.1