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::Privates_inst
 

Detailed Description

Definition at line 2647 of file context.cpp.

Constructor & Destructor Documentation

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

Definition at line 2650 of file context.cpp.

2651  m_namespaceDef(nd)
2652  {
2653  static bool init=FALSE;
2654  if (!init)
2655  {
2657  s_inst.addProperty("title", &Private::title);
2658  s_inst.addProperty("highlight", &Private::highlight);
2659  s_inst.addProperty("subhighlight", &Private::subHighlight);
2660  s_inst.addProperty("compoundType", &Private::compoundType);
2661  s_inst.addProperty("hasDetails", &Private::hasDetails);
2662  s_inst.addProperty("classes", &Private::classes);
2663  s_inst.addProperty("namespaces", &Private::namespaces);
2664  s_inst.addProperty("constantgroups", &Private::constantgroups);
2665  s_inst.addProperty("typedefs", &Private::typedefs);
2666  s_inst.addProperty("enums", &Private::enums);
2667  s_inst.addProperty("functions", &Private::functions);
2668  s_inst.addProperty("variables", &Private::variables);
2669  s_inst.addProperty("memberGroups", &Private::memberGroups);
2670  s_inst.addProperty("detailedTypedefs", &Private::detailedTypedefs);
2671  s_inst.addProperty("detailedEnums", &Private::detailedEnums);
2672  s_inst.addProperty("detailedFunctions", &Private::detailedFunctions);
2673  s_inst.addProperty("detailedVariables", &Private::detailedVariables);
2674  s_inst.addProperty("inlineClasses", &Private::inlineClasses);
2675  init=TRUE;
2676  }
2677  if (!nd->cookie()) { nd->setCookie(new NamespaceContext::Private::Cachable(nd)); }
2678  }
TemplateVariant detailedEnums() const
Definition: context.cpp:2830
TemplateVariant detailedVariables() const
Definition: context.cpp:2841
Cookie * cookie() const
Definition: definition.h:352
TemplateVariant detailedTypedefs() const
Definition: context.cpp:2826
TemplateVariant enums() const
Definition: context.cpp:2794
TemplateVariant functions() const
Definition: context.cpp:2798
TemplateVariant classes() const
Definition: context.cpp:2704
const bool FALSE
Definition: qglobal.h:370
init
Definition: train.py:42
TemplateVariant hasDetails() const
Definition: context.cpp:2700
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
TemplateVariant detailedFunctions() const
Definition: context.cpp:2834
TemplateVariant compoundType() const
Definition: context.cpp:2696
void setCookie(Cookie *cookie)
Definition: definition.h:351
TemplateVariant constantgroups() const
Definition: context.cpp:2748
void addBaseProperties(PropertyMapper< NamespaceContext::Private > &inst)
Definition: context.cpp:1364
TemplateVariant memberGroups() const
Definition: context.cpp:2810
TemplateVariant title() const
Definition: context.cpp:2684
TemplateVariant subHighlight() const
Definition: context.cpp:2692
TemplateVariant typedefs() const
Definition: context.cpp:2790
TemplateVariant highlight() const
Definition: context.cpp:2688
TemplateVariant inlineClasses() const
Definition: context.cpp:2845
static PropertyMapper< NamespaceContext::Private > s_inst
Definition: context.cpp:2895
TemplateVariant namespaces() const
Definition: context.cpp:2726
const bool TRUE
Definition: qglobal.h:371
TemplateVariant variables() const
Definition: context.cpp:2806
virtual NamespaceContext::Private::~Private ( )
inlinevirtual

Definition at line 2679 of file context.cpp.

2679 {}

Member Function Documentation

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

Definition at line 2704 of file context.cpp.

2705  {
2706  Cachable &cache = getCache();
2707  if (!cache.classes)
2708  {
2709  TemplateList *classList = TemplateList::alloc();
2711  {
2713  ClassDef *cd;
2714  for (sdi.toFirst();(cd=sdi.current());++sdi)
2715  {
2716  if (cd->visibleInParentsDeclList())
2717  {
2718  classList->append(ClassContext::alloc(cd));
2719  }
2720  }
2721  }
2722  cache.classes.reset(classList);
2723  }
2724  return cache.classes.get();
2725  }
static TemplateList * alloc()
Definition: template.cpp:420
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
Cachable & getCache() const
Definition: context.cpp:2889
friend class Iterator
Definition: sortdict.h:289
ClassSDict * getClassSDict() const
Definition: namespacedef.h:98
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant NamespaceContext::Private::compoundType ( ) const
inline

Definition at line 2696 of file context.cpp.

2697  {
2699  }
QCString compoundTypeString() const
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
TemplateVariant NamespaceContext::Private::constantgroups ( ) const
inline

Definition at line 2748 of file context.cpp.

