Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
BIAS::DerivedFrom< T, B > Class Template Reference

compile time check if B is (grand)father of T Found it in Bjarne Stroustrup's FAQ: http://public.research.att.com/~bs/bs_faq2.html "Actually, Derived_from doesn't check derivation, but conversion, but that's often a better constaint. More...

#include <Base/Common/Constraints.hh>

Public Member Functions

 DerivedFrom ()
 
 DerivedFrom ()
 

Static Public Member Functions

static void Constraints (T *p)
 

Detailed Description

template<class T, class B>
class BIAS::DerivedFrom< T, B >

compile time check if B is (grand)father of T Found it in Bjarne Stroustrup's FAQ: http://public.research.att.com/~bs/bs_faq2.html "Actually, Derived_from doesn't check derivation, but conversion, but that's often a better constaint.

compile time check if B is (grand)father of T Found it in Bjarne Stroustrup's FAQ: http://public.research.att.com/~bs/bs_faq2.html "Actually, Derived_from doesn't check derivation, but conversion, but that's often a better constraint.

Finding good names for constraints can be hard."

Author
woelk 02/2006
Examples:
ExampleConstraints.cpp.

Definition at line 38 of file Constraints.hh.

Constructor & Destructor Documentation

template<class T, class B>
BIAS::DerivedFrom< T, B >::DerivedFrom ( )
inline

Definition at line 41 of file Constraints.hh.

template<class T, class B>
BIAS::DerivedFrom< T, B >::DerivedFrom ( )
inline

Definition at line 44 of file Constraints.hh.

References BIAS::DerivedFrom< T, B >::Constraints().

Member Function Documentation

template<class T, class B>
static void BIAS::DerivedFrom< T, B >::Constraints ( T *  p)
inlinestatic

Definition at line 38 of file Constraints.hh.

Referenced by BIAS::DerivedFrom< T, B >::DerivedFrom().


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