My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MemberContext::Private Class Reference
Inheritance diagram for MemberContext::Private:
DefinitionContext< MemberContext::Private >

Classes

struct  Cachable
 

Public Member Functions

 Private (MemberDef *md)
 
virtual ~Private ()
 
TemplateVariant get (const char *n) const
 
TemplateVariant fieldType () const
 
TemplateVariant declType () const
 
TemplateVariant declArgs () const
 
TemplateVariant exception () const
 
TemplateVariant bitfields () const
 
TemplateVariant isStatic () const
 
TemplateVariant isObjCMethod () const
 
TemplateVariant isObjCProperty () const
 
TemplateVariant isImplementation () const
 
TemplateVariant isSignal () const
 
TemplateVariant isSlot () const
 
TemplateVariant isTypedef () const
 
TemplateVariant isFunction () const
 
TemplateVariant isFunctionPtr () const
 
TemplateVariant isFriend () const
 
TemplateVariant isForeign () const
 
TemplateVariant isEvent () const
 
TemplateVariant isInline () const
 
TemplateVariant isExplicit () const
 
TemplateVariant isMutable () const
 
TemplateVariant isGettable () const
 
TemplateVariant isPrivateGettable () const
 
TemplateVariant isProtectedGettable () const
 
TemplateVariant isSettable () const
 
TemplateVariant isPrivateSettable () const
 
TemplateVariant isProtectedSettable () const
 
TemplateVariant isReadable () const
 
TemplateVariant isWritable () const
 
TemplateVariant isAddable () const
 
TemplateVariant isRemovable () const
 
TemplateVariant isRaisable () const
 
TemplateVariant isFinal () const
 
TemplateVariant isAbstract () const
 
TemplateVariant isOverride () const
 
TemplateVariant isInitonly () const
 
TemplateVariant isOptional () const
 
TemplateVariant isRequired () const
 
TemplateVariant isNonAtomic () const
 
TemplateVariant isCopy () const
 
TemplateVariant isAssign () const
 
TemplateVariant isRetain () const
 
TemplateVariant isWeak () const
 
TemplateVariant isStrong () const
 
TemplateVariant isUnretained () const
 
TemplateVariant isNew () const
 
TemplateVariant isSealed () const
 
TemplateVariant isExternal () const
 
TemplateVariant isAlias () const
 
TemplateVariant isDefault () const
 
TemplateVariant isDelete () const
 
TemplateVariant isNoExcept () const
 
TemplateVariant isAttribute () const
 
TemplateVariant isUNOProperty () const
 
TemplateVariant isReadonly () const
 
TemplateVariant isBound () const
 
TemplateVariant isConstrained () const
 
TemplateVariant isTransient () const
 
TemplateVariant isMaybeVoid () const
 
TemplateVariant isMaybeDefault () const
 
TemplateVariant isMaybeAmbiguous () const
 
TemplateVariant isPublished () const
 
TemplateVariant isTemplateSpecialization () const
 
TemplateVariant isProperty () const
 
TemplateVariant isEnumValue () const
 
TemplateVariant isVariable () const
 
TemplateVariant isEnumeration () const
 
TemplateVariant hasDetails () const
 
TemplateVariant initializer () const
 
TemplateVariant initializerAsCode () const
 
TemplateVariant isDefine () const
 
TemplateVariant isAnonymous () const
 
TemplateVariant anonymousType () const
 
TemplateVariant anonymousMember () const
 
TemplateVariant isRelated () const
 
TemplateVariant enumBaseType () const
 
TemplateVariant hasOneLineInitializer () const
 
TemplateVariant hasMultiLineInitializer () const
 
TemplateVariant enumValues () const
 
TemplateVariant templateArgs () const
 
TemplateVariant templateAlias () const
 
TemplateVariant propertyAttrs () const
 
TemplateVariant eventAttrs () const
 
TemplateVariant getClass () const
 
TemplateVariant category () const
 
TemplateVariant categoryRelation () const
 
TemplateVariant getFile () const
 
TemplateVariant getNamespace () const
 
TemplateVariant definition () const
 
ArgumentListgetDefArgList () const
 
TemplateVariant parameters () const
 
TemplateVariant hasParameters () const
 
TemplateVariant hasConstQualifier () const
 
TemplateVariant hasVolatileQualifier () const
 
TemplateVariant trailingReturnType () const
 
TemplateVariant extraTypeChars () const
 
void addTemplateDecls (TemplateList *tl) const
 
TemplateVariant templateDecls () const
 
TemplateVariant labels () const
 
TemplateVariant paramDocs () const
 
TemplateVariant implements () const
 
TemplateVariant reimplements () const
 
TemplateVariant implementedBy () const
 
TemplateVariant reimplementedBy () const
 
void addExamples (TemplateList *list) const
 
TemplateVariant examples () const
 
TemplateVariant typeConstraints () const
 
TemplateVariant functionQualifier () const
 
TemplateVariant sourceRefs () const
 
TemplateVariant sourceRefBys () const
 
TemplateVariant hasSources () const
 
TemplateVariant sourceCode () const
 
DotCallGraphgetCallGraph () const
 
TemplateVariant hasCallGraph () const
 
TemplateVariant callGraph () const
 
DotCallGraphgetCallerGraph () const
 
TemplateVariant hasCallerGraph () const
 
TemplateVariant callerGraph () const
 
TemplateVariant type () const
 
TemplateVariant handleDetailsVisibleFor (const QValueList< TemplateVariant > &args) const
 
TemplateVariant detailsVisibleFor () const
 
TemplateVariant handleNameWithContextFor (const QValueList< TemplateVariant > &args) const
 
TemplateVariant nameWithContextFor () const
 
- Public Member Functions inherited from DefinitionContext< MemberContext::Private >
 DefinitionContext (Definition *d)
 