2749  {
2750  Cachable &cache = getCache();
2751  if (!cache.constantgroups)
2752  {
2753  TemplateList *namespaceList = TemplateList::alloc();
2755  {
2757  NamespaceDef *nd;
2758  for (sdi.toFirst();(nd=sdi.current());++sdi)
2759  {
2760  if (nd->isLinkable() && nd->isConstantGroup())
2761  {
2762  namespaceList->append(NamespaceContext::alloc(nd));
2763  }
2764  }
2765  }
2766  cache.constantgroups.reset(namespaceList);
2767  }
2768  return cache.constantgroups.get();
2769  }
static TemplateList * alloc()
Definition: template.cpp:420
static NamespaceContext * alloc(NamespaceDef *nd)
Definition: context.h:275
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
NamespaceSDict * getNamespaceSDict() const
Definition: namespacedef.h:101
Cachable & getCache() const
Definition: context.cpp:2889
friend class Iterator
Definition: sortdict.h:289
TemplateVariant NamespaceContext::Private::detailedEnums ( ) const
inline

Definition at line 2830 of file context.cpp.

2831  {
2833  }
TemplateVariant detailedEnums() const
Definition: context.cpp:2830
virtual QCString trEnumerationTypeDocumentation()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2770
Cachable & getCache() const
Definition: context.cpp:2889
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant NamespaceContext::Private::detailedFunctions ( ) const
inline

Definition at line 2834 of file context.cpp.

2835  {
2840  }
SrcLangExt
Definition: types.h:41
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
TemplateVariant detailedFunctions() const
Definition: context.cpp:2834
SrcLangExt getLanguage() const
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2770
TemplateVariant title() const
Definition: context.cpp:2684
Cachable & getCache() const
Definition: context.cpp:2889
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trSubprogramDocumentation()=0
virtual QCString trFunctionDocumentation()=0
TemplateVariant NamespaceContext::Private::detailedTypedefs ( ) const
inline

Definition at line 2826 of file context.cpp.

2827  {
2829  }
TemplateVariant detailedTypedefs() const
Definition: context.cpp:2826
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2770
Cachable & getCache() const
Definition: context.cpp:2889
virtual QCString trTypedefDocumentation()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant NamespaceContext::Private::detailedVariables ( ) const
inline

Definition at line 2841 of file context.cpp.

2842  {
2844  }
TemplateVariant detailedVariables() const
Definition: context.cpp:2841
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2770
Cachable & getCache() const
Definition: context.cpp:2889
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trVariableDocumentation()=0
TemplateVariant NamespaceContext::Private::enums ( ) const
inline

Definition at line 2794 of file context.cpp.

2795  {
2797  }
TemplateVariant enums() const
Definition: context.cpp:2794
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2770
virtual QCString trEnumerations()=0
Cachable & getCache() const
Definition: context.cpp:2889
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant NamespaceContext::Private::functions ( ) const
inline

Definition at line 2798 of file context.cpp.

2799  {
2802  if (lang==SrcLangExt_Fortran) title=theTranslator->trSubprograms();
2803  else if (lang==SrcLangExt_VHDL) title=VhdlDocGen::trFunctionAndProc();
2805  }
virtual QCString trSubprograms()=0
static QCString trFunctionAndProc()
TemplateVariant functions() const
Definition: context.cpp:2798
SrcLangExt
Definition: types.h:41
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
SrcLangExt getLanguage() const
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2770
virtual QCString trFunctions()=0
TemplateVariant title() const
Definition: context.cpp:2684
Cachable & getCache() const
Definition: context.cpp:2889
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant NamespaceContext::Private::get ( const char *  n) const
inline

Definition at line 2680 of file context.cpp.

2681  {
2682  return s_inst.get(this,n);
2683  }
std::void_t< T > n
static PropertyMapper< NamespaceContext::Private > s_inst
Definition: context.cpp:2895
Cachable& NamespaceContext::Private::getCache ( ) const
inlineprivate

Definition at line 2889 of file context.cpp.

2890  {
2891  Cachable *c = static_cast<Cachable*>(m_namespaceDef->cookie());
2892  assert(c!=0);
2893  return *c;
2894  }
Cookie * cookie() const
Definition: definition.h:352
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
TemplateVariant NamespaceContext::Private::getMemberList ( SharedPtr< MemberListInfoContext > &  list,
MemberListType  type,
const char *  title,
bool  detailed = FALSE 
) const
inline

Definition at line 2770 of file context.cpp.

2772  {
2773  if (!list)
2774  {
2776  if (ml)
2777  {
2779  }
2780  }
2781  if (list)
2782  {
2783  return list.get();
2784  }
2785  else
2786  {
2787  return TemplateVariant(FALSE);
2788  }
2789  }
const bool FALSE
Definition: qglobal.h:370
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
static MemberListInfoContext * alloc(Definition *def, const QCString &relPath, const MemberList *ml, const QCString &title, const QCString &subtitle=QCString())
Definition: context.h:1031
void reset(T *p=0)
Definition: context.cpp:113
MemberList * getMemberList(MemberListType lt) const
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant title() const
Definition: context.cpp:2684
T * get() const
Definition: context.cpp:111
TemplateVariant NamespaceContext::Private::hasDetails ( ) const
inline

