/******************************************************************************
*
*
*
* Copyright (C) 1997-2015 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
* Documents produced by Doxygen are derivative works derived from the
* input used in their production; they are not affected by this license.
*
*/
/*! \page features Features
\addindex features
- Requires very little overhead from the writer of the documentation.
Plain text will do, Markdown is support, and for more fancy or
structured output HTML tags and/or some of doxygen's special commands
can be used.
- Cross platform: works on Windows and many Unix flavors (including Linux and
MacOSX).
- Indexes, organizes and generates browsable and cross-referenced
output even from undocumented code.
- Generates structured XML output for parsed sources, which can be
used by external tools.
- Supports C/C++, Java, (Corba and Microsoft) Java, Python, VHDL, PHP
IDL, C#, Fortran, TCL, Objective-C 2.0, and to some extent D sources.
- Supports documentation of files, namespaces, packages, classes,
structs, unions, templates, variables, functions, typedefs, enums and
defines.
- Javadoc (1.1), qdoc3 (partially), and ECMA-334 (C# spec.) compatible.
- Comes with a GUI frontend (Doxywizard) to ease editing the options and
run doxygen. The GUI is available on Windows, Linux, and MacOSX.
- Automatically generates class and collaboration diagrams in HTML (as clickable
image maps) and \LaTeX (as Encapsulated PostScript images).
- Uses the `dot` tool of the Graphviz tool kit to generate
include dependency graphs, collaboration diagrams, call graphs, directory structure
graphs, and graphical class hierarchy graphs.
- Allows grouping of entities in modules and creating a hierarchy of modules.
- Flexible comment placement: Allows you to put documentation in the
header file (before the
declaration of an entity), source file (before the definition of an entity)
or in a separate file.
- Generates a list of all members of a class (including any inherited
members) along with their protection level.
- Outputs documentation in on-line format (XHTML and UNIX man page) and
off-line format (\LaTeX and RTF) simultaneously
(any of these can be disabled if desired). All formats are optimized for
ease of reading.
Furthermore, compressed HTML can be generated from HTML output using
Microsoft's HTML Help Workshop (Windows only) and PDF can be generated
from the \LaTeX output.
- Support for various third party help formats including HTML Help,
docsets, Qt-Help, and eclipse help.
- Includes a full C preprocessor to allow proper parsing of conditional
code fragments and to allow expansion of all or part of macros definitions.
- Automatically detects public, protected and private sections, as well as
the Qt specific signal and slots sections. Extraction of private class
members is optional.
- Automatically generates references to documented classes, files, namespaces
and members. Documentation of global functions, global variables,
typedefs, defines and enumerations is also supported.
- References to base/super classes and inherited/overridden members are
generated automatically.
- Includes a fast, rank based search engine to search for strings or words
in the class and member documentation (PHP based).
- Includes an Javascript based live search feature to search for symbols
as you type (for small to medium sized projects).
- You can type normal HTML tags in your documentation. Doxygen will convert
them to their equivalent \LaTeX, RTF, and man-page
counterparts automatically.
- Allows references to documentation generated for other (doxygen documented)
projects (or another part of the same project) in a location independent way.
- Allows inclusion of source code examples that are automatically
cross-referenced with the documentation.
-
#include "MathFunctions.h"
#include <cmath>
#ifdef USE_MYMATH
# include "mysqrt.h"
#endif
namespace mathfunctions {
double sqrt(double x)
{
#ifdef USE_MYMATH
return detail::mysqrt(x);
#else
return std::sqrt(x);
#endif
}
}