The FTVNode
Struct Reference
Declaration
struct FTVNode { ... }
Public Constructors Index
FTVNode (bool dir, const QCString &r, const QCString &f, const QCString &a, const QCString &n, bool sepIndex, bool navIndex, const Definition *df, const QCString &nameAsHtml_) | |
Public Member Functions Index
int | computeTreeDepth (int level) const |
int | numNodesAtLevel (int level, int maxLevel) const |
Public Member Attributes Index
bool | isLast |
bool | isDir |
QCString | ref |
QCString | file |
QCString | anchor |
QCString | name |
QCString | nameAsHtml |
int | index = 0 |
FTVNodes | children |
FTVNodeWeakPtr | parent |
bool | separateIndex |
bool | addToNavIndex |
const Definition * | def |
Definition at line 51 of file ftvhelp.cpp.
Public Constructors
FTVNode()
| inline |
Definition at line 53 of file ftvhelp.cpp.
54 const QCString &n,bool sepIndex,bool navIndex,const Definition *df,
55 const QCString &nameAsHtml_)
57 separateIndex(sepIndex), addToNavIndex(navIndex), def(df) {}
References addToNavIndex, anchor, def, file, isDir, isLast, name, nameAsHtml, ref, separateIndex and TRUE.
Public Member Functions
computeTreeDepth()
|
Definition at line 58 of file ftvhelp.cpp.
75int FTVNode::computeTreeDepth(int level) const
76{
77 int maxDepth=level;
78 for (const auto &n : children)
79 {
80 if (!n->children.empty())
81 {
82 int d = n->computeTreeDepth(level+1);
83 if (d>maxDepth) maxDepth=d;
84 }
85 }
86 return maxDepth;
87}
Reference children.
numNodesAtLevel()
|
Definition at line 59 of file ftvhelp.cpp.
89int FTVNode::numNodesAtLevel(int level,int maxLevel) const
90{
91 int num=0;
92 if (level<maxLevel)
93 {
94 num++; // this node
95 for (const auto &n : children)
96 {
97 num+=n->numNodesAtLevel(level+1,maxLevel);
98 }
99 }
100 return num;
101}
Reference children.
Public Member Attributes
addToNavIndex
|
anchor
|
children
|
Definition at line 68 of file ftvhelp.cpp.
Referenced by computeTreeDepth and numNodesAtLevel.
def
|
file
|
index
|
Definition at line 67 of file ftvhelp.cpp.
isDir
|
isLast
|
name
|
nameAsHtml
|
parent
|
Definition at line 69 of file ftvhelp.cpp.
ref
|
separateIndex
|
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.