Public Member Functions | Public Attributes | List of all members
DefinitionContext< T >::Cachable Struct Reference
Inheritance diagram for DefinitionContext< T >::Cachable:
Definition::Cookie ClassContext::Private::Cachable DirContext::Private::Cachable FileContext::Private::Cachable MemberContext::Private::Cachable ModuleContext::Private::Cachable NamespaceContext::Private::Cachable PageContext::Private::Cachable

Public Member Functions

 Cachable (Definition *def)
 
- Public Member Functions inherited from Definition::Cookie
virtual ~Cookie ()
 

Public Attributes

ScopedPtr< TemplateVariantdetails
 
ContextOutputFormat detailsOutputFormat
 
ScopedPtr< TemplateVariantbrief
 
ContextOutputFormat briefOutputFormat
 
ScopedPtr< TemplateVariantinbodyDocs
 
ContextOutputFormat inbodyDocsOutputFormat
 
SharedPtr< TemplateListnavPath
 
SharedPtr< TemplateListsourceDef
 
SharedPtr< TemplateStructfileLink
 
SharedPtr< TemplateStructlineLink
 

Detailed Description

template<typename T>
struct DefinitionContext< T >::Cachable

Definition at line 1587 of file context.cpp.

Constructor & Destructor Documentation

template<typename T>
DefinitionContext< T >::Cachable::Cachable ( Definition def)
inline

Definition at line 1589 of file context.cpp.

1592  {
1596 
1597  if (def && !def->getSourceFileBase().isEmpty())
1598  {
1599  lineLink->set("text",def->getStartBodyLine());
1600  lineLink->set("isLinkable",TRUE);
1601  lineLink->set("fileName",def->getSourceFileBase());
1602  lineLink->set("anchor",def->getSourceAnchor());
1603  lineLink->set("isReference",FALSE);
1604  lineLink->set("externalReference","");
1606  {
1607  fileLink->set("text",def->name());
1608  }
1609  else if (def->getBodyDef())
1610  {
1611  fileLink->set("text",def->getBodyDef()->name());
1612  }
1613  else
1614  {
1615  fileLink->set("text",def->displayName(TRUE));
1616  }
1617  fileLink->set("isLinkable",TRUE);
1618  fileLink->set("fileName",def->getSourceFileBase());
1619  fileLink->set("anchor",QCString());
1620  fileLink->set("isReference",FALSE);
1621  fileLink->set("externalReference","");
1624  }
1625  }
SharedPtr< TemplateStruct > fileLink
Definition: context.cpp:1634
static TemplateList * alloc()
Definition: template.cpp:420
virtual void set(const char *name, const TemplateVariant &v)
Definition: template.cpp:275
bool isEmpty() const
Definition: qcstring.h:189
FileDef * getBodyDef() const
const bool FALSE
Definition: qglobal.h:370
virtual QCString displayName(bool includeScope=TRUE) const =0
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
ContextOutputFormat detailsOutputFormat
Definition: context.cpp:1627
virtual DefType definitionType() const =0
SharedPtr< TemplateStruct > lineLink
Definition: context.cpp:1635
const QCString & name() const
Definition: definition.h:114
QCString name() const
Definition: filedef.cpp:1193
virtual QCString getSourceFileBase() const
Definition: definition.cpp:885
virtual QCString getSourceAnchor() const
Definition: definition.cpp:898
void reset(T *p=0)
Definition: context.cpp:113
int getStartBodyLine() const
T * get() const
Definition: context.cpp:111
ContextOutputFormat briefOutputFormat
Definition: context.cpp:1629
ContextOutputFormat inbodyDocsOutputFormat
Definition: context.cpp:1631
const bool TRUE
Definition: qglobal.h:371
SharedPtr< TemplateList > sourceDef
Definition: context.cpp:1633
static TemplateStruct * alloc()
Definition: template.cpp:294

Member Data Documentation

template<typename T>
ScopedPtr<TemplateVariant> DefinitionContext< T >::Cachable::brief

Definition at line 1628 of file context.cpp.

template<typename T>
ContextOutputFormat DefinitionContext< T >::Cachable::briefOutputFormat

Definition at line 1629 of file context.cpp.

template<typename T>
ScopedPtr<TemplateVariant> DefinitionContext< T >::Cachable::details

Definition at line 1626 of file context.cpp.

template<typename T>
ContextOutputFormat DefinitionContext< T >::Cachable::detailsOutputFormat

Definition at line 1627 of file context.cpp.

template<typename T>
SharedPtr<TemplateStruct> DefinitionContext< T >::Cachable::fileLink

Definition at line 1634 of file context.cpp.

template<typename T>
ScopedPtr<TemplateVariant> DefinitionContext< T >::Cachable::inbodyDocs

Definition at line 1630 of file context.cpp.

template<typename T>
ContextOutputFormat DefinitionContext< T >::Cachable::inbodyDocsOutputFormat

Definition at line 1631 of file context.cpp.

template<typename T>
SharedPtr<TemplateStruct> DefinitionContext< T >::Cachable::lineLink

Definition at line 1635 of file context.cpp.

template<typename T>
SharedPtr<TemplateList> DefinitionContext< T >::Cachable::navPath

Definition at line 1632 of file context.cpp.

template<typename T>
SharedPtr<TemplateList> DefinitionContext< T >::Cachable::sourceDef

Definition at line 1633 of file context.cpp.


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