My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
NestingNodeContext::Private Class Reference

Classes

struct  Cachable
 

Public Member Functions

 Private (const NestingNodeContext *parent, const NestingNodeContext *thisNode, Definition *d, int index, int level, bool addCls, bool inherit, bool hideSuper)
 
TemplateVariant get (const char *n) const
 
TemplateVariant isLeafNode () const
 
TemplateVariant children () const
 
TemplateVariant getClass () const
 
TemplateVariant getNamespace () const
 
TemplateVariant getDir () const
 
TemplateVariant getFile () const
 
TemplateVariant getPage () const
 
TemplateVariant getModule () const
 
TemplateVariant level () const
 
TemplateVariant id () const
 
TemplateVariant name () const
 
QCString relPathAsString () const
 
TemplateVariant brief () const
 
TemplateVariant isLinkable () const
 
TemplateVariant anchor () const
 
TemplateVariant fileName () const
 
TemplateVariant isReference () const
 
TemplateVariant externalReference () const
 
void addClasses (bool inherit, bool hideSuper)
 
void addNamespaces (bool addClasses)
 
void addDirFiles ()
 
void addPages ()
 
void addModules ()
 

Private Attributes

const NestingNodeContextm_parent
 
Definitionm_def
 
SharedPtr< NestingContextm_children
 
int m_level
 
int m_index
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper
< NestingNodeContext::Private
s_inst
 

Detailed Description

Definition at line 6076 of file context.cpp.

Constructor & Destructor Documentation

NestingNodeContext::Private::Private ( const NestingNodeContext parent,
const NestingNodeContext thisNode,
Definition d,
int  index,
int  level,
bool  addCls,
bool  inherit,
bool  hideSuper 
)
inline

Definition at line 6079 of file context.cpp.

References addClasses(), addDirFiles(), addModules(), addNamespaces(), addPages(), NestingContext::alloc(), anchor(), brief(), children(), externalReference(), fileName(), getClass(), getDir(), getFile(), getModule(), getNamespace(), getPage(), id(), Config::init(), isLeafNode(), isLinkable(), isReference(), level(), m_children, name(), SharedPtr< T >::reset(), and s_inst.

: m_parent(parent), m_def(d), m_level(level), m_index(index)
{
static bool init=FALSE;
if (!init)
{
//%% bool is_leaf_node: true if this node does not have any children
s_inst.addProperty("is_leaf_node",&Private::isLeafNode);
//%% Nesting children: list of nested classes/namespaces
s_inst.addProperty("children",&Private::children);
//%% [optional] Class class: class info (if this node represents a class)
s_inst.addProperty("class",&Private::getClass);
//%% [optional] Namespace namespace: namespace info (if this node represents a namespace)
s_inst.addProperty("namespace",&Private::getNamespace);
//%% [optional] File file: file info (if this node represents a file)
s_inst.addProperty("file",&Private::getFile);
//%% [optional] Dir dir: directory info (if this node represents a directory)
s_inst.addProperty("dir",&Private::getDir);
//%% [optional] Page page: page info (if this node represents a page)
s_inst.addProperty("page",&Private::getPage);
//%% [optional] Module module: module info (if this node represents a module)
s_inst.addProperty("module",&Private::getModule);
//%% int id
s_inst.addProperty("id",&Private::id);
//%% string level
s_inst.addProperty("level",&Private::level);
//%% string name
s_inst.addProperty("name",&Private::name);
//%% string brief
s_inst.addProperty("brief",&Private::brief);
//%% bool isLinkable
s_inst.addProperty("isLinkable",&Private::isLinkable);
s_inst.addProperty("anchor",&Private::anchor);
s_inst.addProperty("fileName",&Private::fileName);
s_inst.addProperty("isReference",&Private::isReference);
s_inst.addProperty("externalReference",&Private::externalReference);
init=TRUE;
}
addNamespaces(addCls);
addClasses(inherit,hideSuper);
}

Member Function Documentation

void NestingNodeContext::Private::addClasses ( bool  inherit,
bool  hideSuper 
)
inline
void NestingNodeContext::Private::addDirFiles ( )
inline
void NestingNodeContext::Private::addModules ( )
inline
void NestingNodeContext::Private::addNamespaces ( bool  addClasses)
inline
void NestingNodeContext::Private::addPages ( )
inline
TemplateVariant NestingNodeContext::Private::anchor ( ) const
inline

