Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added #ifndef DOXYGEN to forward declarations #8585

Merged
merged 2 commits into from
Aug 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/news/changes/minor/20190816RezaRastak
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Fixed: Forward declarations in header files are prevented from confusing
doxygen.
<br>
(Reza Rastak, 2019/08/16)
3 changes: 3 additions & 0 deletions include/deal.II/algorithms/newton.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
#ifndef DOXYGEN
class ParameterHandler;
#endif

namespace Algorithms
{
Expand Down
3 changes: 3 additions & 0 deletions include/deal.II/algorithms/theta_timestepping.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
#ifndef DOXYGEN
class ParameterHandler;
#endif

namespace Algorithms
{
Expand Down
3 changes: 3 additions & 0 deletions include/deal.II/algorithms/timestep_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
#ifndef DOXYGEN
class ParameterHandler;
#endif

namespace Algorithms
{
Expand Down
2 changes: 2 additions & 0 deletions include/deal.II/base/complex_overloads.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
DEAL_II_NAMESPACE_OPEN

// Forward declarations
#ifndef DOXYGEN
template <typename T>
struct EnableIfScalar;
template <typename T, typename U>
struct ProductType;
#endif

#ifndef DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS
/**
Expand Down
4 changes: 3 additions & 1 deletion include/deal.II/base/data_out_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@

DEAL_II_NAMESPACE_OPEN


// Forward declarations
#ifndef DOXYGEN
class ParameterHandler;
class XDMFEntry;
#endif

/**
* This is a base class for output of data on meshes of very general form.
Expand Down
4 changes: 3 additions & 1 deletion include/deal.II/base/function.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@

DEAL_II_NAMESPACE_OPEN


// Forward declarations
#ifndef DOXYGEN
template <typename number>
class Vector;
template <int rank, int dim, typename Number>
class TensorFunction;
#endif

/**
* This class is a model for a general function that, given a point at which
Expand Down
5 changes: 3 additions & 2 deletions include/deal.II/base/function_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ namespace mu

DEAL_II_NAMESPACE_OPEN


// Forward declaration
#ifndef DOXYGEN
template <typename>
class Vector;

#endif

/**
* This class implements a function object that gets its value by parsing a
Expand Down
3 changes: 3 additions & 0 deletions include/deal.II/base/incremental_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
#ifndef DOXYGEN
template <typename number>
class Vector;
#endif

namespace Functions
{
Expand Down
5 changes: 3 additions & 2 deletions include/deal.II/base/iterator_range.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
DEAL_II_NAMESPACE_OPEN


// Forward declarations
// Forward declaration
#ifndef DOXYGEN
template <typename Iterator>
class IteratorOverIterators;

#endif


/**
Expand Down
2 changes: 2 additions & 0 deletions include/deal.II/base/mpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ DEAL_II_NAMESPACE_OPEN


// Forward type declarations to allow MPI sums over tensorial types
#ifndef DOXYGEN
template <int rank, int dim, typename Number>
class Tensor;
template <int rank, int dim, typename Number>
class SymmetricTensor;
template <typename Number>
class SparseMatrix;
class IndexSet;
#endif

namespace Utilities
{
Expand Down
2 changes: 2 additions & 0 deletions include/deal.II/base/numbers.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@ namespace internal
} // namespace internal

// forward declarations to support abs or sqrt operations on VectorizedArray
#ifndef DOXYGEN
template <typename Number,
int width =
internal::VectorizedArrayWidthSpecifier<Number>::max_width>
class VectorizedArray;
template <typename T>
struct EnableIfScalar;
#endif

DEAL_II_NAMESPACE_CLOSE

Expand Down
2 changes: 2 additions & 0 deletions include/deal.II/base/parameter_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
DEAL_II_NAMESPACE_OPEN

// forward declarations for interfaces and friendship
#ifndef DOXYGEN
class LogStream;
class MultipleParameterLoop;
#endif

/**
* The ParameterHandler class provides a standard interface to an input file
Expand Down
2 changes: 2 additions & 0 deletions include/deal.II/base/patterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN

// forward declarations for interfaces and friendship
#ifndef DOXYGEN
class LogStream;
class MultipleParameterLoop;
template <int dim>
class FunctionParser;
#endif

/**
* Namespace for a few classes that act as patterns for the ParameterHandler
Expand Down
3 changes: 2 additions & 1 deletion include/deal.II/base/process_grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ DEAL_II_NAMESPACE_OPEN


// Forward declaration of class ScaLAPACKMatrix for ProcessGrid
# ifndef DOXYGEN
template <typename NumberType>
class ScaLAPACKMatrix;

# endif

namespace Utilities
{
Expand Down
3 changes: 3 additions & 0 deletions include/deal.II/base/symmetric_tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
#ifndef DOXYGEN
template <int rank, int dim, typename Number = double>
class SymmetricTensor;
#endif

template <int dim, typename Number>
DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<2, dim, Number>
Expand Down
2 changes: 2 additions & 0 deletions include/deal.II/base/table.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
DEAL_II_NAMESPACE_OPEN

// forward declaration
#ifndef DOXYGEN
template <int N, typename T>
class TableBase;
template <int N, typename T>
Expand All @@ -49,6 +50,7 @@ template <typename T>
class Table<5, T>;
template <typename T>
class Table<6, T>;
#endif



Expand Down
3 changes: 3 additions & 0 deletions include/deal.II/base/table_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
#ifndef DOXYGEN
class TableHandler;
#endif

namespace internal
{
Expand Down
3 changes: 2 additions & 1 deletion include/deal.II/base/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@
DEAL_II_NAMESPACE_OPEN

// Forward declarations:

#ifndef DOXYGEN
template <int dim, typename Number>
class Point;
template <int rank_, int dim, typename Number = double>
class Tensor;
template <typename Number>
class Vector;
#endif

#ifndef DOXYGEN
// Overload invalid tensor types of negative rank that come up during
Expand Down
2 changes: 2 additions & 0 deletions include/deal.II/base/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN

// forward declare Point
#ifndef DOXYGEN
template <int dim, typename Number>
class Point;
#endif

/**
* A namespace for utility functions that are not particularly specific to
Expand Down
4 changes: 3 additions & 1 deletion include/deal.II/distributed/p4est_wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
# ifndef DOXYGEN
namespace parallel
{
namespace distributed
Expand All @@ -46,7 +48,7 @@ namespace parallel
class Triangulation;
}
} // namespace parallel

# endif

namespace internal
{
Expand Down
3 changes: 3 additions & 0 deletions include/deal.II/distributed/tria.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ DEAL_II_NAMESPACE_OPEN

#ifdef DEAL_II_WITH_P4EST

// Forward declarations
# ifndef DOXYGEN
namespace internal
{
namespace DoFHandlerImplementation
Expand Down Expand Up @@ -83,6 +85,7 @@ namespace GridTools
template <typename CellIterator>
struct PeriodicFacePair;
}
# endif

namespace parallel
{
Expand Down
3 changes: 2 additions & 1 deletion include/deal.II/dofs/block_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@
DEAL_II_NAMESPACE_OPEN

// Forward declarations

#ifndef DOXYGEN
template <int dim, int spacedim>
class DoFHandler;
namespace hp
{
template <int dim, int spacedim>
class DoFHandler;
}
#endif


/**
Expand Down
4 changes: 3 additions & 1 deletion include/deal.II/dofs/deprecated_function_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
#ifndef DOXYGEN
template <int spacedim, typename RangeNumberType>
class Function;

#endif


/**
Expand Down
4 changes: 3 additions & 1 deletion include/deal.II/dofs/dof_accessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

DEAL_II_NAMESPACE_OPEN

// Forward declarations
#ifndef DOXYGEN
template <typename number>
class FullMatrix;
template <typename number>
Expand All @@ -42,7 +44,6 @@ class TriaRawIterator;
template <int, int>
class FiniteElement;


namespace internal
{
namespace DoFCellAccessorImplementation
Expand All @@ -67,6 +68,7 @@ namespace internal
}
} // namespace hp
} // namespace internal
#endif

// note: the file dof_accessor.templates.h is included at the end of
// this file. this includes a lot of templates and thus makes
Expand Down
4 changes: 3 additions & 1 deletion include/deal.II/dofs/dof_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@

DEAL_II_NAMESPACE_OPEN

// Forward declarations
#ifndef DOXYGEN
template <int dim, int spacedim>
class FiniteElement;
template <int dim, int spacedim>
Expand Down Expand Up @@ -73,7 +75,7 @@ namespace internal
struct Implementation;
}
} // namespace internal

#endif

/**
* Given a triangulation and a description of a finite element, this
Expand Down
4 changes: 3 additions & 1 deletion include/deal.II/dofs/dof_handler_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@

DEAL_II_NAMESPACE_OPEN

// Forward declaration
# ifndef DOXYGEN
template <int, int>
class DoFHandler;

# endif

namespace internal
{
Expand Down
3 changes: 3 additions & 0 deletions include/deal.II/dofs/dof_iterator_selector.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

DEAL_II_NAMESPACE_OPEN

// Forward declarations
#ifndef DOXYGEN
template <int, int, int>
class DoFInvalidAccessor;

Expand All @@ -35,6 +37,7 @@ template <typename Accessor>
class TriaIterator;
template <typename Accessor>
class TriaActiveIterator;
#endif

namespace internal
{
Expand Down
Loading