Doxygen
Loading...
Searching...
No Matches
FTVNode Struct Reference
+ Collaboration diagram for FTVNode:

Public Member Functions

 FTVNode (bool dir, const QCString &r, const QCString &f, const QCString &a, const QCString &n, bool sepIndex, bool navIndex, const Definition *df)
 
int computeTreeDepth (int level) const
 
int numNodesAtLevel (int level, int maxLevel) const
 

Public Attributes

bool isLast
 
bool isDir
 
QCString ref
 
QCString file
 
QCString anchor
 
QCString name
 
int index = 0
 
FTVNodes children
 
FTVNodeWeakPtr parent
 
bool separateIndex
 
bool addToNavIndex
 
const Definitiondef
 

Detailed Description

Definition at line 51 of file ftvhelp.cpp.

Constructor & Destructor Documentation

◆ FTVNode()

FTVNode::FTVNode ( bool dir,
const QCString & r,
const QCString & f,
const QCString & a,
const QCString & n,
bool sepIndex,
bool navIndex,
const Definition * df )
inline

Definition at line 53 of file ftvhelp.cpp.

55 : isLast(TRUE), isDir(dir), ref(r), file(f), anchor(a), name(n),
56 separateIndex(sepIndex), addToNavIndex(navIndex),
57 def(df) {}
#define TRUE
Definition qcstring.h:37
bool separateIndex
Definition ftvhelp.cpp:69
bool isLast
Definition ftvhelp.cpp:60
const Definition * def
Definition ftvhelp.cpp:71
bool addToNavIndex
Definition ftvhelp.cpp:70
QCString ref
Definition ftvhelp.cpp:62
QCString anchor
Definition ftvhelp.cpp:64
QCString file
Definition ftvhelp.cpp:63
QCString name
Definition ftvhelp.cpp:65
bool isDir
Definition ftvhelp.cpp:61

References addToNavIndex, anchor, def, file, isDir, isLast, name, ref, separateIndex, and TRUE.

Member Function Documentation

◆ computeTreeDepth()

int FTVNode::computeTreeDepth ( int level) const

Definition at line 74 of file ftvhelp.cpp.

75{
76 int maxDepth=level;
77 for (const auto &n : children)
78 {
79 if (!n->children.empty())
80 {
81 int d = n->computeTreeDepth(level+1);
82 if (d>maxDepth) maxDepth=d;
83 }
84 }
85 return maxDepth;
86}
FTVNodes children
Definition ftvhelp.cpp:67

References children.

◆ numNodesAtLevel()

int FTVNode::numNodesAtLevel ( int level,
int maxLevel ) const

Definition at line 88 of file ftvhelp.cpp.

89{
90 int num=0;
91 if (level<maxLevel)
92 {
93 num++; // this node
94 for (const auto &n : children)
95 {
96 num+=n->numNodesAtLevel(level+1,maxLevel);
97 }
98 }
99 return num;
100}

References children.

Member Data Documentation

◆ addToNavIndex

bool FTVNode::addToNavIndex

Definition at line 70 of file ftvhelp.cpp.

Referenced by FTVNode().

◆ anchor

QCString FTVNode::anchor

Definition at line 64 of file ftvhelp.cpp.

Referenced by FTVNode().

◆ children

FTVNodes FTVNode::children

Definition at line 67 of file ftvhelp.cpp.

Referenced by computeTreeDepth(), and numNodesAtLevel().

◆ def

const Definition* FTVNode::def

Definition at line 71 of file ftvhelp.cpp.

Referenced by FTVNode().

◆ file

QCString FTVNode::file

Definition at line 63 of file ftvhelp.cpp.

Referenced by FTVNode().

◆ index

int FTVNode::index = 0

Definition at line 66 of file ftvhelp.cpp.

◆ isDir

bool FTVNode::isDir

Definition at line 61 of file ftvhelp.cpp.

Referenced by FTVNode().

◆ isLast

bool FTVNode::isLast

Definition at line 60 of file ftvhelp.cpp.

Referenced by FTVNode().

◆ name

QCString FTVNode::name

Definition at line 65 of file ftvhelp.cpp.

Referenced by FTVNode().

◆ parent

FTVNodeWeakPtr FTVNode::parent

Definition at line 68 of file ftvhelp.cpp.

◆ ref

QCString FTVNode::ref

Definition at line 62 of file ftvhelp.cpp.

Referenced by FTVNode().

◆ separateIndex

bool FTVNode::separateIndex

Definition at line 69 of file ftvhelp.cpp.

Referenced by FTVNode().


The documentation for this struct was generated from the following file: