My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ModuleContext::Private Class Reference
Inheritance diagram for ModuleContext::Private:
DefinitionContext< ModuleContext::Private >

Classes

struct  Cachable
 

Public Member Functions

 Private (GroupDef *gd)
 
virtual ~Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant title () const
 
TemplateVariant highlight () const
 
TemplateVariant subHighlight () const
 
DotGroupCollaborationgetGroupGraph () const
 
TemplateVariant hasGroupGraph () const
 
TemplateVariant groupGraph () const
 
TemplateVariant hasDetails () const
 
TemplateVariant modules () const
 
TemplateVariant examples () const
 
TemplateVariant pages () const
 
TemplateVariant dirs () const
 
TemplateVariant files () const
 
TemplateVariant classes () const
 
TemplateVariant namespaces () const
 
TemplateVariant constantgroups () const
 
TemplateVariant getMemberList (SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
 
TemplateVariant macros () const
 
TemplateVariant typedefs () const
 
TemplateVariant enums () const
 
TemplateVariant enumValues () const
 
TemplateVariant functions () const
 
TemplateVariant variables () const
 
TemplateVariant signals () const
 
TemplateVariant publicSlots () const
 
TemplateVariant protectedSlots () const
 
TemplateVariant privateSlots () const
 
TemplateVariant events () const
 
TemplateVariant properties () const
 
TemplateVariant friends () const
 
TemplateVariant memberGroups () const
 
TemplateVariant detailedMacros () const
 
TemplateVariant detailedTypedefs () const
 
TemplateVariant detailedEnums () const
 
TemplateVariant detailedEnumValues () const
 
TemplateVariant detailedFunctions () const
 
TemplateVariant detailedVariables () const
 
TemplateVariant detailedSignals () const
 
TemplateVariant detailedPublicSlots () const
 
TemplateVariant detailedProtectedSlots () const
 
TemplateVariant detailedPrivateSlots () const
 
TemplateVariant detailedEvents () const
 
TemplateVariant detailedProperties () const
 
TemplateVariant detailedFriends () const
 
TemplateVariant inlineClasses () const
 
TemplateVariant compoundType () const
 
- Public Member Functions inherited from DefinitionContext< ModuleContext::Private >
 DefinitionContext (Definition *d)
 
void addBaseProperties (PropertyMapper< ModuleContext::Private > &inst)
 
TemplateVariant fileName () const
 
TemplateVariant anchor () const
 
TemplateVariant sourceFileName () const
 
TemplateVariant isLinkable () const
 
TemplateVariant isLinkableInProject () const
 
TemplateVariant name () const
 
TemplateVariant bareName () const
 
QCString relPathAsString () const
 
virtual TemplateVariant relPath () const
 
TemplateVariant details () const
 
TemplateVariant brief () const
 
TemplateVariant inbodyDocs () const
 
TemplateVariant dynSectionId () const
 
TemplateVariant language () const
 
TemplateVariant compoundKind () const
 
TemplateVariant sourceDef () const
 
void fillPath (Definition *def, TemplateList *list) const
 
TemplateVariant navigationPath () const
 
TemplateVariant isReference () const
 
TemplateVariant externalReference () const
 

Private Member Functions

CachablegetCache () const
 

Private Attributes

GroupDefm_groupDef
 

Static Private Attributes

static PropertyMapper
< ModuleContext::Private
s_inst
 

Detailed Description

Definition at line 5134 of file context.cpp.

Constructor & Destructor Documentation

ModuleContext::Private::Private ( GroupDef gd)
inline

Definition at line 5137 of file context.cpp.

References DefinitionContext< ModuleContext::Private >::addBaseProperties(), classes(), compoundType(), constantgroups(), Definition::cookie(), detailedEnums(), detailedEnumValues(), detailedEvents(), detailedFriends(), detailedFunctions(), detailedMacros(), detailedPrivateSlots(), detailedProperties(), detailedProtectedSlots(), detailedPublicSlots(), detailedSignals(), detailedTypedefs(), detailedVariables(), dirs(), enums(), enumValues(), events(), examples(), files(), friends(), functions(), groupGraph(), hasDetails(), hasGroupGraph(), highlight(), Config::init(), inlineClasses(), macros(), memberGroups(), modules(), namespaces(), privateSlots(), properties(), protectedSlots(), publicSlots(), s_inst, Definition::setCookie(), signals(), subHighlight(), title(), typedefs(), and variables().

{
static bool init=FALSE;
if (!init)
{
s_inst.addProperty("title", &Private::title);
s_inst.addProperty("highlight", &Private::highlight);
s_inst.addProperty("subhighlight", &Private::subHighlight);
s_inst.addProperty("hasGroupGraph", &Private::hasGroupGraph);
s_inst.addProperty("groupGraph", &Private::groupGraph);
s_inst.addProperty("hasDetails", &Private::hasDetails);
s_inst.addProperty("modules", &Private::modules);
s_inst.addProperty("dirs", &Private::dirs);
s_inst.addProperty("files", &Private::files);
s_inst.addProperty("namespaces", &Private::namespaces);
s_inst.addProperty("classes", &Private::classes);
s_inst.addProperty("constantgroups", &Private::constantgroups);
s_inst.addProperty("examples", &Private::examples);
s_inst.addProperty("macros", &Private::macros);
s_inst.addProperty("typedefs", &Private::typedefs);
s_inst.addProperty("enums", &Private::enums);
s_inst.addProperty("enumvalues", &Private::enumValues);
s_inst.addProperty("functions", &Private::functions);
s_inst.addProperty("variables", &Private::variables);
s_inst.addProperty("signals", &Private::signals);
s_inst.addProperty("publicSlots", &Private::publicSlots);
s_inst.addProperty("protectedSlots", &Private::protectedSlots);
s_inst.addProperty("privateSlots", &Private::privateSlots);
s_inst.addProperty("events", &Private::events);
s_inst.addProperty("properties", &Private::properties);
s_inst.addProperty("friends", &Private::friends);
s_inst.addProperty("memberGroups", &Private::memberGroups);
s_inst.addProperty("detailedMacros", &Private::detailedMacros);
s_inst.addProperty("detailedTypedefs", &Private::detailedTypedefs);
s_inst.addProperty("detailedEnums", &Private::detailedEnums);
s_inst.addProperty("detailedEnumValues", &Private::detailedEnumValues);
s_inst.addProperty("detailedFunctions", &Private::detailedFunctions);
s_inst.addProperty("detailedVariables", &Private::detailedVariables);
s_inst.addProperty("detailedSignals", &Private::detailedSignals);
s_inst.addProperty("detailedPublicSlots", &Private::detailedPublicSlots);
s_inst.addProperty("detailedProtectedSlots", &Private::detailedProtectedSlots);
s_inst.addProperty("detailedPrivateSlots", &Private::detailedPrivateSlots);
s_inst.addProperty("detailedEvents", &Private::detailedEvents);
s_inst.addProperty("detailedProperties", &Private::detailedProperties);
s_inst.addProperty("detailedFriends", &Private::detailedFriends);
s_inst.addProperty("inlineClasses", &Private::inlineClasses);
s_inst.addProperty("compoundType", &Private::compoundType);
init=TRUE;
}
if (!gd->cookie()) { gd->setCookie(new ModuleContext::Private::Cachable(gd)); }
}
virtual ModuleContext::Private::~Private ( )
inlinevirtual

Definition at line 5189 of file context.cpp.

{}

Member Function Documentation

TemplateVariant ModuleContext::Private::classes ( ) const
inline

Definition at line 5371 of file context.cpp.

References ClassContext::alloc(), TemplateList::alloc(), TemplateList::append(), ModuleContext::Private::Cachable::classes, SharedPtr< T >::get(), getCache(), GroupDef::getClasses(), SDict< ClassDef >::Iterator, m_groupDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.classes)
{
{
ClassDef *cd;
for (sdi.toFirst();(cd=sdi.current());++sdi)
{
if (cd->visibleInParentsDeclList())
{
classList->append(ClassContext::alloc(cd));
}
}
}
cache.classes.reset(classList);
}
return cache.classes.get();
}
TemplateVariant ModuleContext::Private::compoundType ( ) const
inline

