Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ClassContext::Private Class Reference
Inheritance diagram for ClassContext::Private:
DefinitionContext< ClassContext::Private >

Classes

struct  Cachable
 

Public Member Functions

 Private (ClassDef *cd)
 
virtual ~Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant title () const
 
TemplateVariant highlight () const
 
TemplateVariant subHighlight () const
 
TemplateVariant hasDetails () const
 
TemplateVariant generatedFromFiles () const
 
TemplateVariant usedFiles () const
 
DotClassGraphgetClassGraph () const
 
int numInheritanceNodes () const
 
TemplateVariant hasInheritanceDiagram () const
 
TemplateVariant inheritanceDiagram () const
 
DotClassGraphgetCollaborationGraph () const
 
TemplateVariant hasCollaborationDiagram () const
 
TemplateVariant collaborationDiagram () const
 
TemplateVariant includeInfo () const
 
TemplateVariant inherits () const
 
TemplateVariant inheritedBy () const
 
TemplateVariant getMemberList (SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
 
TemplateVariant unoIDLServices () const
 
TemplateVariant unoIDLInterfaces () const
 
TemplateVariant signals () const
 
TemplateVariant publicTypes () const
 
TemplateVariant publicMethods () const
 
TemplateVariant publicStaticMethods () const
 
TemplateVariant publicAttributes () const
 
TemplateVariant publicStaticAttributes () const
 
TemplateVariant publicSlots () const
 
TemplateVariant protectedTypes () const
 
TemplateVariant protectedMethods () const
 
TemplateVariant protectedStaticMethods () const
 
TemplateVariant protectedAttributes () const
 
TemplateVariant protectedStaticAttributes () const
 
TemplateVariant protectedSlots () const
 
TemplateVariant privateTypes () const
 
TemplateVariant privateSlots () const
 
TemplateVariant privateMethods () const
 
TemplateVariant privateStaticMethods () const
 
TemplateVariant privateAttributes () const
 
TemplateVariant privateStaticAttributes () const
 
TemplateVariant packageTypes () const
 
TemplateVariant packageMethods () const
 
TemplateVariant packageStaticMethods () const
 
TemplateVariant packageAttributes () const
 
TemplateVariant packageStaticAttributes () const
 
TemplateVariant properties () const
 
TemplateVariant events () const
 
TemplateVariant friends () const
 
TemplateVariant related () const
 
TemplateVariant detailedTypedefs () const
 
TemplateVariant detailedEnums () const
 
TemplateVariant detailedServices () const
 
TemplateVariant detailedInterfaces () const
 
TemplateVariant detailedConstructors () const
 
TemplateVariant detailedMethods () const
 
TemplateVariant detailedRelated () const
 
TemplateVariant detailedVariables () const
 
TemplateVariant detailedProperties () const
 
TemplateVariant detailedEvents () const
 
TemplateVariant classes () const
 
TemplateVariant innerClasses () const
 
TemplateVariant compoundType () const
 
void addTemplateDecls (Definition *d, TemplateList *tl) const
 
void addExamples (TemplateList *list) const
 
TemplateVariant templateDecls () const
 
TemplateVariant typeConstraints () const
 
TemplateVariant examples () const
 
void addMembers (ClassDef *cd, MemberListType lt) const
 
TemplateVariant members () const
 
TemplateVariant allMembersList () const
 
TemplateVariant allMembersFileName () const
 
TemplateVariant memberGroups () const
 
TemplateVariant additionalInheritedMembers () const
 
TemplateVariant isSimple () const
 
TemplateVariant categoryOf () const
 
- Public Member Functions inherited from DefinitionContext< ClassContext::Private >
 DefinitionContext (Definition *d)
 
void addBaseProperties (PropertyMapper< ClassContext::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

ClassDefm_classDef
 

Static Private Attributes

static PropertyMapper< ClassContext::Privates_inst
 

Detailed Description

Definition at line 1778 of file context.cpp.

Constructor & Destructor Documentation

ClassContext::Private::Private ( ClassDef cd)
inline

Definition at line 1781 of file context.cpp.

1782  m_classDef(cd)
1783  {
1784  static bool init=FALSE;
1785  if (!init)
1786  {
1788  s_inst.addProperty("title", &Private::title);
1789  s_inst.addProperty("highlight", &Private::highlight);
1790  s_inst.addProperty("subhighlight", &Private::subHighlight);
1791  s_inst.addProperty("hasDetails", &Private::hasDetails);
1792  s_inst.addProperty("generatedFromFiles", &Private::generatedFromFiles);
1793  s_inst.addProperty("usedFiles", &Private::usedFiles);
1794  s_inst.addProperty("hasInheritanceDiagram", &Private::hasInheritanceDiagram);
1795  s_inst.addProperty("inheritanceDiagram", &Private::inheritanceDiagram);
1796  s_inst.addProperty("hasCollaborationDiagram", &Private::hasCollaborationDiagram);
1797  s_inst.addProperty("collaborationDiagram", &Private::collaborationDiagram);
1798  s_inst.addProperty("includeInfo", &Private::includeInfo);
1799  s_inst.addProperty("inherits", &Private::inherits);
1800  s_inst.addProperty("inheritedBy", &Private::inheritedBy);
1801  s_inst.addProperty("unoIDLServices", &Private::unoIDLServices);
1802  s_inst.addProperty("unoIDLInterfaces", &Private::unoIDLInterfaces);
1803  s_inst.addProperty("signals", &Private::signals);
1804  s_inst.addProperty("publicTypes", &Private::publicTypes);
1805  s_inst.addProperty("publicMethods", &Private::publicMethods);
1806  s_inst.addProperty("publicStaticMethods", &Private::publicStaticMethods);
1807  s_inst.addProperty("publicAttributes", &Private::publicAttributes);
1808  s_inst.addProperty("publicStaticAttributes", &Private::publicStaticAttributes);
1809  s_inst.addProperty("publicSlots", &Private::publicSlots);
1810  s_inst.addProperty("protectedTypes", &Private::protectedTypes);
1811  s_inst.addProperty("protectedMethods", &Private::protectedMethods);
1812  s_inst.addProperty("protectedStaticMethods", &Private::protectedStaticMethods);
1813  s_inst.addProperty("protectedAttributes", &Private::protectedAttributes);
1814  s_inst.addProperty("protectedStaticAttributes", &Private::protectedStaticAttributes);
1815  s_inst.addProperty("protectedSlots", &Private::protectedSlots);
1816  s_inst.addProperty("privateTypes", &Private::privateTypes);
1817  s_inst.addProperty("privateMethods", &Private::privateMethods);
1818  s_inst.addProperty("privateStaticMethods", &Private::privateStaticMethods);
1819  s_inst.addProperty("privateAttributes", &Private::privateAttributes);
1820  s_inst.addProperty("privateStaticAttributes", &Private::privateStaticAttributes);
1821  s_inst.addProperty("privateSlots", &Private::privateSlots);
1822  s_inst.addProperty("packageTypes", &Private::packageTypes);
1823  s_inst.addProperty("packageMethods", &Private::packageMethods);
1824  s_inst.addProperty("packageStaticMethods", &Private::packageStaticMethods);
1825  s_inst.addProperty("packageAttributes", &Private::packageAttributes);
1826  s_inst.addProperty("packageStaticAttributes", &Private::packageStaticAttributes);
1827  s_inst.addProperty("properties", &Private::properties);
1828  s_inst.addProperty("events", &Private::events);
1829  s_inst.addProperty("friends", &Private::friends);
1830  s_inst.addProperty("related", &Private::related);
1831  s_inst.addProperty("detailedTypedefs", &Private::detailedTypedefs);
1832  s_inst.addProperty("detailedEnums", &Private::detailedEnums);
1833  s_inst.addProperty("detailedServices", &Private::detailedServices);
1834  s_inst.addProperty("detailedInterfaces", &Private::detailedInterfaces);
1835  s_inst.addProperty("detailedConstructors", &Private::detailedConstructors);
1836  s_inst.addProperty("detailedMethods", &Private::detailedMethods);
1837  s_inst.addProperty("detailedRelated", &Private::detailedRelated);
1838  s_inst.addProperty("detailedVariables", &Private::detailedVariables);
1839  s_inst.addProperty("detailedProperties", &Private::detailedProperties);
1840  s_inst.addProperty("detailedEvents", &Private::detailedEvents);
1841  s_inst.addProperty("classes", &Private::classes);
1842  s_inst.addProperty("innerClasses", &Private::innerClasses);
1843  s_inst.addProperty("compoundType", &Private::compoundType);
1844  s_inst.addProperty("templateDecls", &Private::templateDecls);
1845  s_inst.addProperty("typeConstraints", &Private::typeConstraints);
1846  s_inst.addProperty("examples", &Private::examples);
1847  s_inst.addProperty("members", &Private::members);
1848  s_inst.addProperty("allMembersList", &Private::allMembersList);
1849  s_inst.addProperty("allMembersFileName", &Private::allMembersFileName);
1850  s_inst.addProperty("memberGroups", &Private::memberGroups);
1851  s_inst.addProperty("additionalInheritedMembers",&Private::additionalInheritedMembers);
1852  s_inst.addProperty("isSimple", &Private::isSimple);
1853  s_inst.addProperty("categoryOf", &Private::categoryOf);
1854  init=TRUE;
1855  }
1856  if (!cd->cookie()) { cd->setCookie(new ClassContext::Private::Cachable(cd)); }
1857  }
TemplateVariant detailedConstructors() const
Definition: context.cpp:2244
TemplateVariant examples() const
Definition: context.cpp:2382
TemplateVariant packageAttributes() const
Definition: context.cpp:2204
Cookie * cookie() const
Definition: definition.h:352
TemplateVariant inherits() const
Definition: context.cpp:2066
TemplateVariant innerClasses() const
Definition: context.cpp:2290
TemplateVariant publicMethods() const
Definition: context.cpp:2120
TemplateVariant properties() const
Definition: context.cpp:2212
TemplateVariant protectedSlots() const
Definition: context.cpp:2164
TemplateVariant detailedTypedefs() const
Definition: context.cpp:2228
TemplateVariant privateAttributes() const
Definition: context.cpp:2184
TemplateVariant title() const
Definition: context.cpp:1863
TemplateVariant typeConstraints() const
Definition: context.cpp:2369
TemplateVariant allMembersFileName() const
Definition: context.cpp:2465
TemplateVariant packageStaticMethods() const
Definition: context.cpp:2200
TemplateVariant members() const
Definition: context.cpp:2410
TemplateVariant hasCollaborationDiagram() const
Definition: context.cpp:2007
TemplateVariant categoryOf() const
Definition: context.cpp:2532
TemplateVariant packageMethods() const
Definition: context.cpp:2196
TemplateVariant protectedAttributes() const
Definition: context.cpp:2156
TemplateVariant classes() const
Definition: context.cpp:2268
TemplateVariant privateStaticAttributes() const
Definition: context.cpp:2188
TemplateVariant allMembersList() const
Definition: context.cpp:2448
const bool FALSE
Definition: qglobal.h:370
TemplateVariant detailedVariables() const
Definition: context.cpp:2256
TemplateVariant detailedProperties() const
Definition: context.cpp:2260
init
Definition: train.py:42
TemplateVariant publicTypes() const
Definition: context.cpp:2116
TemplateVariant memberGroups() const
Definition: context.cpp:2469
TemplateVariant publicSlots() const
Definition: context.cpp:2140
TemplateVariant subHighlight() const
Definition: context.cpp:1871
TemplateVariant unoIDLInterfaces() const
Definition: context.cpp:2108
TemplateVariant isSimple() const
Definition: context.cpp:2528
TemplateVariant detailedInterfaces() const
Definition: context.cpp:2240
TemplateVariant hasDetails() const
Definition: context.cpp:1875
TemplateVariant detailedServices() const
Definition: context.cpp:2236
TemplateVariant privateStaticMethods() const
Definition: context.cpp:2180
TemplateVariant additionalInheritedMembers() const
Definition: context.cpp:2485
TemplateVariant signals() const
Definition: context.cpp:2112
TemplateVariant usedFiles() const
Definition: context.cpp:1883
void setCookie(Cookie *cookie)
Definition: definition.h:351
TemplateVariant highlight() const
Definition: context.cpp:1867
void addBaseProperties(PropertyMapper< ClassContext::Private > &inst)
Definition: context.cpp:1364
TemplateVariant detailedEvents() const
Definition: context.cpp:2264
TemplateVariant detailedRelated() const
Definition: context.cpp:2252
TemplateVariant collaborationDiagram() const
Definition: context.cpp:2012
TemplateVariant includeInfo() const
Definition: context.cpp:2050
TemplateVariant publicStaticAttributes() const
Definition: context.cpp:2136
TemplateVariant hasInheritanceDiagram() const
Definition: context.cpp:1910
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant protectedStaticMethods() const
Definition: context.cpp:2152
TemplateVariant unoIDLServices() const
Definition: context.cpp:2104
TemplateVariant detailedMethods() const
Definition: context.cpp:2248
TemplateVariant publicAttributes() const
Definition: context.cpp:2132
static PropertyMapper< ClassContext::Private > s_inst
Definition: context.cpp:2621
TemplateVariant inheritedBy() const
Definition: context.cpp:2075
TemplateVariant friends() const
Definition: context.cpp:2220
TemplateVariant packageTypes() const
Definition: context.cpp:2192
TemplateVariant events() const
Definition: context.cpp:2216
TemplateVariant protectedMethods() const
Definition: context.cpp:2148
TemplateVariant templateDecls() const
Definition: context.cpp:2358
TemplateVariant related() const
Definition: context.cpp:2224
TemplateVariant privateMethods() const
Definition: context.cpp:2176
TemplateVariant publicStaticMethods() const
Definition: context.cpp:2126
TemplateVariant privateTypes() const
Definition: context.cpp:2168
TemplateVariant protectedStaticAttributes() const
Definition: context.cpp:2160
TemplateVariant detailedEnums() const
Definition: context.cpp:2232
TemplateVariant packageStaticAttributes() const
Definition: context.cpp:2208
TemplateVariant privateSlots() const
Definition: context.cpp:2172
TemplateVariant compoundType() const
Definition: context.cpp:2316
TemplateVariant protectedTypes() const
Definition: context.cpp:2144
const bool TRUE
Definition: qglobal.h:371
TemplateVariant inheritanceDiagram() const
Definition: context.cpp:1927
TemplateVariant generatedFromFiles() const
Definition: context.cpp:1879
virtual ClassContext::Private::~Private ( )
inlinevirtual

Definition at line 1858 of file context.cpp.

1858 {}

Member Function Documentation

void ClassContext::Private::addExamples ( TemplateList list) const
inline

Definition at line 2339 of file context.cpp.

2340  {
2341  if (m_classDef->hasExamples())
2342  {
2344  Example *ex;
2345  for (it.toFirst();(ex=it.current());++it)
2346  {
2348  s->set("text",ex->name);
2349  s->set("isLinkable",TRUE);
2350  s->set("anchor",ex->anchor);
2351  s->set("fileName",ex->file);
2352  s->set("isReference",FALSE);
2353  s->set("externalReference","");
2354  list->append(s);
2355  }
2356  }
2357  }
virtual void set(const char *name, const TemplateVariant &v)
Definition: template.cpp:275
const ExampleSDict * exampleList() const
Definition: classdef.cpp:4733
const bool FALSE
Definition: qglobal.h:370
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
bool hasExamples() const
Definition: classdef.cpp:2521
ClassDef * m_classDef
Definition: context.cpp:2550
friend class Iterator
Definition: sortdict.h:289
Default implementation of a context value of type struct.
Definition: template.h:426
static QCString * s
Definition: config.cpp:1042
const bool TRUE
Definition: qglobal.h:371
static TemplateStruct * alloc()
Definition: template.cpp:294
TemplateVariant ClassContext::Private::additionalInheritedMembers ( ) const
inline

Definition at line 2485 of file context.cpp.

2486  {
2487  Cachable &cache = getCache();
2488  if (!cache.additionalInheritedMembers)
2489  {
2524  cache.additionalInheritedMembers.reset(ctx);
2525  }
2526  return cache.additionalInheritedMembers.get();
2527  }
virtual QCString trPublicMembers()=0
virtual QCString trPackageTypes()=0
virtual QCString trStaticProtectedMembers()=0
virtual QCString trStaticPrivateMembers()=0
virtual QCString trStaticPackageAttribs()=0
virtual QCString trInstanceMethods()=0
virtual QCString trClassMethods()=0
virtual QCString trRelatedFunctions()=0
virtual QCString trPrivateTypes()=0
virtual QCString trProtectedMembers()=0
virtual QCString trPublicTypes()=0
Cachable & getCache() const
Definition: context.cpp:2615
virtual QCString trStaticPublicMembers()=0
virtual QCString trProtectedSlots()=0
virtual QCString trStaticPrivateAttribs()=0
SrcLangExt getLanguage() const
virtual QCString trInterfaces()=0
virtual QCString trSignals()=0
virtual QCString trPublicSlots()=0
ClassDef * m_classDef
Definition: context.cpp:2550
virtual QCString trPrivateSlots()=0
virtual QCString trProtectedTypes()=0
virtual QCString trPackageAttribs()=0
virtual QCString trPackageMembers()=0
virtual QCString trEvents()=0
virtual QCString trPrivateAttribs()=0
virtual QCString trServices()=0
void addMemberList(ClassDef *cd, MemberListType lt, const QCString &title, bool additionalList=TRUE)
Definition: context.cpp:9209
virtual QCString trStaticPackageMembers()=0
virtual QCString trProtectedAttribs()=0
virtual QCString trStaticProtectedAttribs()=0
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trProperties()=0
virtual QCString trStaticPublicAttribs()=0
virtual QCString trPublicAttribs()=0
static InheritedMemberInfoListContext * alloc()
Definition: context.h:1094
virtual QCString trPrivateMembers()=0
void ClassContext::Private::addMembers ( ClassDef cd,
MemberListType  lt 
) const
inline

Definition at line 2393 of file context.cpp.

2394  {
2395  MemberList *ml = cd->getMemberList(lt);
2396  if (ml)
2397  {
2398  Cachable &cache = getCache();
2399  MemberListIterator li(*ml);
2400  const MemberDef *md;
2401  for (li.toFirst();(md=li.current());++li)
2402  {
2403  if (md->isBriefSectionVisible())
2404  {
2405  cache.allMembers.append(md);
2406  }
2407  }
2408  }
2409  }
Cachable & getCache() const
Definition: context.cpp:2615
bool isBriefSectionVisible() const
Definition: memberdef.cpp:1289
MemberList * getMemberList(MemberListType lt)
Definition: classdef.cpp:4021
void ClassContext::Private::addTemplateDecls ( Definition d,
TemplateList tl 
) const
inline

Definition at line 2320 of file context.cpp.

2321  {
2323  {
2325  if (parent)
2326  {
2327  addTemplateDecls(parent,tl);
2328  }
2329  ClassDef *cd=(ClassDef *)d;
2330  if (cd->templateArguments())
2331  {
2333  // since a TemplateVariant does take ownership of the object, we add it
2334  // a separate list just to be able to delete it and avoid a memory leak
2335  tl->append(al);
2336  }
2337  }
2338  }
ArgumentList * templateArguments() const
Definition: classdef.cpp:4419
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
virtual DefType definitionType() const =0
static ArgumentListContext * alloc()
Definition: context.h:1161
void addTemplateDecls(Definition *d, TemplateList *tl) const
Definition: context.cpp:2320
virtual Definition * getOuterScope() const
def parent(G, child, parent_type)
Definition: graph.py:67
TemplateVariant ClassContext::Private::allMembersFileName ( ) const
inline

Definition at line 2465 of file context.cpp.

2466  {
2468  }
QCString getMemberListFileName() const
Definition: classdef.cpp:307
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::allMembersList ( ) const
inline

Definition at line 2448 of file context.cpp.

2449  {
2450  Cachable &cache = getCache();
2451  if (!cache.allMembersList)
2452  {
2454  {
2456  cache.allMembersList.reset(ml);
2457  }
2458  else
2459  {
2460  cache.allMembersList.reset(AllMembersListContext::alloc());
2461  }
2462  }
2463  return cache.allMembersList.get();
2464  }
MemberNameInfoSDict * memberNameInfoSDict() const
Definition: classdef.cpp:4409
Cachable & getCache() const
Definition: context.cpp:2615
static AllMembersListContext * alloc()
Definition: context.h:1116
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::categoryOf ( ) const
inline

Definition at line 2532 of file context.cpp.

2533  {
2534  Cachable &cache = getCache();
2535  if (!cache.categoryOf && m_classDef->categoryOf())
2536  {
2537  cache.categoryOf.reset(ClassContext::alloc(m_classDef->categoryOf()));
2538  }
2539  if (cache.categoryOf)
2540  {
2541  return cache.categoryOf.get();
2542  }
2543  else
2544  {
2545  return TemplateVariant(FALSE);
2546  }
2547  }
const bool FALSE
Definition: qglobal.h:370
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
ClassDef * categoryOf() const
Definition: classdef.cpp:4514
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant ClassContext::Private::classes ( ) const
inline

Definition at line 2268 of file context.cpp.

2269  {
2270  Cachable &cache = getCache();
2271  if (!cache.classes)
2272  {
2273  TemplateList *classList = TemplateList::alloc();
2274  if (m_classDef->getClassSDict())
2275  {
2277  ClassDef *cd;
2278  for (sdi.toFirst();(cd=sdi.current());++sdi)
2279  {
2280  if (cd->visibleInParentsDeclList())
2281  {
2282  classList->append(ClassContext::alloc(cd));
2283  }
2284  }
2285  }
2286  cache.classes.reset(classList);
2287  }
2288  return cache.classes.get();
2289  }
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
ClassSDict * getClassSDict()
Definition: classdef.cpp:4389
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
friend class Iterator
Definition: sortdict.h:289
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant ClassContext::Private::collaborationDiagram ( ) const
inline

Definition at line 2012 of file context.cpp.

2013  {
2014  static bool haveDot = Config_getBool("HAVE_DOT");
2015  QGString result;
2016  if (haveDot)
2017  {
2019  FTextStream t(&result);
2020  switch (g_globals.outputFormat)
2021  {
2023  {
2028  );
2029  }
2030  break;
2032  {
2037  );
2038  }
2039  break;
2040  // TODO: support other generators
2041  default:
2042  err("context.cpp: output format not yet supported");
2043  break;
2044  }
2046  }
2047  return TemplateVariant(result.data(),TRUE);
2048  }
char * data() const
Definition: qgstring.h:42
static QCString result
int dynSectionId
Definition: context.cpp:69
static QCString htmlFileExtension
Definition: doxygen.h:130
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
QCString outputDir
Definition: context.cpp:70
DotClassGraph * getCollaborationGraph() const
Definition: context.cpp:1998
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool TBRank=TRUE, bool imageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3133
Definition: dot.h:43
ClassDef * m_classDef
Definition: context.cpp:2550
#define Config_getBool(val)
Definition: config.cpp:664
Definition: dot.h:42
void err(const char *fmt,...)
Definition: message.cpp:226
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
QCString getOutputFileBase() const
Definition: classdef.cpp:3533
ContextOutputFormat outputFormat
Definition: context.cpp:71
struct ContextGlobals g_globals
char portable_pathSeparator()
Definition: portable.cpp:355
Definition: dot.h:42
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::compoundType ( ) const
inline