void addBaseProperties (PropertyMapper< MemberContext::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

MemberDefm_memberDef
 

Static Private Attributes

static PropertyMapper
< MemberContext::Private
s_inst
 

Detailed Description

Definition at line 3874 of file context.cpp.

Constructor & Destructor Documentation

MemberContext::Private::Private ( MemberDef md)
inline

Definition at line 3877 of file context.cpp.

References DefinitionContext< MemberContext::Private >::addBaseProperties(), TemplateList::alloc(), anonymousMember(), anonymousType(), TemplateList::append(), bitfields(), callerGraph(), callGraph(), category(), categoryRelation(), Definition::cookie(), declArgs(), declType(), definition(), detailsVisibleFor(), enumBaseType(), enumValues(), eventAttrs(), MemberContext::Private::Cachable::eventAttrs, examples(), exception(), extraTypeChars(), fieldType(), functionQualifier(), getCache(), getClass(), getFile(), getNamespace(), hasCallerGraph(), hasCallGraph(), hasConstQualifier(), hasDetails(), hasMultiLineInitializer(), hasOneLineInitializer(), hasParameters(), hasSources(), hasVolatileQualifier(), implementedBy(), implements(), Config::init(), initializer(), initializerAsCode(), isAbstract(), MemberDef::isAddable(), isAddable(), isAlias(), isAnonymous(), isAssign(), isAttribute(), isBound(), isConstrained(), isCopy(), isDefault(), isDefine(), isDelete(), isEnumeration(), isEnumValue(), MemberDef::isEvent(), isEvent(), isExplicit(), isExternal(), isFinal(), isForeign(), isFriend(), isFunction(), isFunctionPtr(), MemberDef::isGettable(), isGettable(), isImplementation(), isInitonly(), isInline(), isMaybeAmbiguous(), isMaybeDefault(), isMaybeVoid(), isMutable(), isNew(), isNoExcept(), isNonAtomic(), isObjCMethod(), isObjCProperty(), isOptional(), isOverride(), MemberDef::isPrivateGettable(), isPrivateGettable(), MemberDef::isPrivateSettable(), isPrivateSettable(), MemberDef::isProperty(), isProperty(), MemberDef::isProtectedGettable(), isProtectedGettable(), MemberDef::isProtectedSettable(), isProtectedSettable(), isPublished(), MemberDef::isRaisable(), isRaisable(), isReadable(), isReadonly(), isRelated(), MemberDef::isRemovable(), isRemovable(), isRequired(), isRetain(), isSealed(), MemberDef::isSettable(), isSettable(), isSignal(), isSlot(), isStatic(), isStrong(), isTemplateSpecialization(), isTransient(), isTypedef(), isUNOProperty(), isUnretained(), isVariable(), isWeak(), isWritable(), labels(), nameWithContextFor(), paramDocs(), parameters(), propertyAttrs(), MemberContext::Private::Cachable::propertyAttrs, reimplementedBy(), reimplements(), SharedPtr< T >::reset(), s_inst, Definition::setCookie(), sourceCode(), sourceRefBys(), sourceRefs(), templateAlias(), templateArgs(), templateDecls(), trailingReturnType(), type(), and typeConstraints().

{
static bool init=FALSE;
if (!init)
{
s_inst.addProperty("isSignal", &Private::isSignal);
s_inst.addProperty("isSlot", &Private::isSlot);
s_inst.addProperty("isVariable", &Private::isVariable);
s_inst.addProperty("isEnumeration", &Private::isEnumeration);
s_inst.addProperty("isEnumValue", &Private::isEnumValue);
s_inst.addProperty("isTypedef", &Private::isTypedef);
s_inst.addProperty("isFunction", &Private::isFunction);
s_inst.addProperty("isFunctionPtr", &Private::isFunctionPtr);
s_inst.addProperty("isDefine", &Private::isDefine);
s_inst.addProperty("isFriend", &Private::isFriend);
s_inst.addProperty("isProperty", &Private::isProperty);
s_inst.addProperty("isEvent", &Private::isEvent);
s_inst.addProperty("isRelated", &Private::isRelated);
s_inst.addProperty("isForeign", &Private::isForeign);
s_inst.addProperty("isStatic", &Private::isStatic);
s_inst.addProperty("isInline", &Private::isInline);
s_inst.addProperty("isExplicit", &Private::isExplicit);
s_inst.addProperty("isMutable", &Private::isMutable);
s_inst.addProperty("isGettable", &Private::isGettable);
s_inst.addProperty("isPrivateGettable", &Private::isPrivateGettable);
s_inst.addProperty("isProtectedGettable", &Private::isProtectedGettable);
s_inst.addProperty("isSettable", &Private::isSettable);
s_inst.addProperty("isPrivateSettable", &Private::isPrivateSettable);
s_inst.addProperty("isProtectedSettable", &Private::isProtectedSettable);
s_inst.addProperty("isReadable", &Private::isReadable);
s_inst.addProperty("isWritable", &Private::isWritable);
s_inst.addProperty("isAddable", &Private::isAddable);
s_inst.addProperty("isRemovable", &Private::isRemovable);
s_inst.addProperty("isRaisable", &Private::isRaisable);
s_inst.addProperty("isFinal", &Private::isFinal);
s_inst.addProperty("isAbstract", &Private::isAbstract);
s_inst.addProperty("isOverride", &Private::isOverride);
s_inst.addProperty("isInitonly", &Private::isInitonly);
s_inst.addProperty("isOptional", &Private::isOptional);
s_inst.addProperty("isRequired", &Private::isRequired);
s_inst.addProperty("isNonAtomic", &Private::isNonAtomic);
s_inst.addProperty("isCopy", &Private::isCopy);
s_inst.addProperty("isAssign", &Private::isAssign);
s_inst.addProperty("isRetain", &Private::isRetain);
s_inst.addProperty("isWeak", &Private::isWeak);
s_inst.addProperty("isStrong", &Private::isStrong);
s_inst.addProperty("isUnretained", &Private::isUnretained);
s_inst.addProperty("isNew", &Private::isNew);
s_inst.addProperty("isSealed", &Private::isSealed);
s_inst.addProperty("isImplementation", &Private::isImplementation);
s_inst.addProperty("isExternal", &Private::isExternal);
s_inst.addProperty("isAlias", &Private::isAlias);
s_inst.addProperty("isDefault", &Private::isDefault);
s_inst.addProperty("isDelete", &Private::isDelete);
s_inst.addProperty("isNoExcept", &Private::isNoExcept);
s_inst.addProperty("isAttribute", &Private::isAttribute);
s_inst.addProperty("isUNOProperty", &Private::isUNOProperty);
s_inst.addProperty("isReadonly", &Private::isReadonly);
s_inst.addProperty("isBound", &Private::isBound);
s_inst.addProperty("isConstrained", &Private::isConstrained);
s_inst.addProperty("isTransient", &Private::isTransient);
s_inst.addProperty("isMaybeVoid", &Private::isMaybeVoid);
s_inst.addProperty("isMaybeDefault", &Private::isMaybeDefault);
s_inst.addProperty("isMaybeAmbiguous", &Private::isMaybeAmbiguous);
s_inst.addProperty("isPublished", &Private::isPublished);
s_inst.addProperty("isTemplateSpecialization",&Private::isTemplateSpecialization);
s_inst.addProperty("isObjCMethod", &Private::isObjCMethod);
s_inst.addProperty("isObjCProperty", &Private::isObjCProperty);
s_inst.addProperty("isAnonymous", &Private::isAnonymous);
s_inst.addProperty("hasParameters", &Private::hasParameters);
s_inst.addProperty("declType", &Private::declType);
s_inst.addProperty("declArgs", &Private::declArgs);
s_inst.addProperty("anonymousType", &Private::anonymousType);
s_inst.addProperty("anonymousMember", &Private::anonymousMember);
s_inst.addProperty("hasDetails", &Private::hasDetails);
s_inst.addProperty("exception", &Private::exception);
s_inst.addProperty("bitfields", &Private::bitfields);
s_inst.addProperty("initializer", &Private::initializer);
s_inst.addProperty("initializerAsCode", &Private::initializerAsCode);
s_inst.addProperty("hasOneLineInitializer", &Private::hasOneLineInitializer);
s_inst.addProperty("hasMultiLineInitializer", &Private::hasMultiLineInitializer);
s_inst.addProperty("templateArgs", &Private::templateArgs);
s_inst.addProperty("templateAlias", &Private::templateAlias);
s_inst.addProperty("propertyAttrs", &Private::propertyAttrs);
s_inst.addProperty("eventAttrs", &Private::eventAttrs);
s_inst.addProperty("category", &Private::category);
s_inst.addProperty("categoryRelation", &Private::categoryRelation);
s_inst.addProperty("class", &Private::getClass);
s_inst.addProperty("file", &Private::getFile);
s_inst.addProperty("namespace", &Private::getNamespace);
s_inst.addProperty("definition", &Private::definition);
s_inst.addProperty("parameters", &Private::parameters);
s_inst.addProperty("hasConstQualifier", &Private::hasConstQualifier);
s_inst.addProperty("hasVolatileQualifier",&Private::hasVolatileQualifier);
s_inst.addProperty("trailingReturnType", &Private::trailingReturnType);
s_inst.addProperty("extraTypeChars", &Private::extraTypeChars);
s_inst.addProperty("templateDecls", &Private::templateDecls);
s_inst.addProperty("labels", &Private::labels);
s_inst.addProperty("enumBaseType", &Private::enumBaseType);
s_inst.addProperty("enumValues", &Private::enumValues);
s_inst.addProperty("paramDocs", &Private::paramDocs);
s_inst.addProperty("reimplements", &Private::reimplements);
s_inst.addProperty("implements", &Private::implements);
s_inst.addProperty("reimplementedBy", &Private::reimplementedBy);
s_inst.addProperty("implementedBy", &Private::implementedBy);
s_inst.addProperty("examples", &Private::examples);
s_inst.addProperty("typeConstraints", &Private::typeConstraints);
s_inst.addProperty("functionQualifier", &Private::functionQualifier);
s_inst.addProperty("sourceRefs", &Private::sourceRefs);
s_inst.addProperty("sourceRefBys", &Private::sourceRefBys);
s_inst.addProperty("hasSources", &Private::hasSources);
s_inst.addProperty("sourceCode", &Private::sourceCode);
s_inst.addProperty("hasCallGraph", &Private::hasCallGraph);
s_inst.addProperty("callGraph", &Private::callGraph);
s_inst.addProperty("hasCallerGraph", &Private::hasCallerGraph);
s_inst.addProperty("callerGraph", &Private::callerGraph);
s_inst.addProperty("fieldType", &Private::fieldType);
s_inst.addProperty("type", &Private::type);
s_inst.addProperty("detailsVisibleFor", &Private::detailsVisibleFor);
s_inst.addProperty("nameWithContextFor", &Private::nameWithContextFor);
init=TRUE;
}
if (!md->cookie()) { md->setCookie(new MemberContext::Private::Cachable(md)); }
Cachable &cache = getCache();
cache.propertyAttrs.reset(TemplateList::alloc());
if (md && md->isProperty())
{
if (md->isGettable()) cache.propertyAttrs->append("get");
if (md->isPrivateGettable()) cache.propertyAttrs->append("private get");
if (md->isProtectedGettable()) cache.propertyAttrs->append("protected get");
if (md->isSettable()) cache.propertyAttrs->append("set");
if (md->isPrivateSettable()) cache.propertyAttrs->append("private set");
if (md->isProtectedSettable()) cache.propertyAttrs->append("protected set");
}
cache.eventAttrs.reset(TemplateList::alloc());
if (md && md->isEvent())
{
if (md->isAddable()) cache.eventAttrs->append("add");
if (md->isRemovable()) cache.eventAttrs->append("remove");
if (md->isRaisable()) cache.eventAttrs->append("raise");
}
}
virtual MemberContext::Private::~Private ( )
inlinevirtual

Definition at line 4021 of file context.cpp.

{}

Member Function Documentation

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

Definition at line 4780 of file context.cpp.

References TemplateStruct::alloc(), TemplateList::append(), MemberDef::getExamples(), MemberDef::hasExamples(), SDict< Example >::Iterator, m_memberDef, and TemplateStruct::set().

Referenced by examples().

{
{
Example *ex;
for (it.toFirst();(ex=it.current());++it)
{
s->set("text",ex->name);
s->set("isLinkable",TRUE);
s->set("anchor",ex->anchor);
s->set("fileName",ex->file);
s->set("isReference",FALSE);
s->set("externalReference","");
list->append(s);
}
}
}
void MemberContext::Private::addTemplateDecls ( TemplateList tl) const
inline

Definition at line 4591 of file context.cpp.

References ArgumentListContext::alloc(), TemplateList::append(), MemberDef::definitionTemplateParameterLists(), MemberDef::getClassDef(), ClassDef::getTemplateParameterLists(), MemberDef::isRelated(), MemberDef::isTemplateSpecialization(), m_memberDef, DefinitionContext< MemberContext::Private >::relPathAsString(), and MemberDef::templateArguments().

Referenced by templateDecls().

{
{
QListIterator<ArgumentList> ali(*m_memberDef->definitionTemplateParameterLists());
for (ali.toFirst();(tal=ali.current());++ali)
{
if (tal->count()>0)
{
tl->append(al);
}
}
}
else
{
{
QList<ArgumentList> tempParamLists;
cd->getTemplateParameterLists(tempParamLists);
//printf("#tempParamLists=%d\n",tempParamLists.count());
QListIterator<ArgumentList> ali(tempParamLists);
for (ali.toFirst();(tal=ali.current());++ali)
{
if (tal->count()>0)
{
tl->append(al);
}
}
}
if (m_memberDef->templateArguments()) // function template prefix
{
tl->append(al);
}
}
}
TemplateVariant MemberContext::Private::anonymousMember ( ) const
inline

Definition at line 4367 of file context.cpp.

References MemberContext::alloc(), MemberContext::Private::Cachable::anonymousMember, MemberDef::fromAnonymousMember(), SharedPtr< T >::get(), getCache(), m_memberDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.anonymousMember)
{
if (md)
{
cache.anonymousMember.reset(MemberContext::alloc(md));
}
}
if (cache.anonymousMember)
{
return cache.anonymousMember.get();
}
else
{
return FALSE;
}
}
TemplateVariant MemberContext::Private::anonymousType ( ) const
inline

