summaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-09-08 14:10:32 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-09-08 14:10:32 (GMT)
commite58fb0a46f73f37d16859f43fda1eb5ba4a15c5d (patch)
treee2c81dd42a25e439ea0055605418732883a173d0 /src/context.h
parent5aa4ade86499ba615da48875a9e7292ddd22c22f (diff)
downloadDoxygen-e58fb0a46f73f37d16859f43fda1eb5ba4a15c5d.zip
Doxygen-e58fb0a46f73f37d16859f43fda1eb5ba4a15c5d.tar.gz
Doxygen-e58fb0a46f73f37d16859f43fda1eb5ba4a15c5d.tar.bz2
Template enhancements and various other small fixes
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h38
1 files changed, 30 insertions, 8 deletions
diff --git a/src/context.h b/src/context.h
index 77a3a95..66b1634 100644
--- a/src/context.h
+++ b/src/context.h
@@ -329,7 +329,7 @@ class DirContext : public RefCountedContext, public TemplateStructIntf
class PageContext : public RefCountedContext, public TemplateStructIntf
{
public:
- static PageContext *alloc(PageDef *pd,bool isMainPage=FALSE) { return new PageContext(pd,isMainPage); }
+ static PageContext *alloc(PageDef *pd,bool isMainPage,bool isExample) { return new PageContext(pd,isMainPage,isExample); }
// TemplateStructIntf methods
virtual TemplateVariant get(const char *name) const;
@@ -337,7 +337,7 @@ class PageContext : public RefCountedContext, public TemplateStructIntf
virtual int release() { return RefCountedContext::release(); }
private:
- PageContext(PageDef *,bool isMainPage);
+ PageContext(PageDef *,bool isMainPage,bool isExample);
~PageContext();
class Private;
Private *p;
@@ -710,7 +710,7 @@ class PageListContext : public RefCountedContext, public TemplateListIntf
class PageTreeContext : public RefCountedContext, public TemplateStructIntf
{
public:
- static PageTreeContext *alloc() { return new PageTreeContext; }
+ static PageTreeContext *alloc(const PageSDict *pages) { return new PageTreeContext(pages); }
// TemplateStructIntf methods
virtual TemplateVariant get(const char *name) const;
@@ -718,7 +718,7 @@ class PageTreeContext : public RefCountedContext, public TemplateStructIntf
virtual int release() { return RefCountedContext::release(); }
private:
- PageTreeContext();
+ PageTreeContext(const PageSDict *pages);
~PageTreeContext();
class Private;
Private *p;
@@ -788,13 +788,15 @@ class ModuleTreeContext : public RefCountedContext, public TemplateStructIntf
//----------------------------------------------------
-class ExampleListContext : public RefCountedContext, public TemplateStructIntf
+class ExampleListContext : public RefCountedContext, public TemplateListIntf
{
public:
- static ExampleListContext *alloc() { return new ExampleListContext(); }
+ static ExampleListContext *alloc() { return new ExampleListContext; }
- // TemplateStructIntf methods
- virtual TemplateVariant get(const char *name) const;
+ // 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(); }
@@ -807,6 +809,26 @@ class ExampleListContext : public RefCountedContext, public TemplateStructIntf
//----------------------------------------------------
+
+class ExampleTreeContext : public RefCountedContext, public TemplateStructIntf
+{
+ public:
+ static ExampleTreeContext *alloc() { return new ExampleTreeContext; }
+
+ // TemplateStructIntf methods
+ virtual TemplateVariant get(const char *name) const;
+ virtual int addRef() { return RefCountedContext::addRef(); }
+ virtual int release() { return RefCountedContext::release(); }
+
+ private:
+ ExampleTreeContext();
+ ~ExampleTreeContext();
+ class Private;
+ Private *p;
+};
+
+//----------------------------------------------------
+
class GlobalsIndexContext : public RefCountedContext, public TemplateStructIntf
{
public: