src/class.cpp
/*!
 * \fn void addFunction(const Function& f)
 * \brief adds a function to this class
 */
\fn void addFunction(const Function& f)
\brief adds a function to this class
\ fn void addFunction ( const Function& f ) \ brief adds a function to this class
void Class::addFunction(const Function& f)
{
  if (f.isOperator())
    d->operators.push_back(f.toOperator());
  else if (f.isCast())
    d->casts.push_back(f.toCast());
  else if (f.isConstructor())
    d->registerConstructor(f);
  else if (f.isDestructor())
    d->destructor = f;
  else
    d->register_function(f);
}
void Class :: addFunction ( const Function & f ) { if ( f . isOperator ( ) ) d -> operators . push_back ( f . toOperator ( ) ) ; else if ( f . isCast ( ) ) d -> casts . push_back ( f . toCast ( ) ) ; else if ( f . isConstructor ( ) ) d -> registerConstructor ( f ) ; else if ( f . isDestructor ( ) ) d -> destructor = f ; else d -> register_function ( f ) ; }
\fn void addFunction(const Function& f)
 \brief adds a function to this class
\ fn void addFunction ( const Function& f ) \ brief adds a function to this class