Definition at line 4347 of file context.cpp.

References ClassContext::alloc(), MemberContext::Private::Cachable::anonymousType, SharedPtr< T >::get(), getCache(), MemberDef::getClassDefOfAnonymousType(), m_memberDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.anonymousType)
{
if (cd)
{
cache.anonymousType.reset(ClassContext::alloc(cd));
}
}
if (cache.anonymousType)
{
return cache.anonymousType.get();
}
else
{
return FALSE;
}
}
TemplateVariant MemberContext::Private::bitfields ( ) const
inline
TemplateVariant MemberContext::Private::callerGraph ( ) const
inline
TemplateVariant MemberContext::Private::callGraph ( ) const
inline
TemplateVariant MemberContext::Private::category ( ) const
inline

Definition at line 4469 of file context.cpp.

References ClassContext::alloc(), MemberDef::category(), MemberContext::Private::Cachable::category, SharedPtr< T >::get(), getCache(), m_memberDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.category && m_memberDef->category())
{
cache.category.reset(ClassContext::alloc(m_memberDef->category()));
}
if (cache.category)
{
return cache.category.get();
}
else
{
return TemplateVariant(FALSE);
}
}
TemplateVariant MemberContext::Private::categoryRelation ( ) const
inline

Definition at line 4485 of file context.cpp.

