Doxygen
Loading...
Searching...
No Matches
dotincldepgraph.h
Go to the documentation of this file.
1/******************************************************************************
2*
3* Copyright (C) 1997-2019 by Dimitri van Heesch.
4*
5* Permission to use, copy, modify, and distribute this software and its
6* documentation under the terms of the GNU General Public License is hereby
7* granted. No representations are made about the suitability of this software
8* for any purpose. It is provided "as is" without express or implied warranty.
9* See the GNU General Public License for more details.
10*
11* Documents produced by Doxygen are derivative works derived from the
12* input used in their production; they are not affected by this license.
13*
14*/
15
16#ifndef DOTINCLDEPGRAPH_H
17#define DOTINCLDEPGRAPH_H
18
19#include <memory>
20
21#include "dotgraph.h"
22#include "dotnode.h"
23#include "dstring.h"
24
25class FileDef;
26class TextStream;
27
28/** Representation of an include dependency graph */
29class DotInclDepGraph final : public DotGraph
30{
31 public:
32 DotInclDepGraph(const FileDef *fd,bool inverse);
33 ~DotInclDepGraph() override;
35
37 const DString &path,const DString &fileName,const DString &relPath,
38 bool writeImageMap=true,int graphId=-1);
39 bool isTrivial() const;
40 bool isTooBig() const;
41 int numNodes() const;
42 void writeXML(TextStream &t);
43 void writeDocbook(TextStream &t);
44
45 protected:
46 DString getBaseName() const override;
47 DString getMapLabel() const override;
48 void computeTheGraph() override;
49
50 private:
52 void buildGraph(DotNode *n,const FileDef *fd,int distance);
53 void determineVisibleNodes(DotNodeDeque &queue,int &maxNodes);
55
61};
62
63using DotInclDepGraphPtr = std::shared_ptr<DotInclDepGraph>;
64
65#endif
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:88
DotGraph()
Definition dotgraph.h:38
friend class DotNode
Definition dotgraph.h:36
void computeTheGraph() override
DString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const DString &path, const DString &fileName, const DString &relPath, bool writeImageMap=true, int graphId=-1)
void determineVisibleNodes(DotNodeDeque &queue, int &maxNodes)
void writeXML(TextStream &t)
DString m_inclDepFileName
DotNodeMap m_usedNodes
DString getMapLabel() const override
DString diskName() const
void determineTruncatedNodes(DotNodeDeque &queue)
void writeDocbook(TextStream &t)
DotInclDepGraph(const FileDef *fd, bool inverse)
bool isTooBig() const
DotNode * m_startNode
DString getBaseName() const override
DString m_inclByDepFileName
void buildGraph(DotNode *n, const FileDef *fd, int distance)
bool isTrivial() const
A model of a file symbol.
Definition filedef.h:97
Text streaming class that buffers data.
Definition textstream.h:36
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition construct.h:37
EmbeddedOutputFormat
Definition dotgraph.h:30
GraphOutputFormat
Definition dotgraph.h:29
std::shared_ptr< DotInclDepGraph > DotInclDepGraphPtr