Blame tests/upstream-test-suite/074_ref.cpp

Than Ngo b7bcaa
// objective: test \ref command in combination with const
Than Ngo b7bcaa
// check: struct_foo.xml
Than Ngo b7bcaa
/** @brief Foo class.
Than Ngo b7bcaa
 *
Than Ngo b7bcaa
 *  @see @ref Foo::Foo() constructor for details.
Than Ngo b7bcaa
 *  @see @ref Foo constant.
Than Ngo b7bcaa
 *  @see @ref operator<<(int) "less than operator".
Than Ngo b7bcaa
 *  @see @ref operator<<(int) const "const less than operator".
Than Ngo b7bcaa
 *  @see @ref operator()(int) "call operator".
Than Ngo b7bcaa
 *  @see @ref operator()(int) const "const call operator".
Than Ngo b7bcaa
 *  @see @ref operator&=(const Foo&) "and equal operator".
Than Ngo b7bcaa
 *  @see @ref operator->*(int *) "member pointer operator".
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
struct Foo {
Than Ngo b7bcaa
  /** Constructor */
Than Ngo b7bcaa
  Foo();
Than Ngo b7bcaa
  /**
Than Ngo b7bcaa
   * @brief Fun of two
Than Ngo b7bcaa
   *
Than Ngo b7bcaa
   * - fun() const
Than Ngo b7bcaa
   * - @ref fun() const
Than Ngo b7bcaa
   * - @ref fun() const "title"
Than Ngo b7bcaa
   */
Than Ngo b7bcaa
  static Foo fun(Foo a, Foo b);
Than Ngo b7bcaa
Than Ngo b7bcaa
  /** overloaded less than operator */
Than Ngo b7bcaa
  Foo& operator<< (int i);
Than Ngo b7bcaa
Than Ngo b7bcaa
  /** overloaded const less than operator */
Than Ngo b7bcaa
  const Foo& operator<< (int i) const;
Than Ngo b7bcaa
Than Ngo b7bcaa
  /** overloaded call operator */
Than Ngo b7bcaa
  int operator()(int i);
Than Ngo b7bcaa
Than Ngo b7bcaa
  /** overloaded call operator */
Than Ngo b7bcaa
  int operator()(int i) const;
Than Ngo b7bcaa
Than Ngo b7bcaa
  /** and equal operator */
Than Ngo b7bcaa
  Foo& operator&=(const Foo& rhs);
Than Ngo b7bcaa
Than Ngo b7bcaa
  /** and equal operator */
Than Ngo b7bcaa
  Foo& operator&=(const Foo& rhs);
Than Ngo b7bcaa
Than Ngo b7bcaa
  /** Member pointer operator */
Than Ngo b7bcaa
  int* operator->*(int *p);
Than Ngo b7bcaa
Than Ngo b7bcaa
  /** @brief Fun with itself */
Than Ngo b7bcaa
  Foo fun() const;
Than Ngo b7bcaa
};