Definition at line 5610 of file context.cpp.

Referenced by Private().

{
return "module"; //theTranslator->trGroup(FALSE,TRUE);
}
TemplateVariant ModuleContext::Private::constantgroups ( ) const
inline

Definition at line 5415 of file context.cpp.

References NamespaceContext::alloc(), TemplateList::alloc(), TemplateList::append(), ModuleContext::Private::Cachable::constantgroups, SharedPtr< T >::get(), getCache(), GroupDef::getNamespaces(), SDict< NamespaceDef >::Iterator, m_groupDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.constantgroups)
{
TemplateList *namespaceList = TemplateList::alloc();
{
for (sdi.toFirst();(nd=sdi.current());++sdi)
{
if (nd->isLinkable() && nd->isConstantGroup())
{
namespaceList->append(NamespaceContext::alloc(nd));
}
}
}
cache.constantgroups.reset(namespaceList);
}
return cache.constantgroups.get();
}
TemplateVariant ModuleContext::Private::detailedEnums ( ) const
inline
TemplateVariant ModuleContext::Private::detailedEnumValues ( ) const
inline
TemplateVariant ModuleContext::Private::detailedEvents ( ) const
inline
TemplateVariant ModuleContext::Private::detailedFriends ( ) const
inline
TemplateVariant ModuleContext::Private::detailedFunctions ( ) const
inline
TemplateVariant ModuleContext::Private::detailedMacros ( ) const
inline
TemplateVariant ModuleContext::Private::detailedPrivateSlots ( ) const
inline
TemplateVariant ModuleContext::Private::detailedProperties ( ) const
inline
TemplateVariant ModuleContext::Private::detailedProtectedSlots ( ) const
inline
TemplateVariant ModuleContext::Private::detailedPublicSlots ( ) const
inline
TemplateVariant ModuleContext::Private::detailedSignals ( ) const
inline
TemplateVariant ModuleContext::Private::detailedTypedefs ( ) const
inline
TemplateVariant ModuleContext::Private::detailedVariables ( ) const
inline
TemplateVariant ModuleContext::Private::dirs ( ) const
inline

