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
NamespaceContext::Private Class Reference
Inheritance diagram for NamespaceContext::Private:
DefinitionContext< NamespaceContext::Private >

Classes

struct  Cachable
 

Public Member Functions

 Private (NamespaceDef *nd)
 
virtual ~Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant title () const
 
TemplateVariant highlight () const
 
TemplateVariant subHighlight () const
 
TemplateVariant compoundType () const
 
TemplateVariant hasDetails () 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 typedefs () const
 
TemplateVariant enums () const
 
TemplateVariant functions () const
 
TemplateVariant variables () const
 
TemplateVariant memberGroups () const
 
TemplateVariant detailedTypedefs () const
 
TemplateVariant detailedEnums () const
 
TemplateVariant detailedFunctions () const
 
TemplateVariant detailedVariables () const
 
TemplateVariant inlineClasses () const
 
- Public Member Functions inherited from DefinitionContext< NamespaceContext::Private >
 DefinitionContext (Definition *d)
 
void addBaseProperties (PropertyMapper< NamespaceContext::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

NamespaceDefm_namespaceDef
 

Static Private Attributes

static PropertyMapper
< NamespaceContext::Private
s_inst
 

Detailed Description

Definition at line 2662 of file context.cpp.

Constructor & Destructor Documentation

NamespaceContext::Private::Private ( NamespaceDef nd)
inline

Definition at line 2665 of file context.cpp.

References DefinitionContext< NamespaceContext::Private >::addBaseProperties(), classes(), compoundType(), constantgroups(), Definition::cookie(), detailedEnums(), detailedFunctions(), detailedTypedefs(), detailedVariables(), enums(), functions(), hasDetails(), highlight(), Config::init(), inlineClasses(), memberGroups(), namespaces(), s_inst, Definition::setCookie(), 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("compoundType", &Private::compoundType);
s_inst.addProperty("hasDetails", &Private::hasDetails);
s_inst.addProperty("classes", &Private::classes);
s_inst.addProperty("namespaces", &Private::namespaces);
s_inst.addProperty("constantgroups", &Private::constantgroups);
s_inst.addProperty("typedefs", &Private::typedefs);
s_inst.addProperty("enums", &Private::enums);
s_inst.addProperty("functions", &Private::functions);
s_inst.addProperty("variables", &Private::variables);
s_inst.addProperty("memberGroups", &Private::memberGroups);
s_inst.addProperty("detailedTypedefs", &Private::detailedTypedefs);
s_inst.addProperty("detailedEnums", &Private::detailedEnums);
s_inst.addProperty("detailedFunctions", &Private::detailedFunctions);
s_inst.addProperty("detailedVariables", &Private::detailedVariables);
s_inst.addProperty("inlineClasses", &Private::inlineClasses);
init=TRUE;
}
}
virtual NamespaceContext::Private::~Private ( )
inlinevirtual

Definition at line 2694 of file context.cpp.

{}

Member Function Documentation

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

Definition at line 2719 of file context.cpp.

References ClassContext::alloc(), TemplateList::alloc(), TemplateList::append(), NamespaceContext::Private::Cachable::classes, SharedPtr< T >::get(), getCache(), NamespaceDef::getClassSDict(), SDict< ClassDef >::Iterator, m_namespaceDef, 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 NamespaceContext::Private::compoundType ( ) const
inline

Definition at line 2711 of file context.cpp.

References NamespaceDef::compoundTypeString(), and m_namespaceDef.

Referenced by Private().

TemplateVariant NamespaceContext::Private::constantgroups ( ) const
inline

Definition at line 2763 of file context.cpp.

References NamespaceContext::alloc(), TemplateList::alloc(), TemplateList::append(), NamespaceContext::Private::Cachable::constantgroups, SharedPtr< T >::get(), getCache(), NamespaceDef::getNamespaceSDict(), SDict< NamespaceDef >::Iterator, m_namespaceDef, 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 NamespaceContext::Private::detailedEnums ( ) const
inline
TemplateVariant NamespaceContext::Private::detailedFunctions ( ) const
inline
TemplateVariant NamespaceContext::Private::detailedTypedefs ( ) const
inline
TemplateVariant NamespaceContext::Private::detailedVariables ( ) const
inline
TemplateVariant NamespaceContext::Private::enums ( ) const
inline
TemplateVariant NamespaceContext::Private::functions ( ) const
inline
TemplateVariant NamespaceContext::Private::get ( const char *  n) const
inline

Definition at line 2695 of file context.cpp.

References s_inst.

Referenced by NamespaceContext::get().

{
return s_inst.get(this,n);
}
Cachable& NamespaceContext::Private::getCache ( ) const
inlineprivate

Definition at line 2904 of file context.cpp.

References Definition::cookie(), and m_namespaceDef.

Referenced by classes(), constantgroups(), detailedEnums(), detailedFunctions(), detailedTypedefs(), detailedVariables(), enums(), functions(), inlineClasses(), memberGroups(), namespaces(), typedefs(), and variables().

{
Cachable *c = static_cast<Cachable*>(m_namespaceDef->cookie());
assert(c!=0);
return *c;
}
TemplateVariant NamespaceContext::Private::getMemberList ( SharedPtr< MemberListInfoContext > &  list,
MemberListType  type,
const char *  title,
bool  detailed = FALSE 
) const
inline
TemplateVariant NamespaceContext::Private::hasDetails ( ) const
inline

Definition at line 2715 of file context.cpp.

References NamespaceDef::hasDetailedDescription(), and m_namespaceDef.

Referenced by Private().

TemplateVariant NamespaceContext::Private::highlight ( ) const
inline

Definition at line 2703 of file context.cpp.

Referenced by Private().

{
return TemplateVariant("namespaces");
}
TemplateVariant NamespaceContext::Private::inlineClasses ( ) const
inline

Definition at line 2860 of file context.cpp.

References ClassContext::alloc(), TemplateList::alloc(), TemplateList::append(), SharedPtr< T >::get(), getCache(), NamespaceDef::getClassSDict(), NamespaceContext::Private::Cachable::inlineClasses, SDict< ClassDef >::Iterator, m_namespaceDef, 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 NamespaceContext::Private::memberGroups ( ) const
inline
TemplateVariant NamespaceContext::Private::namespaces ( ) const
inline

Definition at line 2741 of file context.cpp.

References NamespaceContext::alloc(), TemplateList::alloc(), TemplateList::append(), SharedPtr< T >::get(), getCache(), NamespaceDef::getNamespaceSDict(), SDict< NamespaceDef >::Iterator, m_namespaceDef, NamespaceContext::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 NamespaceContext::Private::subHighlight ( ) const
inline

Definition at line 2707 of file context.cpp.

Referenced by Private().

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

Definition at line 2699 of file context.cpp.

References m_namespaceDef, and NamespaceDef::title().

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

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

Member Data Documentation

NamespaceDef* NamespaceContext::Private::m_namespaceDef
private
PropertyMapper< NamespaceContext::Private > NamespaceContext::Private::s_inst
staticprivate

Definition at line 2910 of file context.cpp.

Referenced by get(), and Private().


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