Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ClassHierarchyContext::Private Class Reference

Classes

struct  Cachable
 

Public Member Functions

 Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant tree () const
 
TemplateVariant fileName () const
 
TemplateVariant relPath () const
 
TemplateVariant highlight () const
 
TemplateVariant subhighlight () const
 
DotGfxHierarchyTablegetHierarchy () const
 
TemplateVariant diagrams () const
 
TemplateVariant title () const
 
TemplateVariant maxDepth () const
 
TemplateVariant preferredDepth () const
 

Private Attributes

SharedPtr< NestingContextm_classTree
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper< ClassHierarchyContext::Privates_inst
 

Detailed Description

Definition at line 5914 of file context.cpp.

Constructor & Destructor Documentation

ClassHierarchyContext::Private::Private ( )
inline

Definition at line 5917 of file context.cpp.

5918  {
5924  //%% ClassInheritance tree
5925  static bool init=FALSE;
5926  if (!init)
5927  {
5928  s_inst.addProperty("tree", &Private::tree);
5929  s_inst.addProperty("fileName", &Private::fileName);
5930  s_inst.addProperty("relPath", &Private::relPath);
5931  s_inst.addProperty("highlight", &Private::highlight);
5932  s_inst.addProperty("subhighlight", &Private::subhighlight);
5933  s_inst.addProperty("title", &Private::title);
5934  s_inst.addProperty("preferredDepth", &Private::preferredDepth);
5935  s_inst.addProperty("maxDepth", &Private::maxDepth);
5936  s_inst.addProperty("diagrams", &Private::diagrams);
5937  init=TRUE;
5938  }
5939  }
TemplateVariant tree() const
Definition: context.cpp:5944
static NestingContext * alloc(const NestingNodeContext *parent, int level)
Definition: context.h:536
static ClassSDict * hiddenClasses
Definition: doxygen.h:100
const bool FALSE
Definition: qglobal.h:370
TemplateVariant highlight() const
Definition: context.cpp:5956
TemplateVariant maxDepth() const
Definition: context.cpp:6004
init
Definition: train.py:42
SharedPtr< NestingContext > m_classTree
Definition: context.cpp:6023
TemplateVariant subhighlight() const
Definition: context.cpp:5960
void reset(T *p=0)
Definition: context.cpp:113
TemplateVariant preferredDepth() const
Definition: context.cpp:6013
void initClassHierarchy(ClassSDict *cl)
Definition: util.cpp:5211
TemplateVariant diagrams() const
Definition: context.cpp:5972
TemplateVariant fileName() const
Definition: context.cpp:5948
void addClassHierarchy(const ClassSDict &clDict, bool rootOnly)
Definition: context.cpp:6678
static ClassSDict * classSDict
Definition: doxygen.h:99
TemplateVariant relPath() const
Definition: context.cpp:5952
const bool TRUE
Definition: qglobal.h:371
TemplateVariant title() const
Definition: context.cpp:5992
static PropertyMapper< ClassHierarchyContext::Private > s_inst
Definition: context.cpp:6036

Member Function Documentation

TemplateVariant ClassHierarchyContext::Private::diagrams ( ) const
inline

Definition at line 5972 of file context.cpp.

5973  {
5974  if (!m_cache.diagrams)
5975  {
5977  DotGfxHierarchyTable *hierarchy = getHierarchy();
5978  if (hierarchy->subGraphs())
5979  {
5980  int id=0;
5981  QListIterator<DotNode> li(*hierarchy->subGraphs());
5982  DotNode *n;
5983  for (li.toFirst();(n=li.current());++li)
5984  {
5985  diagrams->append(InheritanceGraphContext::alloc(hierarchy,n,id++));
5986  }
5987  }
5988  m_cache.diagrams.reset(diagrams);
5989  }
5990  return m_cache.diagrams.get();
5991  }
static TemplateList * alloc()
Definition: template.cpp:420
static InheritanceGraphContext * alloc(DotGfxHierarchyTable *hierarchy, DotNode *n, int id)
Definition: context.h:430
Definition: dot.h:60
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
std::void_t< T > n
type * current() const
Definition: qlist.h:146
void reset(T *p=0)
Definition: context.cpp:113
const DotNodeList * subGraphs() const
Definition: dot.h:155
TemplateVariant diagrams() const
Definition: context.cpp:5972
DotGfxHierarchyTable * getHierarchy() const
Definition: context.cpp:5964
SharedPtr< TemplateList > diagrams
Definition: context.cpp:6032
T * get() const
Definition: context.cpp:111
TemplateVariant ClassHierarchyContext::Private::fileName ( ) const
inline