Definition at line 5333 of file context.cpp.

References DirContext::alloc(), TemplateList::alloc(), TemplateList::append(), ModuleContext::Private::Cachable::dirs, SharedPtr< T >::get(), getCache(), GroupDef::getDirs(), m_groupDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.dirs)
{
{
QListIterator<DirDef> it(*m_groupDef->getDirs());
DirDef *dd;
for (it.toFirst();(dd=it.current());++it)
{
dirList->append(DirContext::alloc(dd));
}
}
cache.dirs.reset(dirList);
}
return cache.dirs.get();
}
TemplateVariant ModuleContext::Private::enums ( ) const
inline
TemplateVariant ModuleContext::Private::enumValues ( ) const
inline
TemplateVariant ModuleContext::Private::events ( ) const
inline
TemplateVariant ModuleContext::Private::examples ( ) const
inline

Definition at line 5295 of file context.cpp.

References PageContext::alloc(), TemplateList::alloc(), TemplateList::append(), ModuleContext::Private::Cachable::examples, SharedPtr< T >::get(), getCache(), GroupDef::getExamples(), SDict< PageDef >::Iterator, m_groupDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.examples)
{
{
PageDef *ex;
for (eli.toFirst();(ex=eli.current());++eli)
{
exampleList->append(PageContext::alloc(ex,FALSE,TRUE));
}
}
cache.examples.reset(exampleList);
}
return cache.examples.get();
}
TemplateVariant ModuleContext::Private::files ( ) const
inline

Definition at line 5352 of file context.cpp.

References FileContext::alloc(), TemplateList::alloc(), TemplateList::append(), ModuleContext::Private::Cachable::files, SharedPtr< T >::get(), getCache(), GroupDef::getFiles(), m_groupDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.files)
{
{
QListIterator<FileDef> it(*m_groupDef->getFiles());
FileDef *fd;
for (it.toFirst();(fd=it.current());++it)
{
fileList->append(FileContext::alloc(fd));
}
}
cache.files.reset(fileList);
}
return cache.files.get();
}
TemplateVariant ModuleContext::Private::friends ( ) const
inline
TemplateVariant ModuleContext::Private::functions ( ) const
inline
TemplateVariant ModuleContext::Private::get ( const char *  n) const
inline

Definition at line 5190 of file context.cpp.

References s_inst.

Referenced by ModuleContext::get().

{
return s_inst.get(this,n);
}
Cachable& ModuleContext::Private::getCache ( ) const
inlineprivate
DotGroupCollaboration* ModuleContext::Private::getGroupGraph ( ) const
inline

Definition at line 5206 of file context.cpp.

References ScopedPtr< T >::get(), getCache(), ModuleContext::Private::Cachable::groupGraph, m_groupDef, and ScopedPtr< T >::reset().

Referenced by groupGraph(), and hasGroupGraph().

{
Cachable &cache = getCache();
if (!cache.groupGraph)
{
cache.groupGraph.reset(new DotGroupCollaboration(m_groupDef));
}
return cache.groupGraph.get();
}
TemplateVariant ModuleContext::Private::getMemberList ( SharedPtr< MemberListInfoContext > &  list,
MemberListType  type,
const char *  title,
bool  detailed = FALSE 
) const
inline
TemplateVariant ModuleContext::Private::groupGraph ( ) const
inline
TemplateVariant ModuleContext::Private::hasDetails ( ) const
inline

Definition at line 5269 of file context.cpp.

References GroupDef::hasDetailedDescription(), and m_groupDef.

Referenced by Private().

TemplateVariant ModuleContext::Private::hasGroupGraph ( ) const
inline

Definition at line 5215 of file context.cpp.

References Config_getBool, getGroupGraph(), and DotGroupCollaboration::isTrivial().

Referenced by Private().