Definition at line 2316 of file context.cpp.

2317  {
2318  return m_classDef->compoundTypeString();
2319  }
QCString compoundTypeString() const
Definition: classdef.cpp:3499
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::detailedConstructors ( ) const
inline

Definition at line 2244 of file context.cpp.

2245  {
2247  }
TemplateVariant detailedConstructors() const
Definition: context.cpp:2244
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trConstructorDocumentation()=0
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedEnums ( ) const
inline

Definition at line 2232 of file context.cpp.

2233  {
2235  }
virtual QCString trMemberEnumerationDocumentation()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant detailedEnums() const
Definition: context.cpp:2232
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedEvents ( ) const
inline

Definition at line 2264 of file context.cpp.

2265  {
2267  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant detailedEvents() const
Definition: context.cpp:2264
virtual QCString trEventDocumentation()=0
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedInterfaces ( ) const
inline

Definition at line 2240 of file context.cpp.

2241  {
2243  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant detailedInterfaces() const
Definition: context.cpp:2240
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trInterfaces()=0
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedMethods ( ) const
inline

Definition at line 2248 of file context.cpp.

2249  {
2251  }
virtual QCString trMemberFunctionDocumentation()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant detailedMethods() const
Definition: context.cpp:2248
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedProperties ( ) const
inline

Definition at line 2260 of file context.cpp.

2261  {
2263  }
TemplateVariant detailedProperties() const
Definition: context.cpp:2260
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trPropertyDocumentation()=0
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedRelated ( ) const
inline

Definition at line 2252 of file context.cpp.

2253  {
2255  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant detailedRelated() const
Definition: context.cpp:2252
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trRelatedFunctionDocumentation()=0
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedServices ( ) const
inline

Definition at line 2236 of file context.cpp.

2237  {
2239  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant detailedServices() const
Definition: context.cpp:2236
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trServices()=0
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedTypedefs ( ) const
inline

Definition at line 2228 of file context.cpp.

2229  {
2231  }
TemplateVariant detailedTypedefs() const
Definition: context.cpp:2228
virtual QCString trMemberTypedefDocumentation()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::detailedVariables ( ) const
inline

Definition at line 2256 of file context.cpp.

2257  {
2259  }
TemplateVariant detailedVariables() const
Definition: context.cpp:2256
virtual QCString trMemberDataDocumentation()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
TemplateVariant ClassContext::Private::events ( ) const
inline

Definition at line 2216 of file context.cpp.

2217  {
2219  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant events() const
Definition: context.cpp:2216
virtual QCString trEvents()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::examples ( ) const
inline

Definition at line 2382 of file context.cpp.

2383  {
2384  Cachable &cache = getCache();
2385  if (!cache.examples)
2386  {
2387  TemplateList *exampleList = TemplateList::alloc();
2388  addExamples(exampleList);
2389  cache.examples.reset(exampleList);
2390  }
2391  return cache.examples.get();
2392  }
static TemplateList * alloc()
Definition: template.cpp:420
Default implementation of a context value of type list.
Definition: template.h:376
Cachable & getCache() const
Definition: context.cpp:2615
void addExamples(TemplateList *list) const
Definition: context.cpp:2339
TemplateVariant ClassContext::Private::friends ( ) const
inline

Definition at line 2220 of file context.cpp.

2221  {
2223  }
virtual QCString trFriends()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant friends() const
Definition: context.cpp:2220
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::generatedFromFiles ( ) const
inline

Definition at line 1879 of file context.cpp.

1880  {
1881  return m_classDef->generatedFromFiles();
1882  }
ClassDef * m_classDef
Definition: context.cpp:2550
QCString generatedFromFiles() const
Definition: classdef.cpp:1053
TemplateVariant ClassContext::Private::get ( const char *  n) const
inline

Definition at line 1859 of file context.cpp.

1860  {
1861  return s_inst.get(this,n);
1862  }
std::void_t< T > n
static PropertyMapper< ClassContext::Private > s_inst
Definition: context.cpp:2621
Cachable& ClassContext::Private::getCache ( ) const
inlineprivate

Definition at line 2615 of file context.cpp.

2616  {
2617  Cachable *c = static_cast<Cachable*>(m_classDef->cookie());
2618  assert(c!=0);
2619  return *c;
2620  }
Cookie * cookie() const
Definition: definition.h:352
ClassDef * m_classDef
Definition: context.cpp:2550
DotClassGraph* ClassContext::Private::getClassGraph ( ) const
inline

Definition at line 1892 of file context.cpp.

1893  {
1894  Cachable &cache = getCache();
1895  if (!cache.classGraph)
1896  {
1897  cache.classGraph.reset(new DotClassGraph(m_classDef,DotNode::Inheritance));
1898  }
1899  return cache.classGraph.get();
1900  }
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
DotClassGraph* ClassContext::Private::getCollaborationGraph ( ) const
inline

Definition at line 1998 of file context.cpp.

1999  {
2000  Cachable &cache = getCache();
2001  if (!cache.collaborationGraph)
2002  {
2003  cache.collaborationGraph.reset(new DotClassGraph(m_classDef,DotNode::Collaboration));
2004  }
2005  return cache.collaborationGraph.get();
2006  }
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::getMemberList ( SharedPtr< MemberListInfoContext > &  list,
MemberListType  type,
const char *  title,
bool  detailed = FALSE 
) const
inline

Definition at line 2084 of file context.cpp.

2086  {
2087  if (!list)
2088  {
2090  if (ml)
2091  {
2093  }
2094  }
2095  if (list)
2096  {
2097  return list.get();
2098  }
2099  else
2100  {
2101  return TemplateVariant(FALSE);
2102  }
2103  }
TemplateVariant title() const
Definition: context.cpp:1863
const bool FALSE
Definition: qglobal.h:370
static MemberListInfoContext * alloc(Definition *def, const QCString &relPath, const MemberList *ml, const QCString &title, const QCString &subtitle=QCString())
Definition: context.h:1031
ClassDef * m_classDef
Definition: context.cpp:2550
void reset(T *p=0)
Definition: context.cpp:113
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
T * get() const
Definition: context.cpp:111
MemberList * getMemberList(MemberListType lt)
Definition: classdef.cpp:4021
TemplateVariant ClassContext::Private::hasCollaborationDiagram ( ) const
inline

Definition at line 2007 of file context.cpp.

2008  {
2009  static bool haveDot = Config_getBool("HAVE_DOT");
2010  return haveDot && !getCollaborationGraph()->isTrivial();
2011  }
DotClassGraph * getCollaborationGraph() const
Definition: context.cpp:1998
#define Config_getBool(val)
Definition: config.cpp:664
bool isTrivial() const
Definition: dot.cpp:2988
TemplateVariant ClassContext::Private::hasDetails ( ) const
inline

Definition at line 1875 of file context.cpp.

1876  {
1878  }
bool hasDetailedDescription() const
Definition: classdef.cpp:1007
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::hasInheritanceDiagram ( ) const
inline

Definition at line 1910 of file context.cpp.

1911  {
1912  bool result=FALSE;
1913  static bool haveDot = Config_getBool("HAVE_DOT");
1914  static bool classDiagrams = Config_getBool("CLASS_DIAGRAMS");
1915  static bool classGraph = Config_getBool("CLASS_GRAPH");
1916  if (haveDot && (classDiagrams || classGraph))
1917  {
1918  DotClassGraph *cg = getClassGraph();
1919  result = !cg->isTrivial() && !cg->isTooBig();
1920  }
1921  else if (classDiagrams)
1922  {
1923  result = numInheritanceNodes()>0;
1924  }
1925  return result;
1926  }
static QCString result
const bool FALSE
Definition: qglobal.h:370
int numInheritanceNodes() const
Definition: context.cpp:1901
#define Config_getBool(val)
Definition: config.cpp:664
bool isTrivial() const
Definition: dot.cpp:2988
bool isTooBig() const
Definition: dot.cpp:2997
DotClassGraph * getClassGraph() const
Definition: context.cpp:1892
TemplateVariant ClassContext::Private::highlight ( ) const
inline

Definition at line 1867 of file context.cpp.

1868  {
1869  return TemplateVariant("classes");
1870  }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant ClassContext::Private::includeInfo ( ) const
inline

Definition at line 2050 of file context.cpp.

2051  {
2052  Cachable &cache = getCache();
2053  if (!cache.includeInfo && m_classDef->includeInfo())
2054  {
2055  cache.includeInfo.reset(IncludeInfoContext::alloc(m_classDef->includeInfo(),m_classDef->getLanguage()));
2056  }
2057  if (cache.includeInfo)
2058  {
2059  return cache.includeInfo.get();
2060  }
2061  else
2062  {
2063  return TemplateVariant(FALSE);
2064  }
2065  }
IncludeInfo * includeInfo() const
Definition: classdef.cpp:4449
const bool FALSE
Definition: qglobal.h:370
Cachable & getCache() const
Definition: context.cpp:2615
SrcLangExt getLanguage() const
ClassDef * m_classDef
Definition: context.cpp:2550
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
static IncludeInfoContext * alloc(const IncludeInfo *info, SrcLangExt lang)
Definition: context.h:213
TemplateVariant ClassContext::Private::inheritanceDiagram ( ) const
inline

Definition at line 1927 of file context.cpp.

1928  {
1929  QGString result;
1930  static bool haveDot = Config_getBool("HAVE_DOT");
1931  static bool classDiagrams = Config_getBool("CLASS_DIAGRAMS");
1932  static bool classGraph = Config_getBool("CLASS_GRAPH");
1933  if (haveDot && (classDiagrams || classGraph))
1934  {
1935  DotClassGraph *cg = getClassGraph();
1936  FTextStream t(&result);
1937  switch (g_globals.outputFormat)
1938  {
1940  {
1945  );
1946  }
1947  break;
1949  {
1954  );
1955  }
1956  break;
1957  // TODO: support other generators
1958  default:
1959  err("context.cpp: output format not yet supported");
1960  break;
1961  }
1963  }
1964  else if (classDiagrams)
1965  {
1967  FTextStream t(&result);
1968  switch (g_globals.outputFormat)
1969  {
1971  {
1973  t << "<div class=\"center\">" << endl;
1974  t << "<img src=\"";
1976  t << ".png\" usemap=\"#" << convertToId(name) << "_map\" alt=\"\"/>" << endl;
1977  t << "<map id=\"" << convertToId(name) << "_map\" name=\"" << name << "_map\">" << endl;
1978  d.writeImage(t,g_globals.outputDir,
1979  relPathAsString(),
1981  t << "</div>";
1982  }
1983  break;
1985  {
1987  }
1988  break;
1989  // TODO: support other generators
1990  default:
1991  err("context.cpp: output format not yet supported");
1992  break;
1993  }
1995  }
1996  return TemplateVariant(result.data(),TRUE);
1997  }
char * data() const
Definition: qgstring.h:42
static QCString result
int dynSectionId
Definition: context.cpp:69
static QCString htmlFileExtension
Definition: doxygen.h:130
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
QCString displayName(bool includeScope=TRUE) const
Definition: classdef.cpp:312
QCString outputDir
Definition: context.cpp:70
QCString convertToId(const char *s)
Definition: util.cpp:5685
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool TBRank=TRUE, bool imageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3133
Definition: dot.h:43
QCString convertToHtml(const char *s, bool keepEntities)
Definition: util.cpp:5746
ClassDef * m_classDef
Definition: context.cpp:2550
#define Config_getBool(val)
Definition: config.cpp:664
Definition: dot.h:42
void err(const char *fmt,...)
Definition: message.cpp:226
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
QCString getOutputFileBase() const
Definition: classdef.cpp:3533
ContextOutputFormat outputFormat
Definition: context.cpp:71
struct ContextGlobals g_globals
char portable_pathSeparator()
Definition: portable.cpp:355
Definition: dot.h:42
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
DotClassGraph * getClassGraph() const
Definition: context.cpp:1892
TemplateVariant ClassContext::Private::inheritedBy ( ) const
inline

Definition at line 2075 of file context.cpp.

2076  {
2077  Cachable &cache = getCache();
2078  if (!cache.inheritedByList)
2079  {
2080  cache.inheritedByList.reset(InheritanceListContext::alloc(m_classDef->subClasses(),FALSE));
2081  }
2082  return cache.inheritedByList.get();
2083  }
BaseClassList * subClasses() const
Definition: classdef.cpp:4404
const bool FALSE
Definition: qglobal.h:370
static InheritanceListContext * alloc(const BaseClassList *list, bool baseClasses)
Definition: context.h:932
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::inherits ( ) const
inline

Definition at line 2066 of file context.cpp.

2067  {
2068  Cachable &cache = getCache();
2069  if (!cache.inheritsList)
2070  {
2071  cache.inheritsList.reset(InheritanceListContext::alloc(m_classDef->baseClasses(),TRUE));
2072  }
2073  return cache.inheritsList.get();
2074  }
static InheritanceListContext * alloc(const BaseClassList *list, bool baseClasses)
Definition: context.h:932
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
const bool TRUE
Definition: qglobal.h:371
BaseClassList * baseClasses() const
Definition: classdef.cpp:4399
TemplateVariant ClassContext::Private::innerClasses ( ) const
inline

Definition at line 2290 of file context.cpp.

2291  {
2292  Cachable &cache = getCache();
2293  if (!cache.innerClasses)
2294  {
2295  TemplateList *classList = TemplateList::alloc();
2296  if (m_classDef->getClassSDict())
2297  {
2299  ClassDef *cd;
2300  for (sdi.toFirst();(cd=sdi.current());++sdi)
2301  {
2302  if (cd->name().find('@')==-1 &&
2303  cd->isLinkableInProject() &&
2304  cd->isEmbeddedInOuterScope() &&
2305  cd->partOfGroups()==0
2306  )
2307  {
2308  classList->append(ClassContext::alloc(cd));
2309  }
2310  }
2311  }
2312  cache.innerClasses.reset(classList);
2313  }
2314  return cache.innerClasses.get();
2315  }
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
ClassSDict * getClassSDict()
Definition: classdef.cpp:4389
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
friend class Iterator
Definition: sortdict.h:289
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant ClassContext::Private::isSimple ( ) const
inline

Definition at line 2528 of file context.cpp.

2529  {
2530  return m_classDef->isSimple();
2531  }
bool isSimple() const
Definition: classdef.cpp:4584
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::memberGroups ( ) const
inline

Definition at line 2469 of file context.cpp.

2470  {
2471  Cachable &cache = getCache();
2472  if (!cache.memberGroups)
2473  {
2475  {
2477  }
2478  else
2479  {
2480  cache.memberGroups.reset(MemberGroupListContext::alloc());
2481  }
2482  }
2483  return cache.memberGroups.get();
2484  }
bool subGrouping() const
Definition: classdef.cpp:4738
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
MemberGroupSDict * getMemberGroupSDict() const
Definition: classdef.cpp:4524
static MemberGroupListContext * alloc()
Definition: context.h:1002
TemplateVariant ClassContext::Private::members ( ) const
inline

Definition at line 2410 of file context.cpp.

2411  {
2412  Cachable &cache = getCache();
2413  if (!cache.members)
2414  {
2444  cache.members.reset(MemberListContext::alloc(&cache.allMembers));
2445  }
2446  return cache.members.get();
2447  }
Cachable & getCache() const
Definition: context.cpp:2615
static MemberListContext * alloc()
Definition: context.h:954
ClassDef * m_classDef
Definition: context.cpp:2550
void addMembers(ClassDef *cd, MemberListType lt) const
Definition: context.cpp:2393
int ClassContext::Private::numInheritanceNodes ( ) const
inline

Definition at line 1901 of file context.cpp.

1902  {
1903  Cachable &cache = getCache();
1904  if (cache.inheritanceNodes==-1)
1905  {
1906  cache.inheritanceNodes=m_classDef->countInheritanceNodes();
1907  }
1908  return cache.inheritanceNodes>0;
1909  }
int countInheritanceNodes()
Definition: classdef.cpp:1156
Cachable & getCache() const
Definition: context.cpp:2615
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::packageAttributes ( ) const
inline

Definition at line 2204 of file context.cpp.

2205  {
2207  }
TemplateVariant packageAttributes() const
Definition: context.cpp:2204
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trPackageAttribs()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::packageMethods ( ) const
inline

Definition at line 2196 of file context.cpp.

2197  {
2199  }
TemplateVariant packageMethods() const
Definition: context.cpp:2196
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trPackageMembers()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::packageStaticAttributes ( ) const
inline

Definition at line 2208 of file context.cpp.

2209  {
2211  }
virtual QCString trStaticPackageAttribs()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant packageStaticAttributes() const
Definition: context.cpp:2208
TemplateVariant ClassContext::Private::packageStaticMethods ( ) const
inline

Definition at line 2200 of file context.cpp.

2201  {
2203  }
TemplateVariant packageStaticMethods() const
Definition: context.cpp:2200
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trStaticPackageMembers()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::packageTypes ( ) const
inline

Definition at line 2192 of file context.cpp.

2193  {
2195  }
virtual QCString trPackageTypes()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant packageTypes() const
Definition: context.cpp:2192
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::privateAttributes ( ) const
inline

Definition at line 2184 of file context.cpp.

2185  {
2187  }
TemplateVariant privateAttributes() const
Definition: context.cpp:2184
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trPrivateAttribs()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::privateMethods ( ) const
inline

Definition at line 2176 of file context.cpp.

2177  {
2179  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant privateMethods() const
Definition: context.cpp:2176
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trPrivateMembers()=0
TemplateVariant ClassContext::Private::privateSlots ( ) const
inline

Definition at line 2172 of file context.cpp.

2173  {
2175  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trPrivateSlots()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant privateSlots() const
Definition: context.cpp:2172
TemplateVariant ClassContext::Private::privateStaticAttributes ( ) const
inline

Definition at line 2188 of file context.cpp.

2189  {
2191  }
TemplateVariant privateStaticAttributes() const
Definition: context.cpp:2188
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trStaticPrivateAttribs()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::privateStaticMethods ( ) const
inline

Definition at line 2180 of file context.cpp.

2181  {
2183  }
virtual QCString trStaticPrivateMembers()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant privateStaticMethods() const
Definition: context.cpp:2180
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::privateTypes ( ) const
inline

Definition at line 2168 of file context.cpp.

2169  {
2171  }
virtual QCString trPrivateTypes()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant privateTypes() const
Definition: context.cpp:2168
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::properties ( ) const
inline

Definition at line 2212 of file context.cpp.

2213  {
2215  }
TemplateVariant properties() const
Definition: context.cpp:2212
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trProperties()=0
TemplateVariant ClassContext::Private::protectedAttributes ( ) const
inline

Definition at line 2156 of file context.cpp.

2157  {
2159  }
TemplateVariant protectedAttributes() const
Definition: context.cpp:2156
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trProtectedAttribs()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::protectedMethods ( ) const
inline

Definition at line 2148 of file context.cpp.

2149  {
2151  }
virtual QCString trProtectedMembers()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant protectedMethods() const
Definition: context.cpp:2148
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::protectedSlots ( ) const
inline

Definition at line 2164 of file context.cpp.

2165  {
2167  }
TemplateVariant protectedSlots() const
Definition: context.cpp:2164
Cachable & getCache() const
Definition: context.cpp:2615
virtual QCString trProtectedSlots()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::protectedStaticAttributes ( ) const
inline

Definition at line 2160 of file context.cpp.

2161  {
2163  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant protectedStaticAttributes() const
Definition: context.cpp:2160
virtual QCString trStaticProtectedAttribs()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::protectedStaticMethods ( ) const
inline

Definition at line 2152 of file context.cpp.

2153  {
2155  }
virtual QCString trStaticProtectedMembers()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant protectedStaticMethods() const
Definition: context.cpp:2152
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::protectedTypes ( ) const
inline

Definition at line 2144 of file context.cpp.

2145  {
2147  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trProtectedTypes()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant protectedTypes() const
Definition: context.cpp:2144
TemplateVariant ClassContext::Private::publicAttributes ( ) const
inline

Definition at line 2132 of file context.cpp.

2133  {
2135  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant publicAttributes() const
Definition: context.cpp:2132
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trPublicAttribs()=0
TemplateVariant ClassContext::Private::publicMethods ( ) const
inline

Definition at line 2120 of file context.cpp.

2121  {
2125  }
virtual QCString trPublicMembers()=0
TemplateVariant publicMethods() const
Definition: context.cpp:2120
virtual QCString trInstanceMethods()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
SrcLangExt getLanguage() const
ClassDef * m_classDef
Definition: context.cpp:2550
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::publicSlots ( ) const
inline

Definition at line 2140 of file context.cpp.

2141  {
2143  }
TemplateVariant publicSlots() const
Definition: context.cpp:2140
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trPublicSlots()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::publicStaticAttributes ( ) const
inline

Definition at line 2136 of file context.cpp.

2137  {
2139  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant publicStaticAttributes() const
Definition: context.cpp:2136
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trStaticPublicAttribs()=0
TemplateVariant ClassContext::Private::publicStaticMethods ( ) const
inline

Definition at line 2126 of file context.cpp.

2127  {
2131  }
virtual QCString trClassMethods()=0
Cachable & getCache() const
Definition: context.cpp:2615
virtual QCString trStaticPublicMembers()=0
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
SrcLangExt getLanguage() const
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant publicStaticMethods() const
Definition: context.cpp:2126
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::publicTypes ( ) const
inline

Definition at line 2116 of file context.cpp.

2117  {
2119  }
TemplateVariant publicTypes() const
Definition: context.cpp:2116
virtual QCString trPublicTypes()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::related ( ) const
inline

Definition at line 2224 of file context.cpp.

2225  {
2227  }
virtual QCString trRelatedFunctions()=0
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant related() const
Definition: context.cpp:2224
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::signals ( ) const
inline

Definition at line 2112 of file context.cpp.

2113  {
2115  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant signals() const
Definition: context.cpp:2112
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trSignals()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::subHighlight ( ) const
inline

Definition at line 1871 of file context.cpp.

1872  {
1873  return TemplateVariant("");
1874  }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant ClassContext::Private::templateDecls ( ) const
inline

Definition at line 2358 of file context.cpp.

2359  {
2360  Cachable &cache = getCache();
2361  if (!cache.templateDecls)
2362  {
2365  cache.templateDecls.reset(tl);
2366  }
2367  return cache.templateDecls.get();
2368  }
static TemplateList * alloc()
Definition: template.cpp:420
Default implementation of a context value of type list.
Definition: template.h:376
Cachable & getCache() const
Definition: context.cpp:2615
void addTemplateDecls(Definition *d, TemplateList *tl) const
Definition: context.cpp:2320
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::title ( ) const
inline

Definition at line 1863 of file context.cpp.

1864  {
1865  return TemplateVariant(m_classDef->title());
1866  }
QCString title() const
Definition: classdef.cpp:2076
ClassDef * m_classDef
Definition: context.cpp:2550
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant ClassContext::Private::typeConstraints ( ) const
inline

Definition at line 2369 of file context.cpp.

2370  {
2371  if (m_classDef->typeConstraints())
2372  {
2373  Cachable &cache = getCache();
2374  if (!cache.typeConstraints && m_classDef->typeConstraints())
2375  {
2377  }
2378  return cache.typeConstraints.get();
2379  }
2380  return FALSE;
2381  }
const bool FALSE
Definition: qglobal.h:370
Cachable & getCache() const
Definition: context.cpp:2615
static ArgumentListContext * alloc()
Definition: context.h:1161
const ArgumentList * typeConstraints() const
Definition: classdef.cpp:4728
ClassDef * m_classDef
Definition: context.cpp:2550
TemplateVariant ClassContext::Private::unoIDLInterfaces ( ) const
inline

Definition at line 2108 of file context.cpp.

2109  {
2111  }
TemplateVariant unoIDLInterfaces() const
Definition: context.cpp:2108
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
virtual QCString trInterfaces()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::unoIDLServices ( ) const
inline

Definition at line 2104 of file context.cpp.

2105  {
2107  }
Cachable & getCache() const
Definition: context.cpp:2615
TemplateVariant getMemberList(SharedPtr< MemberListInfoContext > &list, MemberListType type, const char *title, bool detailed=FALSE) const
Definition: context.cpp:2084
TemplateVariant unoIDLServices() const
Definition: context.cpp:2104
virtual QCString trServices()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant ClassContext::Private::usedFiles ( ) const
inline

Definition at line 1883 of file context.cpp.

1884  {
1885  Cachable &cache = getCache();
1886  if (!cache.usedFiles)
1887  {
1888  cache.usedFiles.reset(UsedFilesContext::alloc(m_classDef));
1889  }
1890  return cache.usedFiles.get();
1891  }
Cachable & getCache() const
Definition: context.cpp:2615
static UsedFilesContext * alloc(ClassDef *cd)
Definition: context.h:189
ClassDef * m_classDef
Definition: context.cpp:2550

Member Data Documentation

ClassDef* ClassContext::Private::m_classDef
private

Definition at line 2550 of file context.cpp.

PropertyMapper< ClassContext::Private > ClassContext::Private::s_inst
staticprivate

Definition at line 2621 of file context.cpp.


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