Definition at line 5948 of file context.cpp.

5949  {
5950  return "hierarchy";
5951  }
TemplateVariant ClassHierarchyContext::Private::get ( const char *  n) const
inline

Definition at line 5940 of file context.cpp.

5941  {
5942  return s_inst.get(this,n);
5943  }
std::void_t< T > n
static PropertyMapper< ClassHierarchyContext::Private > s_inst
Definition: context.cpp:6036
DotGfxHierarchyTable* ClassHierarchyContext::Private::getHierarchy ( ) const
inline

Definition at line 5964 of file context.cpp.

5965  {
5966  if (!m_cache.hierarchy)
5967  {
5969  }
5970  return m_cache.hierarchy.get();
5971  }
ScopedPtr< DotGfxHierarchyTable > hierarchy
Definition: context.cpp:6033
void reset(T *p=0)
Definition: context.cpp:92
T * get() const
Definition: context.cpp:90
TemplateVariant ClassHierarchyContext::Private::highlight ( ) const
inline

Definition at line 5956 of file context.cpp.

5957  {
5958  return "classes";
5959  }
TemplateVariant ClassHierarchyContext::Private::maxDepth ( ) const
inline

Definition at line 6004 of file context.cpp.

6005  {
6007  {
6010  }
6011  return m_cache.maxDepth;
6012  }
static int computeMaxDepth(const TemplateListIntf *list)
Definition: context.cpp:5840
SharedPtr< NestingContext > m_classTree
Definition: context.cpp:6023
T * get() const
Definition: context.cpp:111
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassHierarchyContext::Private::preferredDepth ( ) const
inline

Definition at line 6013 of file context.cpp.

6014  {
6016  {
6019  }
6020  return m_cache.preferredDepth;
6021  }
TemplateVariant maxDepth() const
Definition: context.cpp:6004
int toInt() const
Definition: template.cpp:222
SharedPtr< NestingContext > m_classTree
Definition: context.cpp:6023
T * get() const
Definition: context.cpp:111
static int computePreferredDepth(const TemplateListIntf *list, int maxDepth)
Definition: context.cpp:5880
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassHierarchyContext::Private::relPath ( ) const
inline

Definition at line 5952 of file context.cpp.

5953  {
5954  return "";
5955  }
TemplateVariant ClassHierarchyContext::Private::subhighlight ( ) const
inline

Definition at line 5960 of file context.cpp.

5961  {
5962  return "classhierarchy";
5963  }
TemplateVariant ClassHierarchyContext::Private::title ( ) const
inline

Definition at line 5992 of file context.cpp.

5993  {
5994  static bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL");
5995  if (vhdlOpt)
5996  {
5998  }
5999  else
6000  {
6001  return theTranslator->trClassHierarchy();
6002  }
6003  }
virtual QCString trClassHierarchy()=0
static QCString trDesignUnitHierarchy()
#define Config_getBool(val)
Definition: config.cpp:664
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassHierarchyContext::Private::tree ( ) const
inline

Definition at line 5944 of file context.cpp.

5945  {
5946  return m_classTree.get();
5947  }
SharedPtr< NestingContext > m_classTree
Definition: context.cpp:6023
T * get() const
Definition: context.cpp:111

Member Data Documentation

Cachable ClassHierarchyContext::Private::m_cache
mutableprivate

Definition at line 6035 of file context.cpp.

SharedPtr<NestingContext> ClassHierarchyContext::Private::m_classTree
private

Definition at line 6023 of file context.cpp.

PropertyMapper< ClassHierarchyContext::Private > ClassHierarchyContext::Private::s_inst
staticprivate

Definition at line 6036 of file context.cpp.


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