src/class.cpp
/*!
 * \fn bool inherits(const Class& type) const
 * \brief returns whether this class is derived from a given class
 * 
 * This function returns true if this class is derived directly or 
 * indirectly from \a type.
 */
\fn bool inherits(const Class& type) const
\brief returns whether this class is derived from a given class

This function returns true if this class is derived directly or
indirectly from \a type.
\ fn bool inherits ( const Class& type ) const \ brief returns whether this class is derived from a given class This function returns true if this class is derived directly or indirectly from \ a type .
bool Class::inherits(const Class& type) const
{
  Class p = parent();
  return *this == type || (!p.isNull() && p.inherits(type));
}
bool Class :: inherits ( const Class & type ) const { Class p = parent ( ) ; return * this == type || ( ! p . isNull ( ) && p . inherits ( type ) ) ; }
\fn bool inherits(const Class& type) const
 \brief returns whether this class is derived from a given class
\ fn bool inherits ( const Class& type ) const \ brief returns whether this class is derived from a given class