References MemberContext::alloc(), MemberDef::categoryRelation(), MemberContext::Private::Cachable::categoryRelation, SharedPtr< T >::get(), getCache(), m_memberDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.categoryRelation && m_memberDef->categoryRelation())
{
cache.categoryRelation.reset(MemberContext::alloc(m_memberDef->categoryRelation()));
}
if (cache.categoryRelation)
{
return cache.categoryRelation.get();
}
else
{
return TemplateVariant(FALSE);
}
}
TemplateVariant MemberContext::Private::declArgs ( ) const
inline

Definition at line 4044 of file context.cpp.

References MemberDef::argsString(), createLinkedText(), MemberContext::Private::Cachable::declArgs, MemberContext::Private::Cachable::declArgsParsed, getCache(), m_memberDef, and DefinitionContext< MemberContext::Private >::relPathAsString().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.declArgsParsed)
{
cache.declArgsParsed = TRUE;
return cache.declArgs;
}
else
{
return cache.declArgs;
}
}
TemplateVariant MemberContext::Private::declType ( ) const
inline

Definition at line 4030 of file context.cpp.

References createLinkedText(), MemberContext::Private::Cachable::declType, MemberContext::Private::Cachable::declTypeParsed, getCache(), MemberDef::getDeclType(), m_memberDef, and DefinitionContext< MemberContext::Private >::relPathAsString().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.declTypeParsed)
{
cache.declTypeParsed = TRUE;
return cache.declType;
}
else
{
return cache.declType;
}
}
TemplateVariant MemberContext::Private::definition ( ) const
inline
TemplateVariant MemberContext::Private::detailsVisibleFor ( ) const
inline

Definition at line 5024 of file context.cpp.

Referenced by Private().

{
return TemplateVariant::Delegate::fromMethod<Private,&Private::handleDetailsVisibleFor>(this);
}
TemplateVariant MemberContext::Private::enumBaseType ( ) const
inline

Definition at line 4391 of file context.cpp.

References MemberDef::enumBaseType(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::enumValues ( ) const
inline

Definition at line 4403 of file context.cpp.

References MemberListContext::alloc(), MemberDef::enumFieldList(), MemberContext::Private::Cachable::enumValues, SharedPtr< T >::get(), getCache(), m_memberDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.enumValues)
{
if (ml)
{
cache.enumValues.reset(MemberListContext::alloc(ml));
}
else
{
cache.enumValues.reset(MemberListContext::alloc());
}
}
return cache.enumValues.get();
}
TemplateVariant MemberContext::Private::eventAttrs ( ) const
inline

Definition at line 4449 of file context.cpp.

References MemberContext::Private::Cachable::eventAttrs, SharedPtr< T >::get(), and getCache().

Referenced by Private().

{
return getCache().eventAttrs.get();
}
TemplateVariant MemberContext::Private::examples ( ) const
inline

Definition at line 4799 of file context.cpp.

References addExamples(), TemplateList::alloc(), MemberContext::Private::Cachable::examples, SharedPtr< T >::get(), getCache(), and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.examples)
{
addExamples(exampleList);
cache.examples.reset(exampleList);
}
return cache.examples.get();
}
TemplateVariant MemberContext::Private::exception ( ) const
inline
TemplateVariant MemberContext::Private::extraTypeChars ( ) const
inline

Definition at line 4587 of file context.cpp.

References MemberDef::extraTypeChars(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::fieldType ( ) const
inline
TemplateVariant MemberContext::Private::functionQualifier ( ) const
inline
TemplateVariant MemberContext::Private::get ( const char *  n) const
inline

Definition at line 4022 of file context.cpp.

References s_inst.

Referenced by MemberContext::get().

{
return s_inst.get(this,n);
}
Cachable& MemberContext::Private::getCache ( ) const
inlineprivate
DotCallGraph* MemberContext::Private::getCallerGraph ( ) const
inline

Definition at line 4948 of file context.cpp.

References MemberContext::Private::Cachable::callerGraph, ScopedPtr< T >::get(), getCache(), m_memberDef, and ScopedPtr< T >::reset().

Referenced by callerGraph(), and hasCallerGraph().

{
Cachable &cache = getCache();
if (!cache.callerGraph)
{
cache.callerGraph.reset(new DotCallGraph(m_memberDef,TRUE));
}
return cache.callerGraph.get();
}
DotCallGraph* MemberContext::Private::getCallGraph ( ) const
inline

Definition at line 4888 of file context.cpp.

References MemberContext::Private::Cachable::callGraph, ScopedPtr< T >::get(), getCache(), m_memberDef, and ScopedPtr< T >::reset().

Referenced by callGraph(), and hasCallGraph().

{
Cachable &cache = getCache();
if (!cache.callGraph)
{
cache.callGraph.reset(new DotCallGraph(m_memberDef,FALSE));
}
return cache.callGraph.get();
}
TemplateVariant MemberContext::Private::getClass ( ) const
inline

Definition at line 4453 of file context.cpp.

References ClassContext::alloc(), MemberContext::Private::Cachable::classDef, SharedPtr< T >::get(), getCache(), MemberDef::getClassDef(), m_memberDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.classDef && m_memberDef->getClassDef())
{
cache.classDef.reset(ClassContext::alloc(m_memberDef->getClassDef()));
}
if (cache.classDef)
{
return cache.classDef.get();
}
else
{
return TemplateVariant(FALSE);
}
}
ArgumentList* MemberContext::Private::getDefArgList ( ) const
inline
TemplateVariant MemberContext::Private::getFile ( ) const
inline

