summaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-06-02 19:59:09 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-02 12:36:45 (GMT)
commite0c3517ff9369387e00dd596b094a4729cfe789c (patch)
tree945bc83946b5cbe6d6ee01a66154d3b95e148543 /src/context.h
parenta7c14ac74c43e6b372d866deeed77fe69e2a68e0 (diff)
downloadDoxygen-e0c3517ff9369387e00dd596b094a4729cfe789c.zip
Doxygen-e0c3517ff9369387e00dd596b094a4729cfe789c.tar.gz
Doxygen-e0c3517ff9369387e00dd596b094a4729cfe789c.tar.bz2
Addition of module data to context and alphaIndex filter
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h112
1 files changed, 32 insertions, 80 deletions
diff --git a/src/context.h b/src/context.h
index cc42527..7622e35 100644
--- a/src/context.h
+++ b/src/context.h
@@ -1,3 +1,18 @@
+/******************************************************************************
+ *
+ * Copyright (C) 1997-2014 by Dimitri van Heesch.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
+ * for any purpose. It is provided "as is" without express or implied warranty.
+ * See the GNU General Public License for more details.
+ *
+ * Documents produced by Doxygen are derivative works derived from the
+ * input used in their production; they are not affected by this license.
+ *
+ */
+
#ifndef CONTEXT_H
#define CONTEXT_H
@@ -364,10 +379,10 @@ class ModuleContext : public RefCountedContext, public TemplateStructIntf
//----------------------------------------------------
-class NestedClassListContext : public RefCountedContext, public TemplateListIntf
+class ClassListContext : public RefCountedContext, public TemplateListIntf
{
public:
- static NestedClassListContext *alloc() { return new NestedClassListContext; }
+ static ClassListContext *alloc() { return new ClassListContext; }
// TemplateListIntf
virtual int count() const;
@@ -376,55 +391,28 @@ class NestedClassListContext : public RefCountedContext, public TemplateListIntf
virtual int addRef() { return RefCountedContext::addRef(); }
virtual int release() { return RefCountedContext::release(); }
- void append(ClassDef *cd);
-
private:
- NestedClassListContext();
- ~NestedClassListContext();
+ ClassListContext();
+ ~ClassListContext();
class Private;
Private *p;
};
//----------------------------------------------------
-class NestedNamespaceListContext : public RefCountedContext, public TemplateListIntf
+class ClassIndexContext : public RefCountedContext, public TemplateStructIntf
{
public:
- static NestedNamespaceListContext *alloc() { return new NestedNamespaceListContext; }
+ static ClassIndexContext *alloc() { return new ClassIndexContext; }
- // TemplateListIntf
- virtual int count() const;
- virtual TemplateVariant at(int index) const;
- virtual TemplateListIntf::ConstIterator *createIterator() const;
+ // TemplateStructIntf methods
+ virtual TemplateVariant get(const char *name) const;
virtual int addRef() { return RefCountedContext::addRef(); }
virtual int release() { return RefCountedContext::release(); }
- void append(NamespaceDef *cd);
-
private:
- NestedNamespaceListContext();
- ~NestedNamespaceListContext();
- class Private;
- Private *p;
-};
-
-//----------------------------------------------------
-
-class ClassListContext : public RefCountedContext, public TemplateListIntf
-{
- public:
- static ClassListContext *alloc() { return new ClassListContext; }
-
- // TemplateListIntf
- virtual int count() const;
- virtual TemplateVariant at(int index) const;
- virtual TemplateListIntf::ConstIterator *createIterator() const;
- virtual int addRef() { return RefCountedContext::addRef(); }
- virtual int release() { return RefCountedContext::release(); }
-
- private:
- ClassListContext();
- ~ClassListContext();
+ ClassIndexContext();
+ ~ClassIndexContext();
class Private;
Private *p;
};
@@ -537,6 +525,8 @@ class NestingContext : public RefCountedContext, public TemplateListIntf
void addFiles(const FileNameList &);
void addFiles(const FileList &);
void addPages(const PageSDict &pages,bool rootOnly);
+ void addModules(const GroupSDict &modules);
+ void addModules(const GroupList &modules);
private:
NestingContext(const NestingNodeContext *parent,int level);
@@ -667,60 +657,22 @@ class FileTreeContext : public RefCountedContext, public TemplateStructIntf
//----------------------------------------------------
-class PageNodeContext : public RefCountedContext, public TemplateStructIntf
-{
- public:
- static PageNodeContext *alloc(PageDef *pd) { return new PageNodeContext(pd); }
-
- // TemplateStructIntf methods
- virtual TemplateVariant get(const char *name) const;
- virtual int addRef() { return RefCountedContext::addRef(); }
- virtual int release() { return RefCountedContext::release(); }
-
- private:
- PageNodeContext(PageDef *);
- ~PageNodeContext();
- class Private;
- Private *p;
-};
-
-//----------------------------------------------------
-
-class PageNodeListContext : public RefCountedContext, public TemplateListIntf
+class PageListContext : public RefCountedContext, public TemplateListIntf
{
public:
- static PageNodeListContext *alloc() { return new PageNodeListContext; }
+ static PageListContext *alloc(const PageSDict *pages) { return new PageListContext(pages); }
- // TemplateListIntf
+ // TemplateListIntf methods
virtual int count() const;
virtual TemplateVariant at(int index) const;
virtual TemplateListIntf::ConstIterator *createIterator() const;
virtual int addRef() { return RefCountedContext::addRef(); }
virtual int release() { return RefCountedContext::release(); }
- void addPages(const PageSDict &,bool rootOnly);
-
- private:
- PageNodeListContext();
- ~PageNodeListContext();
- class Private;
- Private *p;
-};
-
-//----------------------------------------------------
-
-class PageListContext : public RefCountedContext, public TemplateStructIntf
-{
- public:
- static PageListContext *alloc() { return new PageListContext; }
-
- // TemplateStructIntf methods
- virtual TemplateVariant get(const char *name) const;
- virtual int addRef() { return RefCountedContext::addRef(); }
- virtual int release() { return RefCountedContext::release(); }
+ void addPages(const PageSDict &pages);
private:
- PageListContext();
+ PageListContext(const PageSDict *pages);
~PageListContext();
class Private;
Private *p;