{
bool result=FALSE;
static bool haveDot = Config_getBool(HAVE_DOT);
static bool groupGraphs = Config_getBool(GROUP_GRAPHS);
if (haveDot && groupGraphs)
{
result = !graph->isTrivial();
}
return result;
}
TemplateVariant ModuleContext::Private::highlight ( ) const
inline

Definition at line 5198 of file context.cpp.

Referenced by Private().

{
return TemplateVariant("modules");
}
TemplateVariant ModuleContext::Private::inlineClasses ( ) const
inline

Definition at line 5585 of file context.cpp.

References ClassContext::alloc(), TemplateList::alloc(), TemplateList::append(), SharedPtr< T >::get(), getCache(), GroupDef::getClasses(), ModuleContext::Private::Cachable::inlineClasses, SDict< ClassDef >::Iterator, m_groupDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.inlineClasses)
{
{
ClassDef *cd;
for (sdi.toFirst();(cd=sdi.current());++sdi)
{
if (cd->name().find('@')==-1 &&
cd->isLinkableInProject() &&
cd->isEmbeddedInOuterScope() &&
cd->partOfGroups()==0)
{
classList->append(ClassContext::alloc(cd));
}
}
}
cache.inlineClasses.reset(classList);
}
return cache.inlineClasses.get();
}
TemplateVariant ModuleContext::Private::macros ( ) const
inline
TemplateVariant ModuleContext::Private::memberGroups ( ) const
inline
TemplateVariant ModuleContext::Private::modules ( ) const
inline

Definition at line 5273 of file context.cpp.

References ModuleContext::alloc(), TemplateList::alloc(), TemplateList::append(), SharedPtr< T >::get(), getCache(), GroupDef::getSubGroups(), m_groupDef, ModuleContext::Private::Cachable::modules, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.modules)
{
{
GroupDef *gd;
for (gli.toFirst();(gd=gli.current());++gli)
{
if (gd->isVisible())
{
moduleList->append(ModuleContext::alloc(gd));
}
}
}
cache.modules.reset(moduleList);
}
return cache.modules.get();
}
TemplateVariant ModuleContext::Private::namespaces ( ) const
inline

Definition at line 5393 of file context.cpp.

References NamespaceContext::alloc(), TemplateList::alloc(), TemplateList::append(), SharedPtr< T >::get(), getCache(), GroupDef::getNamespaces(), SDict< NamespaceDef >::Iterator, m_groupDef, ModuleContext::Private::Cachable::namespaces, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.namespaces)
{
TemplateList *namespaceList = TemplateList::alloc();
{
for (sdi.toFirst();(nd=sdi.current());++sdi)
{
if (nd->isLinkable() && !nd->isConstantGroup())
{
namespaceList->append(NamespaceContext::alloc(nd));
}
}
}
cache.namespaces.reset(namespaceList);
}
return cache.namespaces.get();
}
TemplateVariant ModuleContext::Private::pages ( ) const
inline

Definition at line 5314 of file context.cpp.

References PageContext::alloc(), TemplateList::alloc(), TemplateList::append(), SharedPtr< T >::get(), getCache(), GroupDef::getExamples(), GroupDef::getPages(), SDict< PageDef >::Iterator, m_groupDef, ModuleContext::Private::Cachable::pages, and SharedPtr< T >::reset().

{
Cachable &cache = getCache();
if (!cache.pages)
{
{
PageDef *ex;
for (eli.toFirst();(ex=eli.current());++eli)
{
pageList->append(PageContext::alloc(ex,FALSE,TRUE));
}
}
cache.pages.reset(pageList);
}
return cache.pages.get();
}
TemplateVariant ModuleContext::Private::privateSlots ( ) const
inline
TemplateVariant ModuleContext::Private::properties ( ) const
inline
TemplateVariant ModuleContext::Private::protectedSlots ( ) const
inline
TemplateVariant ModuleContext::Private::publicSlots ( ) const
inline
TemplateVariant ModuleContext::Private::signals ( ) const
inline
TemplateVariant ModuleContext::Private::subHighlight ( ) const
inline

Definition at line 5202 of file context.cpp.

Referenced by Private().

{
return TemplateVariant("");
}
TemplateVariant ModuleContext::Private::title ( ) const
inline

Definition at line 5194 of file context.cpp.

References GroupDef::groupTitle(), and m_groupDef.

Referenced by detailedFunctions(), functions(), and Private().

TemplateVariant ModuleContext::Private::typedefs ( ) const
inline
TemplateVariant ModuleContext::Private::variables ( ) const
inline

Member Data Documentation

GroupDef* ModuleContext::Private::m_groupDef
private
PropertyMapper< ModuleContext::Private > ModuleContext::Private::s_inst
staticprivate

Definition at line 5663 of file context.cpp.

Referenced by get(), and Private().


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