Definition at line 4501 of file context.cpp.

References FileContext::alloc(), MemberContext::Private::Cachable::fileDef, SharedPtr< T >::get(), getCache(), MemberDef::getFileDef(), m_memberDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.fileDef && m_memberDef->getFileDef())
{
cache.fileDef.reset(FileContext::alloc(m_memberDef->getFileDef()));
}
if (cache.fileDef)
{
return cache.fileDef.get();
}
else
{
return TemplateVariant(FALSE);
}
}
TemplateVariant MemberContext::Private::getNamespace ( ) const
inline

Definition at line 4517 of file context.cpp.

References NamespaceContext::alloc(), SharedPtr< T >::get(), getCache(), MemberDef::getNamespaceDef(), m_memberDef, MemberContext::Private::Cachable::namespaceDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.namespaceDef && m_memberDef->getNamespaceDef())
{
cache.namespaceDef.reset(NamespaceContext::alloc(m_memberDef->getNamespaceDef()));
}
if (cache.namespaceDef)
{
return cache.namespaceDef.get();
}
else
{
return TemplateVariant(FALSE);
}
}
TemplateVariant MemberContext::Private::handleDetailsVisibleFor ( const QValueList< TemplateVariant > &  args) const
inline

Definition at line 5012 of file context.cpp.

References err(), MemberDef::isDetailedSectionVisible(), and m_memberDef.

{
if (args.count()==1)
{
return m_memberDef->isDetailedSectionVisible(args[0].toString()=="module",args[0].toString()=="file");
}
else
{
err(".detailsVisibleFor should take one string argument, got %d\n",args.count());
}
return TemplateVariant();
}
TemplateVariant MemberContext::Private::handleNameWithContextFor ( const QValueList< TemplateVariant > &  args) const
inline

Definition at line 5028 of file context.cpp.

References NamespaceDef::displayName(), ClassDef::displayName(), MemberDef::displayName(), err(), MemberDef::getClassDef(), MemberDef::getEnumScope(), Definition::getLanguage(), getLanguageSpecificSeparator(), MemberDef::getNamespaceDef(), MemberDef::isRelated(), MemberDef::livesInsideEnum(), m_memberDef, and Definition::name().

{
if (args.count()==1)
{
QCString n = m_memberDef->name();
QCString ctx = args[0].toString();
QCString sep = getLanguageSpecificSeparator(lang,TRUE);
{
n.prepend(m_memberDef->getEnumScope()->displayName()+sep);
}
if (ctx=="module" && m_memberDef->getClassDef() && !m_memberDef->isRelated())
{
n.prepend(m_memberDef->getClassDef()->displayName()+sep);
}
else if ((ctx=="module" || ctx=="file") && m_memberDef->getNamespaceDef())
{
n.prepend(m_memberDef->getNamespaceDef()->displayName()+sep);
}
return n;
}
else
{
err(".nameWithContextFor should take one string argument, got %d\n",args.count());
}
return TemplateVariant();
}
TemplateVariant MemberContext::Private::hasCallerGraph ( ) const
inline
TemplateVariant MemberContext::Private::hasCallGraph ( ) const
inline
TemplateVariant MemberContext::Private::hasConstQualifier ( ) const
inline

Definition at line 4564 of file context.cpp.

References ArgumentList::constSpecifier, and getDefArgList().

Referenced by Private().

{
return al ? al->constSpecifier : FALSE;
}
TemplateVariant MemberContext::Private::hasDetails ( ) const
inline

Definition at line 4310 of file context.cpp.

References MemberDef::isDetailedSectionLinkable(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::hasMultiLineInitializer ( ) const
inline

Definition at line 4399 of file context.cpp.

References MemberDef::hasMultiLineInitializer(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::hasOneLineInitializer ( ) const
inline

Definition at line 4395 of file context.cpp.

References MemberDef::hasOneLineInitializer(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::hasParameters ( ) const
inline

Definition at line 4560 of file context.cpp.

References getDefArgList().

Referenced by Private().

{
return getDefArgList()!=0;
}
TemplateVariant MemberContext::Private::hasSources ( ) const
inline

Definition at line 4856 of file context.cpp.

References Definition::hasSources(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::hasVolatileQualifier ( ) const
inline

Definition at line 4569 of file context.cpp.

References getDefArgList(), and ArgumentList::volatileSpecifier.

Referenced by Private().

{
return al ? al->volatileSpecifier : FALSE;
}
TemplateVariant MemberContext::Private::implementedBy ( ) const
inline

Definition at line 4732 of file context.cpp.

References TemplateList::alloc(), TemplateList::append(), ClassDef::compoundType(), SharedPtr< T >::get(), getCache(), MemberDef::getClassDef(), MemberContext::Private::Cachable::implementedBy, ClassDef::Interface, m_memberDef, MemberContext::MemberContext(), Pure, MemberDef::reimplementedBy(), SharedPtr< T >::reset(), and MemberDef::virtualness().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.implementedBy)
{
cache.implementedBy.reset(TemplateList::alloc());
if (ml)
{
MemberDef *md=0;
for (mli.toFirst();(md=mli.current());++mli)
{
ClassDef *cd = md->getClassDef();
if (cd && (md->virtualness()==Pure || cd->compoundType()==ClassDef::Interface))
{
cache.implementedBy->append(mc);
}
}
}
}
return cache.implementedBy.get();
}
TemplateVariant MemberContext::Private::implements ( ) const
inline

Definition at line 4694 of file context.cpp.

References MemberContext::alloc(), TemplateList::alloc(), TemplateList::append(), ClassDef::compoundType(), SharedPtr< T >::get(), getCache(), MemberDef::getClassDef(), MemberContext::Private::Cachable::implements, ClassDef::Interface, m_memberDef, Pure, MemberDef::reimplements(), SharedPtr< T >::reset(), and MemberDef::virtualness().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.implements)
{
cache.implements.reset(TemplateList::alloc());
if (md)
{
ClassDef *cd = md->getClassDef();
if (cd && (md->virtualness()==Pure || cd->compoundType()==ClassDef::Interface))
{
cache.implements->append(mc);
}
}
}
return cache.implements.get();
}
TemplateVariant MemberContext::Private::initializer ( ) const
inline
TemplateVariant MemberContext::Private::initializerAsCode ( ) const
inline