Definition at line 6268 of file context.cpp.

References Definition::anchor(), and m_def.

Referenced by Private().

{
return m_def->anchor();
}
TemplateVariant NestingNodeContext::Private::brief ( ) const
inline
TemplateVariant NestingNodeContext::Private::children ( ) const
inline

Definition at line 6134 of file context.cpp.

References SharedPtr< T >::get(), and m_children.

Referenced by Private().

{
return m_children.get();
}
TemplateVariant NestingNodeContext::Private::externalReference ( ) const
inline

Definition at line 6280 of file context.cpp.

References Definition::externalReference(), m_def, and relPathAsString().

Referenced by Private().

TemplateVariant NestingNodeContext::Private::fileName ( ) const
inline

Definition at line 6272 of file context.cpp.

References Definition::getOutputFileBase(), and m_def.

Referenced by Private().

{
}
TemplateVariant NestingNodeContext::Private::get ( const char *  n) const
inline

Definition at line 6126 of file context.cpp.

References s_inst.

Referenced by NestingNodeContext::get().

{
return s_inst.get(this,n);
}
TemplateVariant NestingNodeContext::Private::getClass ( ) const
inline
TemplateVariant NestingNodeContext::Private::getDir ( ) const
inline
TemplateVariant NestingNodeContext::Private::getFile ( ) const
inline
TemplateVariant NestingNodeContext::Private::getModule ( ) const
inline
TemplateVariant NestingNodeContext::Private::getNamespace ( ) const
inline
TemplateVariant NestingNodeContext::Private::getPage ( ) const
inline
TemplateVariant NestingNodeContext::Private::id ( ) const
inline

Definition at line 6232 of file context.cpp.

References NestingNodeContext::id(), m_index, and m_parent.

Referenced by NestingNodeContext::id(), and Private().

{
QCString result;
if (m_parent) result=m_parent->id();
result+=QCString().setNum(m_index)+"_";
return result;
}
TemplateVariant NestingNodeContext::Private::isLeafNode ( ) const
inline

Definition at line 6130 of file context.cpp.

References NestingContext::count(), and m_children.

Referenced by Private().

{
return m_children->count()==0;
}
TemplateVariant NestingNodeContext::Private::isLinkable ( ) const
inline

Definition at line 6264 of file context.cpp.

References Definition::isLinkable(), and m_def.

Referenced by Private().

{
return m_def->isLinkable();
}
TemplateVariant NestingNodeContext::Private::isReference ( ) const
inline

Definition at line 6276 of file context.cpp.

References Definition::isReference(), and m_def.

Referenced by Private().

{
return m_def->isReference();
}
TemplateVariant NestingNodeContext::Private::level ( ) const
inline

Definition at line 6228 of file context.cpp.

References m_level.

Referenced by Private().

{
return m_level;
}
TemplateVariant NestingNodeContext::Private::name ( ) const
inline

Definition at line 6239 of file context.cpp.

References Definition::displayName(), and m_def.

Referenced by Private().

{
return m_def->displayName(FALSE);
}
QCString NestingNodeContext::Private::relPathAsString ( ) const
inline

Definition at line 6243 of file context.cpp.

References Config_getBool.

Referenced by externalReference().

{
static bool createSubdirs = Config_getBool(CREATE_SUBDIRS);
return createSubdirs ? QCString("../../") : QCString("");
}

Member Data Documentation

Cachable NestingNodeContext::Private::m_cache
mutableprivate

Definition at line 6371 of file context.cpp.

Referenced by brief(), getClass(), getDir(), getFile(), getModule(), getNamespace(), and getPage().

SharedPtr<NestingContext> NestingNodeContext::Private::m_children
private
Definition* NestingNodeContext::Private::m_def
private
int NestingNodeContext::Private::m_index
private

Definition at line 6360 of file context.cpp.

Referenced by id().

int NestingNodeContext::Private::m_level
private

Definition at line 6359 of file context.cpp.

Referenced by level().

const NestingNodeContext* NestingNodeContext::Private::m_parent
private

Definition at line 6356 of file context.cpp.

Referenced by id().

PropertyMapper< NestingNodeContext::Private > NestingNodeContext::Private::s_inst
staticprivate

Definition at line 6372 of file context.cpp.

Referenced by get(), and Private().


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