Skip to main content

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

intcomputeTreeDepth (int level) const
intnumNodesAtLevel (int level, int maxLevel) const

Public Member Attributes Index

boolisLast
boolisDir
QCStringref
QCStringfile
QCStringanchor
QCStringname
QCStringnameAsHtml
intindex = 0
FTVNodeschildren
FTVNodeWeakPtrparent
boolseparateIndex
booladdToNavIndex
const Definition *def

Definition at line 51 of file ftvhelp.cpp.

Public Constructors

FTVNode()

FTVNode::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_)
inline

Definition at line 53 of file ftvhelp.cpp.

53 FTVNode(bool dir,const QCString &r,const QCString &f,const QCString &a,
54 const QCString &n,bool sepIndex,bool navIndex,const Definition *df,
55 const QCString &nameAsHtml_)
56 : isLast(TRUE), isDir(dir), ref(r), file(f), anchor(a), name(n), nameAsHtml(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()

int FTVNode::computeTreeDepth (int level)

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()

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

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

bool FTVNode::addToNavIndex

Definition at line 71 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 68 of file ftvhelp.cpp.

Referenced by computeTreeDepth and numNodesAtLevel.

def

const Definition* FTVNode::def

Definition at line 72 of file ftvhelp.cpp.

72 const Definition *def;

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 67 of file ftvhelp.cpp.

67 int index = 0;

isDir

bool FTVNode::isDir

Definition at line 61 of file ftvhelp.cpp.

61 bool isDir;

Referenced by FTVNode.

isLast

bool FTVNode::isLast

Definition at line 60 of file ftvhelp.cpp.

60 bool isLast;

Referenced by FTVNode.

name

QCString FTVNode::name

Definition at line 65 of file ftvhelp.cpp.

Referenced by FTVNode.

nameAsHtml

QCString FTVNode::nameAsHtml

Definition at line 66 of file ftvhelp.cpp.

Referenced by FTVNode.

parent

FTVNodeWeakPtr FTVNode::parent

Definition at line 69 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 70 of file ftvhelp.cpp.

Referenced by FTVNode.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.