Definition at line 4318 of file context.cpp.

References getCache(), MemberDef::getClassDef(), MemberDef::getNamespaceDef(), MemberDef::initializer(), MemberContext::Private::Cachable::initializer, MemberContext::Private::Cachable::initializerParsed, m_memberDef, Definition::name(), parseCode(), and DefinitionContext< MemberContext::Private >::relPathAsString().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.initializerParsed)
{
QCString scopeName;
{
scopeName = m_memberDef->getClassDef()->name();
}
{
scopeName = m_memberDef->getNamespaceDef()->name();
}
cache.initializer = parseCode(m_memberDef,scopeName,relPathAsString(),
cache.initializerParsed = TRUE;
}
return cache.initializer;
}
TemplateVariant MemberContext::Private::isAbstract ( ) const
inline

Definition at line 4174 of file context.cpp.

References MemberDef::isAbstract(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isAddable ( ) const
inline

Definition at line 4158 of file context.cpp.

References MemberDef::isAddable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isAlias ( ) const
inline

Definition at line 4234 of file context.cpp.

References MemberDef::isAlias(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isAlias();
}
TemplateVariant MemberContext::Private::isAnonymous ( ) const
inline

Definition at line 4342 of file context.cpp.

References m_memberDef, Definition::name(), and DefinitionContext< MemberContext::Private >::name().

Referenced by Private().

{
QCString name = m_memberDef->name();
return !name.isEmpty() && name.at(0)=='@';
}
TemplateVariant MemberContext::Private::isAssign ( ) const
inline

Definition at line 4202 of file context.cpp.

References MemberDef::isAssign(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isAssign();
}
TemplateVariant MemberContext::Private::isAttribute ( ) const
inline

Definition at line 4250 of file context.cpp.

References MemberDef::isAttribute(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isBound ( ) const
inline

Definition at line 4262 of file context.cpp.

References MemberDef::isBound(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isBound();
}
TemplateVariant MemberContext::Private::isConstrained ( ) const
inline

Definition at line 4266 of file context.cpp.

References MemberDef::isConstrained(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isCopy ( ) const
inline

Definition at line 4198 of file context.cpp.

References MemberDef::isCopy(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isCopy();
}
TemplateVariant MemberContext::Private::isDefault ( ) const
inline

Definition at line 4238 of file context.cpp.

References MemberDef::isDefault(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isDefine ( ) const
inline

Definition at line 4338 of file context.cpp.

References MemberDef::isDefine(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isDefine();
}
TemplateVariant MemberContext::Private::isDelete ( ) const
inline

Definition at line 4242 of file context.cpp.

References MemberDef::isDelete(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isDelete();
}
TemplateVariant MemberContext::Private::isEnumeration ( ) const
inline

Definition at line 4306 of file context.cpp.

References MemberDef::isEnumerate(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isEnumValue ( ) const
inline

Definition at line 4298 of file context.cpp.

References MemberDef::isEnumValue(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isEvent ( ) const
inline

Definition at line 4110 of file context.cpp.

References MemberDef::isEvent(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isEvent();
}
TemplateVariant MemberContext::Private::isExplicit ( ) const
inline

Definition at line 4118 of file context.cpp.

References MemberDef::isExplicit(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isExternal ( ) const
inline

Definition at line 4230 of file context.cpp.

References MemberDef::isExternal(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isFinal ( ) const
inline

Definition at line 4170 of file context.cpp.

References MemberDef::isFinal(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isFinal();
}
TemplateVariant MemberContext::Private::isForeign ( ) const
inline

Definition at line 4106 of file context.cpp.

References MemberDef::isForeign(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isFriend ( ) const
inline

Definition at line 4102 of file context.cpp.

References MemberDef::isFriend(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isFriend();
}
TemplateVariant MemberContext::Private::isFunction ( ) const
inline

Definition at line 4094 of file context.cpp.

References MemberDef::isFunction(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isFunctionPtr ( ) const
inline

Definition at line 4098 of file context.cpp.

References MemberDef::isFunctionPtr(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isGettable ( ) const
inline

Definition at line 4126 of file context.cpp.

References MemberDef::isGettable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isImplementation ( ) const
inline

Definition at line 4078 of file context.cpp.

References MemberDef::isImplementation(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isInitonly ( ) const
inline

Definition at line 4182 of file context.cpp.

References MemberDef::isInitonly(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isInline ( ) const
inline

Definition at line 4114 of file context.cpp.

References MemberDef::isInline(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isInline();
}
TemplateVariant MemberContext::Private::isMaybeAmbiguous ( ) const
inline

Definition at line 4282 of file context.cpp.

References MemberDef::isMaybeAmbiguous(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isMaybeDefault ( ) const
inline

Definition at line 4278 of file context.cpp.

References MemberDef::isMaybeDefault(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isMaybeVoid ( ) const
inline

Definition at line 4274 of file context.cpp.

References MemberDef::isMaybeVoid(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isMutable ( ) const
inline

Definition at line 4122 of file context.cpp.

References MemberDef::isMutable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isNew ( ) const
inline

Definition at line 4222 of file context.cpp.

References MemberDef::isNew(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isNew();
}
TemplateVariant MemberContext::Private::isNoExcept ( ) const
inline

Definition at line 4246 of file context.cpp.

References MemberDef::isNoExcept(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isNonAtomic ( ) const
inline

Definition at line 4194 of file context.cpp.

References MemberDef::isNonAtomic(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isObjCMethod ( ) const
inline

Definition at line 4070 of file context.cpp.

References MemberDef::isObjCMethod(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isObjCProperty ( ) const
inline

Definition at line 4074 of file context.cpp.

References MemberDef::isObjCProperty(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isOptional ( ) const
inline

Definition at line 4186 of file context.cpp.

References MemberDef::isOptional(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isOverride ( ) const
inline

Definition at line 4178 of file context.cpp.

References MemberDef::isOverride(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isPrivateGettable ( ) const
inline

Definition at line 4130 of file context.cpp.

References MemberDef::isPrivateGettable(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::isPrivateSettable ( ) const
inline

Definition at line 4142 of file context.cpp.

References MemberDef::isPrivateSettable(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::isProperty ( ) const
inline

Definition at line 4294 of file context.cpp.

References MemberDef::isProperty(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isProtectedGettable ( ) const
inline

Definition at line 4134 of file context.cpp.

References MemberDef::isProtectedGettable(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::isProtectedSettable ( ) const
inline

Definition at line 4146 of file context.cpp.

References MemberDef::isProtectedSettable(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::isPublished ( ) const
inline

Definition at line 4286 of file context.cpp.

References MemberDef::isPublished(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isRaisable ( ) const
inline

Definition at line 4166 of file context.cpp.

References MemberDef::isRaisable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isReadable ( ) const
inline

Definition at line 4150 of file context.cpp.

References MemberDef::isReadable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isReadonly ( ) const
inline

Definition at line 4258 of file context.cpp.

References MemberDef::isReadonly(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isRelated ( ) const
inline

Definition at line 4387 of file context.cpp.

References MemberDef::isRelated(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isRemovable ( ) const
inline

Definition at line 4162 of file context.cpp.

References MemberDef::isRemovable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isRequired ( ) const
inline

Definition at line 4190 of file context.cpp.

References MemberDef::isRequired(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isRetain ( ) const
inline

Definition at line 4206 of file context.cpp.

References MemberDef::isRetain(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isRetain();
}
TemplateVariant MemberContext::Private::isSealed ( ) const
inline

Definition at line 4226 of file context.cpp.

References MemberDef::isSealed(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isSealed();
}
TemplateVariant MemberContext::Private::isSettable ( ) const
inline

Definition at line 4138 of file context.cpp.

References MemberDef::isSettable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isSignal ( ) const
inline

Definition at line 4082 of file context.cpp.

References MemberDef::isSignal(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isSignal();
}
TemplateVariant MemberContext::Private::isSlot ( ) const
inline

Definition at line 4086 of file context.cpp.

References MemberDef::isSlot(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isSlot();
}
TemplateVariant MemberContext::Private::isStatic ( ) const
inline

Definition at line 4066 of file context.cpp.

References MemberDef::isStatic(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isStatic();
}
TemplateVariant MemberContext::Private::isStrong ( ) const
inline

Definition at line 4214 of file context.cpp.

References MemberDef::isStrong(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isStrong();
}
TemplateVariant MemberContext::Private::isTemplateSpecialization ( ) const
inline

Definition at line 4290 of file context.cpp.

References MemberDef::isTemplateSpecialization(), and m_memberDef.

Referenced by Private().

TemplateVariant MemberContext::Private::isTransient ( ) const
inline

Definition at line 4270 of file context.cpp.

References MemberDef::isTransient(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isTypedef ( ) const
inline

Definition at line 4090 of file context.cpp.

References MemberDef::isTypedef(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isUNOProperty ( ) const
inline

Definition at line 4254 of file context.cpp.

References MemberDef::isUNOProperty(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isUnretained ( ) const
inline

Definition at line 4218 of file context.cpp.

References MemberDef::isUnretained(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isVariable ( ) const
inline

Definition at line 4302 of file context.cpp.

References MemberDef::isVariable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::isWeak ( ) const
inline

Definition at line 4210 of file context.cpp.

References MemberDef::isWeak(), and m_memberDef.

Referenced by Private().

{
return m_memberDef->isWeak();
}
TemplateVariant MemberContext::Private::isWritable ( ) const
inline

Definition at line 4154 of file context.cpp.

References MemberDef::isWritable(), and m_memberDef.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::labels ( ) const
inline

Definition at line 4644 of file context.cpp.

References TemplateList::alloc(), TemplateList::append(), SharedPtr< T >::get(), getCache(), MemberDef::getLabels(), Definition::getOuterScope(), MemberContext::Private::Cachable::labels, m_memberDef, and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.labels)
{
QStrList sl;
if (sl.count()>0)
{
QStrListIterator it(sl);
for (;it.current();++it)
{
tl->append(*it);
}
}
cache.labels.reset(tl);
}
return cache.labels.get();
}
TemplateVariant MemberContext::Private::nameWithContextFor ( ) const
inline

Definition at line 5056 of file context.cpp.

Referenced by Private().

{
return TemplateVariant::Delegate::fromMethod<Private,&Private::handleNameWithContextFor>(this);
}
TemplateVariant MemberContext::Private::paramDocs ( ) const
inline

Definition at line 4664 of file context.cpp.

References MemberDef::argumentList(), Definition::docFile(), Definition::docLine(), extractDirection(), getCache(), ArgumentList::hasDocumentation(), m_memberDef, MemberContext::Private::Cachable::paramDocs, parseDoc(), DefinitionContext< MemberContext::Private >::relPathAsString(), and ScopedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.paramDocs)
{
{
QCString paramDocs;
// convert the parameter documentation into a list of @param commands
for (ali.toFirst();(a=ali.current());++ali)
{
if (a->hasDocumentation())
{
QCString direction = extractDirection(a->docs);
paramDocs+="@param"+direction+" "+a->name+" "+a->docs;
}
}
cache.paramDocs.reset(new TemplateVariant(parseDoc(m_memberDef,
}
else
{
cache.paramDocs.reset(new TemplateVariant(""));
}
}
return *cache.paramDocs;
}
TemplateVariant MemberContext::Private::parameters ( ) const
inline

Definition at line 4543 of file context.cpp.

References ArgumentListContext::alloc(), MemberContext::Private::Cachable::arguments, SharedPtr< T >::get(), getCache(), getDefArgList(), MemberDef::isProperty(), m_memberDef, DefinitionContext< MemberContext::Private >::relPathAsString(), and SharedPtr< T >::reset().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.arguments)
{
ArgumentList *defArgList = getDefArgList();
if (defArgList && !m_memberDef->isProperty())
{
cache.arguments.reset(ArgumentListContext::alloc(defArgList,m_memberDef,relPathAsString()));
}
else
{
cache.arguments.reset(ArgumentListContext::alloc());
}
}
return cache.arguments.get();
}
TemplateVariant MemberContext::Private::propertyAttrs ( ) const
inline

Definition at line 4445 of file context.cpp.

References SharedPtr< T >::get(), getCache(), and MemberContext::Private::Cachable::propertyAttrs.

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::reimplementedBy ( ) const
inline

Definition at line 4756 of file context.cpp.

References TemplateList::alloc(), TemplateList::append(), ClassDef::compoundType(), SharedPtr< T >::get(), getCache(), MemberDef::getClassDef(), ClassDef::Interface, m_memberDef, MemberContext::MemberContext(), Pure, MemberDef::reimplementedBy(), MemberContext::Private::Cachable::reimplementedBy, SharedPtr< T >::reset(), and MemberDef::virtualness().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.reimplementedBy)
{
cache.reimplementedBy.reset(TemplateList::alloc());
if (ml)
{
MemberDef *md=0;
for (mli.toFirst();(md=mli.current());++mli)
{
ClassDef *cd = md->getClassDef();
if (cd && md->virtualness()!=Pure && cd->compoundType()!=ClassDef::Interface)
{
cache.reimplementedBy->append(mc);
}
}
}
}
return cache.reimplementedBy.get();
}
TemplateVariant MemberContext::Private::reimplements ( ) const
inline
TemplateVariant MemberContext::Private::sourceCode ( ) const
inline

Definition at line 4860 of file context.cpp.

References FileDef::absFilePath(), Definition::getBodyDef(), getCache(), MemberDef::getClassDef(), Definition::getEndBodyLine(), MemberDef::getNamespaceDef(), Definition::getStartBodyLine(), m_memberDef, Definition::name(), parseCode(), readCodeFragment(), DefinitionContext< MemberContext::Private >::relPathAsString(), MemberContext::Private::Cachable::sourceCode, and MemberContext::Private::Cachable::sourceCodeParsed.

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.sourceCodeParsed)
{
QCString codeFragment;
int startLine = m_memberDef->getStartBodyLine();
int endLine = m_memberDef->getEndBodyLine();
if (fd && readCodeFragment(fd->absFilePath(),
startLine,endLine,codeFragment)
)
{
QCString scopeName;
{
scopeName = m_memberDef->getClassDef()->name();
}
{
scopeName = m_memberDef->getNamespaceDef()->name();
}
cache.sourceCode = parseCode(m_memberDef,scopeName,relPathAsString(),codeFragment,startLine,endLine,TRUE);
cache.sourceCodeParsed = TRUE;
}
}
return cache.sourceCode;
}
TemplateVariant MemberContext::Private::sourceRefBys ( ) const
inline

Definition at line 4847 of file context.cpp.

References MemberListContext::alloc(), SharedPtr< T >::get(), getCache(), Definition::getReferencedByMembers(), m_memberDef, SharedPtr< T >::reset(), and MemberContext::Private::Cachable::sourceRefBys.

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.sourceRefBys)
{
cache.sourceRefBys.reset(MemberListContext::alloc(m_memberDef->getReferencedByMembers(),TRUE));
}
return cache.sourceRefBys.get();
}
TemplateVariant MemberContext::Private::sourceRefs ( ) const
inline

Definition at line 4838 of file context.cpp.

References MemberListContext::alloc(), SharedPtr< T >::get(), getCache(), Definition::getReferencesMembers(), m_memberDef, SharedPtr< T >::reset(), and MemberContext::Private::Cachable::sourceRefs.

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.sourceRefs)
{
cache.sourceRefs.reset(MemberListContext::alloc(m_memberDef->getReferencesMembers(),TRUE));
}
return cache.sourceRefs.get();
}
TemplateVariant MemberContext::Private::templateAlias ( ) const
inline
TemplateVariant MemberContext::Private::templateArgs ( ) const
inline

Definition at line 4420 of file context.cpp.

References ArgumentListContext::alloc(), SharedPtr< T >::get(), getCache(), m_memberDef, DefinitionContext< MemberContext::Private >::relPathAsString(), SharedPtr< T >::reset(), MemberContext::Private::Cachable::templateArgs, and MemberDef::templateArguments().

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.templateArgs && m_memberDef->templateArguments())
{
}
if (cache.templateArgs)
{
return cache.templateArgs.get();
}
else
{
return TemplateVariant(FALSE);
}
}
TemplateVariant MemberContext::Private::templateDecls ( ) const
inline

Definition at line 4633 of file context.cpp.

References addTemplateDecls(), TemplateList::alloc(), SharedPtr< T >::get(), getCache(), SharedPtr< T >::reset(), and MemberContext::Private::Cachable::templateDecls.

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.templateDecls)
{
cache.templateDecls.reset(tl);
}
return cache.templateDecls.get();
}
TemplateVariant MemberContext::Private::trailingReturnType ( ) const
inline
TemplateVariant MemberContext::Private::type ( ) const
inline

Definition at line 5008 of file context.cpp.

References m_memberDef, and MemberDef::typeString().

Referenced by Private().

{
}
TemplateVariant MemberContext::Private::typeConstraints ( ) const
inline

Definition at line 4810 of file context.cpp.

References ArgumentListContext::alloc(), SharedPtr< T >::get(), getCache(), m_memberDef, DefinitionContext< MemberContext::Private >::relPathAsString(), SharedPtr< T >::reset(), MemberDef::typeConstraints(), and MemberContext::Private::Cachable::typeConstraints.

Referenced by Private().

{
Cachable &cache = getCache();
if (!cache.typeConstraints && m_memberDef->typeConstraints())
{
}
else
{
cache.typeConstraints.reset(ArgumentListContext::alloc());
}
return cache.typeConstraints.get();
}

Member Data Documentation

MemberDef* MemberContext::Private::m_memberDef
private

Definition at line 5061 of file context.cpp.

Referenced by addExamples(), addTemplateDecls(), anonymousMember(), anonymousType(), bitfields(), callerGraph(), callGraph(), category(), categoryRelation(), declArgs(), declType(), definition(), enumBaseType(), enumValues(), exception(), extraTypeChars(), fieldType(), functionQualifier(), getCache(), getCallerGraph(), getCallGraph(), getClass(), getDefArgList(), getFile(), getNamespace(), handleDetailsVisibleFor(), handleNameWithContextFor(), hasCallerGraph(), hasCallGraph(), hasDetails(), hasMultiLineInitializer(), hasOneLineInitializer(), hasSources(), implementedBy(), implements(), initializer(), initializerAsCode(), isAbstract(), isAddable(), isAlias(), isAnonymous(), isAssign(), isAttribute(), isBound(), isConstrained(), isCopy(), isDefault(), isDefine(), isDelete(), isEnumeration(), isEnumValue(), isEvent(), isExplicit(), isExternal(), isFinal(), isForeign(), isFriend(), isFunction(), isFunctionPtr(), isGettable(), isImplementation(), isInitonly(), isInline(), isMaybeAmbiguous(), isMaybeDefault(), isMaybeVoid(), isMutable(), isNew(), isNoExcept(), isNonAtomic(), isObjCMethod(), isObjCProperty(), isOptional(), isOverride(), isPrivateGettable(), isPrivateSettable(), isProperty(), isProtectedGettable(), isProtectedSettable(), isPublished(), isRaisable(), isReadable(), isReadonly(), isRelated(), isRemovable(), isRequired(), isRetain(), isSealed(), isSettable(), isSignal(), isSlot(), isStatic(), isStrong(), isTemplateSpecialization(), isTransient(), isTypedef(), isUNOProperty(), isUnretained(), isVariable(), isWeak(), isWritable(), labels(), paramDocs(), parameters(), reimplementedBy(), reimplements(), sourceCode(), sourceRefBys(), sourceRefs(), templateAlias(), templateArgs(), trailingReturnType(), type(), and typeConstraints().

PropertyMapper< MemberContext::Private > MemberContext::Private::s_inst
staticprivate

Definition at line 5108 of file context.cpp.

Referenced by get(), and Private().


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