summaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-12-14 15:39:29 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-12-25 12:43:31 (GMT)
commitfe818bf8e3a154788a4a180068cfdfbbadd66ff6 (patch)
treec08545cd15e627b36eef1e0d0a7eb4fa0bb76437 /src/context.h
parent3ebc431569aa6566389f3f3fc00aae7b8a90e58b (diff)
downloadDoxygen-fe818bf8e3a154788a4a180068cfdfbbadd66ff6.zip
Doxygen-fe818bf8e3a154788a4a180068cfdfbbadd66ff6.tar.gz
Doxygen-fe818bf8e3a154788a4a180068cfdfbbadd66ff6.tar.bz2
Added graphical hierarchy support to template engine
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h30
1 files changed, 27 insertions, 3 deletions
diff --git a/src/context.h b/src/context.h
index b39ab40..6b5b810 100644
--- a/src/context.h
+++ b/src/context.h
@@ -51,6 +51,8 @@ struct MemberInfo;
class MemberGroup;
class MemberGroupSDict;
class MemberGroupList;
+class DotNode;
+class DotGfxHierarchyTable;
//----------------------------------------------------
@@ -419,6 +421,26 @@ class ClassIndexContext : public RefCountedContext, public TemplateStructIntf
//----------------------------------------------------
+class InheritanceGraphContext : public RefCountedContext, public TemplateStructIntf
+{
+ public:
+ static InheritanceGraphContext *alloc(DotGfxHierarchyTable *hierarchy,DotNode *n,int id)
+ { return new InheritanceGraphContext(hierarchy,n,id); }
+
+ // TemplateStructIntf methods
+ virtual TemplateVariant get(const char *name) const;
+ virtual int addRef() { return RefCountedContext::addRef(); }
+ virtual int release() { return RefCountedContext::release(); }
+
+ private:
+ InheritanceGraphContext(DotGfxHierarchyTable *hierarchy,DotNode *n,int id);
+ ~InheritanceGraphContext();
+ class Private;
+ Private *p;
+};
+
+//----------------------------------------------------
+
class ClassInheritanceNodeContext : public RefCountedContext, public TemplateStructIntf
{
public:
@@ -485,8 +507,8 @@ class NestingNodeContext : public RefCountedContext, public TemplateStructIntf
{
public:
static NestingNodeContext *alloc(const NestingNodeContext *parent,Definition *def,
- int index,int level,bool addClasses)
- { return new NestingNodeContext(parent,def,index,level,addClasses); }
+ int index,int level,bool addClasses,bool inherit,bool hideSuper)
+ { return new NestingNodeContext(parent,def,index,level,addClasses,inherit,hideSuper); }
QCString id() const;
@@ -497,7 +519,7 @@ class NestingNodeContext : public RefCountedContext, public TemplateStructIntf
private:
NestingNodeContext(const NestingNodeContext *parent,
- Definition *,int index,int level,bool addClasses);
+ Definition *,int index,int level,bool addClasses,bool inherit,bool hideSuper);
~NestingNodeContext();
class Private;
Private *p;
@@ -527,6 +549,8 @@ class NestingContext : public RefCountedContext, public TemplateListIntf
void addPages(const PageSDict &pages,bool rootOnly);
void addModules(const GroupSDict &modules);
void addModules(const GroupList &modules);
+ void addClassHierarchy(const ClassSDict &clDict,bool rootOnly);
+ void addDerivedClasses(const BaseClassList *bcl,bool hideSuper);
private:
NestingContext(const NestingNodeContext *parent,int level);