Definition at line 2700 of file context.cpp.

2701  {
2703  }
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
bool hasDetailedDescription() const
TemplateVariant NamespaceContext::Private::highlight ( ) const
inline

Definition at line 2688 of file context.cpp.

2689  {
2690  return TemplateVariant("namespaces");
2691  }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant NamespaceContext::Private::inlineClasses ( ) const
inline

Definition at line 2845 of file context.cpp.

2846  {
2847  Cachable &cache = getCache();
2848  if (!cache.inlineClasses)
2849  {
2850  TemplateList *classList = TemplateList::alloc();
2852  {
2854  ClassDef *cd;
2855  for (sdi.toFirst();(cd=sdi.current());++sdi)
2856  {
2857  if (cd->name().find('@')==-1 &&
2858  cd->isLinkableInProject() &&
2859  cd->isEmbeddedInOuterScope() &&
2860  cd->partOfGroups()==0)
2861  {
2862  classList->append(ClassContext::alloc(cd));
2863  }
2864  }
2865  }
2866  cache.inlineClasses.reset(classList);
2867  }
2868  return cache.inlineClasses.get();
2869  }
static TemplateList * alloc()
Definition: template.cpp:420
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
Cachable & getCache() const
Definition: context.cpp:2889
friend class Iterator
Definition: sortdict.h:289
ClassSDict * getClassSDict() const
Definition: namespacedef.h:98
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant NamespaceContext::Private::memberGroups ( ) const
inline

Definition at line 2810 of file context.cpp.

2811  {
2812  Cachable &cache = getCache();
2813  if (!cache.memberGroups)
2814  {
2816  {
2818  }
2819  else
2820  {
2821  cache.memberGroups.reset(MemberGroupListContext::alloc());
2822  }
2823  }
2824  return cache.memberGroups.get();
2825  }
bool subGrouping() const
Definition: namespacedef.h:88
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
static MemberGroupListContext * alloc()
Definition: context.h:1002
Cachable & getCache() const
Definition: context.cpp:2889
MemberGroupSDict * getMemberGroupSDict() const
Definition: namespacedef.h:95
TemplateVariant NamespaceContext::Private::namespaces ( ) const
inline

Definition at line 2726 of file context.cpp.

2727  {
2728  Cachable &cache = getCache();
2729  if (!cache.namespaces)
2730  {
2731  TemplateList *namespaceList = TemplateList::alloc();
2733  {
2735  NamespaceDef *nd;
2736  for (sdi.toFirst();(nd=sdi.current());++sdi)
2737  {
2738  if (nd->isLinkable() && !nd->isConstantGroup())
2739  {
2740  namespaceList->append(NamespaceContext::alloc(nd));
2741  }
2742  }
2743  }
2744  cache.namespaces.reset(namespaceList);
2745  }
2746  return cache.namespaces.get();
2747  }
static TemplateList * alloc()
Definition: template.cpp:420
static NamespaceContext * alloc(NamespaceDef *nd)
Definition: context.h:275
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
NamespaceSDict * getNamespaceSDict() const
Definition: namespacedef.h:101
Cachable & getCache() const
Definition: context.cpp:2889
friend class Iterator
Definition: sortdict.h:289
TemplateVariant NamespaceContext::Private::subHighlight ( ) const
inline

Definition at line 2692 of file context.cpp.

2693  {
2694  return TemplateVariant("");
2695  }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant NamespaceContext::Private::title ( ) const
inline

Definition at line 2684 of file context.cpp.

2685  {
2687  }
NamespaceDef * m_namespaceDef
Definition: context.cpp:2871
QCString title() const
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant NamespaceContext::Private::typedefs ( ) const
inline

Definition at line 2790 of file context.cpp.

2791  {
2793  }
virtual QCString trTypedefs()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2770
TemplateVariant typedefs() const
Definition: context.cpp:2790
Cachable & getCache() const
Definition: context.cpp:2889
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant NamespaceContext::Private::variables ( ) const
inline

Definition at line 2806 of file context.cpp.

2807  {
2809  }
virtual QCString trVariables()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2770
Cachable & getCache() const
Definition: context.cpp:2889
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant variables() const
Definition: context.cpp:2806

Member Data Documentation

NamespaceDef* NamespaceContext::Private::m_namespaceDef
private

Definition at line 2871 of file context.cpp.

PropertyMapper< NamespaceContext::Private > NamespaceContext::Private::s_inst
staticprivate

Definition at line 2895 of file context.cpp.


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