My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
FTVNode Struct Reference

Public Member Functions

 FTVNode (bool dir, const char *r, const char *f, const char *a, const char *n, bool sepIndex, bool navIndex, 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
 
QList< FTVNodechildren
 
FTVNodeparent
 
bool separateIndex
 
bool addToNavIndex
 
Definitiondef
 

Detailed Description

Definition at line 45 of file ftvhelp.cpp.

Constructor & Destructor Documentation

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

Definition at line 47 of file ftvhelp.cpp.

References children.

: isLast(TRUE), isDir(dir),ref(r),file(f),anchor(a),name(n), index(0),
parent(0), separateIndex(sepIndex), addToNavIndex(navIndex),
def(df) { children.setAutoDelete(TRUE); }

Member Function Documentation

int FTVNode::computeTreeDepth ( int  level) const

Definition at line 68 of file ftvhelp.cpp.

References children, and computeTreeDepth().

Referenced by computeTreeDepth(), and FTVHelp::generateTreeViewInline().

{
int maxDepth=level;
QListIterator<FTVNode> li(children);
FTVNode *n;
for (;(n=li.current());++li)
{
if (n->children.count()>0)
{
int d = n->computeTreeDepth(level+1);
if (d>maxDepth) maxDepth=d;
}
}
return maxDepth;
}
int FTVNode::numNodesAtLevel ( int  level,
int  maxLevel 
) const

Definition at line 84 of file ftvhelp.cpp.

References children, and numNodesAtLevel().

Referenced by FTVHelp::generateTreeViewInline(), and numNodesAtLevel().

{
int num=0;
if (level<maxLevel)
{
num++; // this node
QListIterator<FTVNode> li(children);
FTVNode *n;
for (;(n=li.current());++li)
{
num+=n->numNodesAtLevel(level+1,maxLevel);
}
}
return num;
}

Member Data Documentation

bool FTVNode::addToNavIndex

Definition at line 64 of file ftvhelp.cpp.

Referenced by generateJSTree().

QCString FTVNode::anchor

Definition at line 58 of file ftvhelp.cpp.

Referenced by generateJSTree(), and node2URL().

QList<FTVNode> FTVNode::children
Definition* FTVNode::def

Definition at line 65 of file ftvhelp.cpp.

Referenced by generateJSTree(), FTVHelp::generateTree(), and node2URL().

QCString FTVNode::file
int FTVNode::index

Definition at line 60 of file ftvhelp.cpp.

Referenced by FTVHelp::addContentsItem(), FTVHelp::generateIndentLabel(), and pathToNode().

bool FTVNode::isDir

Definition at line 55 of file ftvhelp.cpp.

Referenced by FTVHelp::generateIndent(), and FTVHelp::generateTree().

bool FTVNode::isLast

Definition at line 54 of file ftvhelp.cpp.

QCString FTVNode::name

Definition at line 59 of file ftvhelp.cpp.

Referenced by generateJSLink(), and FTVHelp::generateLink().

FTVNode* FTVNode::parent
QCString FTVNode::ref

Definition at line 56 of file ftvhelp.cpp.

Referenced by generateJSLink(), and FTVHelp::generateLink().

bool FTVNode::separateIndex

Definition at line 63 of file ftvhelp.cpp.

Referenced by generateJSTree().


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