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::Privates_inst
 

Detailed Description

Definition at line 3859 of file context.cpp.

Constructor & Destructor Documentation

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

Definition at line 3862 of file context.cpp.

3863  {
3864  static bool init=FALSE;
3865  if (!init)
3866  {
3868  s_inst.addProperty("isSignal", &Private::isSignal);
3869  s_inst.addProperty("isSlot", &Private::isSlot);
3870  s_inst.addProperty("isVariable", &Private::isVariable);
3871  s_inst.addProperty("isEnumeration", &Private::isEnumeration);
3872  s_inst.addProperty("isEnumValue", &Private::isEnumValue);
3873  s_inst.addProperty("isTypedef", &Private::isTypedef);
3874  s_inst.addProperty("isFunction", &Private::isFunction);
3875  s_inst.addProperty("isFunctionPtr", &Private::isFunctionPtr);
3876  s_inst.addProperty("isDefine", &Private::isDefine);
3877  s_inst.addProperty("isFriend", &Private::isFriend);
3878  s_inst.addProperty("isProperty", &Private::isProperty);
3879  s_inst.addProperty("isEvent", &Private::isEvent);
3880  s_inst.addProperty("isRelated", &Private::isRelated);
3881  s_inst.addProperty("isForeign", &Private::isForeign);
3882  s_inst.addProperty("isStatic", &Private::isStatic);
3883  s_inst.addProperty("isInline", &Private::isInline);
3884  s_inst.addProperty("isExplicit", &Private::isExplicit);
3885  s_inst.addProperty("isMutable", &Private::isMutable);
3886  s_inst.addProperty("isGettable", &Private::isGettable);
3887  s_inst.addProperty("isPrivateGettable", &Private::isPrivateGettable);
3888  s_inst.addProperty("isProtectedGettable", &Private::isProtectedGettable);
3889  s_inst.addProperty("isSettable", &Private::isSettable);
3890  s_inst.addProperty("isPrivateSettable", &Private::isPrivateSettable);
3891  s_inst.addProperty("isProtectedSettable", &Private::isProtectedSettable);
3892  s_inst.addProperty("isReadable", &Private::isReadable);
3893  s_inst.addProperty("isWritable", &Private::isWritable);
3894  s_inst.addProperty("isAddable", &Private::isAddable);
3895  s_inst.addProperty("isRemovable", &Private::isRemovable);
3896  s_inst.addProperty("isRaisable", &Private::isRaisable);
3897  s_inst.addProperty("isFinal", &Private::isFinal);
3898  s_inst.addProperty("isAbstract", &Private::isAbstract);
3899  s_inst.addProperty("isOverride", &Private::isOverride);
3900  s_inst.addProperty("isInitonly", &Private::isInitonly);
3901  s_inst.addProperty("isOptional", &Private::isOptional);
3902  s_inst.addProperty("isRequired", &Private::isRequired);
3903  s_inst.addProperty("isNonAtomic", &Private::isNonAtomic);
3904  s_inst.addProperty("isCopy", &Private::isCopy);
3905  s_inst.addProperty("isAssign", &Private::isAssign);
3906  s_inst.addProperty("isRetain", &Private::isRetain);
3907  s_inst.addProperty("isWeak", &Private::isWeak);
3908  s_inst.addProperty("isStrong", &Private::isStrong);
3909  s_inst.addProperty("isUnretained", &Private::isUnretained);
3910  s_inst.addProperty("isNew", &Private::isNew);
3911  s_inst.addProperty("isSealed", &Private::isSealed);
3912  s_inst.addProperty("isImplementation", &Private::isImplementation);
3913  s_inst.addProperty("isExternal", &Private::isExternal);
3914  s_inst.addProperty("isAlias", &Private::isAlias);
3915  s_inst.addProperty("isDefault", &Private::isDefault);
3916  s_inst.addProperty("isDelete", &Private::isDelete);
3917  s_inst.addProperty("isNoExcept", &Private::isNoExcept);
3918  s_inst.addProperty("isAttribute", &Private::isAttribute);
3919  s_inst.addProperty("isUNOProperty", &Private::isUNOProperty);
3920  s_inst.addProperty("isReadonly", &Private::isReadonly);
3921  s_inst.addProperty("isBound", &Private::isBound);
3922  s_inst.addProperty("isConstrained", &Private::isConstrained);
3923  s_inst.addProperty("isTransient", &Private::isTransient);
3924  s_inst.addProperty("isMaybeVoid", &Private::isMaybeVoid);
3925  s_inst.addProperty("isMaybeDefault", &Private::isMaybeDefault);
3926  s_inst.addProperty("isMaybeAmbiguous", &Private::isMaybeAmbiguous);
3927  s_inst.addProperty("isPublished", &Private::isPublished);
3928  s_inst.addProperty("isTemplateSpecialization",&Private::isTemplateSpecialization);
3929  s_inst.addProperty("isObjCMethod", &Private::isObjCMethod);
3930  s_inst.addProperty("isObjCProperty", &Private::isObjCProperty);
3931  s_inst.addProperty("isAnonymous", &Private::isAnonymous);
3932  s_inst.addProperty("hasParameters", &Private::hasParameters);
3933  s_inst.addProperty("declType", &Private::declType);
3934  s_inst.addProperty("declArgs", &Private::declArgs);
3935  s_inst.addProperty("anonymousType", &Private::anonymousType);
3936  s_inst.addProperty("anonymousMember", &Private::anonymousMember);
3937  s_inst.addProperty("hasDetails", &Private::hasDetails);
3938  s_inst.addProperty("exception", &Private::exception);
3939  s_inst.addProperty("bitfields", &Private::bitfields);
3940  s_inst.addProperty("initializer", &Private::initializer);
3941  s_inst.addProperty("initializerAsCode", &Private::initializerAsCode);
3942  s_inst.addProperty("hasOneLineInitializer", &Private::hasOneLineInitializer);
3943  s_inst.addProperty("hasMultiLineInitializer", &Private::hasMultiLineInitializer);
3944  s_inst.addProperty("templateArgs", &Private::templateArgs);
3945  s_inst.addProperty("templateAlias", &Private::templateAlias);
3946  s_inst.addProperty("propertyAttrs", &Private::propertyAttrs);
3947  s_inst.addProperty("eventAttrs", &Private::eventAttrs);
3948  s_inst.addProperty("category", &Private::category);
3949  s_inst.addProperty("categoryRelation", &Private::categoryRelation);
3950  s_inst.addProperty("class", &Private::getClass);
3951  s_inst.addProperty("file", &Private::getFile);
3952  s_inst.addProperty("namespace", &Private::getNamespace);
3953  s_inst.addProperty("definition", &Private::definition);
3954  s_inst.addProperty("parameters", &Private::parameters);
3955  s_inst.addProperty("hasConstQualifier", &Private::hasConstQualifier);
3956  s_inst.addProperty("hasVolatileQualifier",&Private::hasVolatileQualifier);
3957  s_inst.addProperty("trailingReturnType", &Private::trailingReturnType);
3958  s_inst.addProperty("extraTypeChars", &Private::extraTypeChars);
3959  s_inst.addProperty("templateDecls", &Private::templateDecls);
3960  s_inst.addProperty("labels", &Private::labels);
3961  s_inst.addProperty("enumBaseType", &Private::enumBaseType);
3962  s_inst.addProperty("enumValues", &Private::enumValues);
3963  s_inst.addProperty("paramDocs", &Private::paramDocs);
3964  s_inst.addProperty("reimplements", &Private::reimplements);
3965  s_inst.addProperty("implements", &Private::implements);
3966  s_inst.addProperty("reimplementedBy", &Private::reimplementedBy);
3967  s_inst.addProperty("implementedBy", &Private::implementedBy);
3968  s_inst.addProperty("examples", &Private::examples);
3969  s_inst.addProperty("typeConstraints", &Private::typeConstraints);
3970  s_inst.addProperty("functionQualifier", &Private::functionQualifier);
3971  s_inst.addProperty("sourceRefs", &Private::sourceRefs);
3972  s_inst.addProperty("sourceRefBys", &Private::sourceRefBys);
3973  s_inst.addProperty("hasSources", &Private::hasSources);
3974  s_inst.addProperty("sourceCode", &Private::sourceCode);
3975  s_inst.addProperty("hasCallGraph", &Private::hasCallGraph);
3976  s_inst.addProperty("callGraph", &Private::callGraph);
3977  s_inst.addProperty("hasCallerGraph", &Private::hasCallerGraph);
3978  s_inst.addProperty("callerGraph", &Private::callerGraph);
3979  s_inst.addProperty("fieldType", &Private::fieldType);
3980  s_inst.addProperty("type", &Private::type);
3981  s_inst.addProperty("detailsVisibleFor", &Private::detailsVisibleFor);
3982  s_inst.addProperty("nameWithContextFor", &Private::nameWithContextFor);
3983  init=TRUE;
3984  }
3985  if (!md->cookie()) { md->setCookie(new MemberContext::Private::Cachable(md)); }
3986 
3987  Cachable &cache = getCache();
3988  cache.propertyAttrs.reset(TemplateList::alloc());
3989  if (md && md->isProperty())
3990  {
3991  if (md->isGettable()) cache.propertyAttrs->append("get");
3992  if (md->isPrivateGettable()) cache.propertyAttrs->append("private get");
3993  if (md->isProtectedGettable()) cache.propertyAttrs->append("protected get");
3994  if (md->isSettable()) cache.propertyAttrs->append("set");
3995  if (md->isPrivateSettable()) cache.propertyAttrs->append("private set");
3996  if (md->isProtectedSettable()) cache.propertyAttrs->append("protected set");
3997  }
3998  cache.eventAttrs.reset(TemplateList::alloc());
3999  if (md && md->isEvent())
4000  {
4001  if (md->isAddable()) cache.eventAttrs->append("add");
4002  if (md->isRemovable()) cache.eventAttrs->append("remove");
4003  if (md->isRaisable()) cache.eventAttrs->append("raise");
4004  }
4005  }
TemplateVariant templateArgs() const
Definition: context.cpp:4405
TemplateVariant isMaybeVoid() const
Definition: context.cpp:4259
bool isAddable() const
Definition: memberdef.cpp:4255
bool isProperty() const
Definition: memberdef.cpp:4185
TemplateVariant eventAttrs() const
Definition: context.cpp:4434
Cookie * cookie() const
Definition: definition.h:352
TemplateVariant hasVolatileQualifier() const
Definition: context.cpp:4554
TemplateVariant isImplementation() const
Definition: context.cpp:4063
static TemplateList * alloc()
Definition: template.cpp:420
TemplateVariant declType() const
Definition: context.cpp:4015
TemplateVariant isCopy() const
Definition: context.cpp:4183
TemplateVariant isRetain() const
Definition: context.cpp:4191
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant hasParameters() const
Definition: context.cpp:4545
Cachable & getCache() const
Definition: context.cpp:5087
TemplateVariant getNamespace() const
Definition: context.cpp:4502
bool isEvent() const
Definition: memberdef.cpp:4190
TemplateVariant isUNOProperty() const
Definition: context.cpp:4239
TemplateVariant parameters() const
Definition: context.cpp:4528
TemplateVariant reimplementedBy() const
Definition: context.cpp:4741
TemplateVariant templateDecls() const
Definition: context.cpp:4618
TemplateVariant getClass() const
Definition: context.cpp:4438
TemplateVariant implements() const
Definition: context.cpp:4679
TemplateVariant labels() const
Definition: context.cpp:4629
TemplateVariant isConstrained() const
Definition: context.cpp:4251
TemplateVariant hasCallerGraph() const
Definition: context.cpp:4942
const bool FALSE
Definition: qglobal.h:370
TemplateVariant isSettable() const
Definition: context.cpp:4123
TemplateVariant isTransient() const
Definition: context.cpp:4255
TemplateVariant propertyAttrs() const
Definition: context.cpp:4430
TemplateVariant isReadable() const
Definition: context.cpp:4135
TemplateVariant fieldType() const
Definition: context.cpp:4011
TemplateVariant extraTypeChars() const
Definition: context.cpp:4572
TemplateVariant isNonAtomic() const
Definition: context.cpp:4179
TemplateVariant templateAlias() const
Definition: context.cpp:4421
TemplateVariant hasConstQualifier() const
Definition: context.cpp:4549
TemplateVariant isProtectedGettable() const
Definition: context.cpp:4119
TemplateVariant typeConstraints() const
Definition: context.cpp:4795
init
Definition: train.py:42
TemplateVariant detailsVisibleFor() const
Definition: context.cpp:5009
TemplateVariant exception() const
Definition: context.cpp:4043
TemplateVariant isOverride() const
Definition: context.cpp:4163
TemplateVariant isMutable() const
Definition: context.cpp:4107
TemplateVariant isRemovable() const
Definition: context.cpp:4147
TemplateVariant isPrivateSettable() const
Definition: context.cpp:4127
TemplateVariant isDefine() const
Definition: context.cpp:4323
TemplateVariant getFile() const
Definition: context.cpp:4486
TemplateVariant isTemplateSpecialization() const
Definition: context.cpp:4275
TemplateVariant type() const
Definition: context.cpp:4993
TemplateVariant isInline() const
Definition: context.cpp:4099
TemplateVariant isPublished() const
Definition: context.cpp:4271
TemplateVariant isDefault() const
Definition: context.cpp:4223
TemplateVariant isStrong() const
Definition: context.cpp:4199
TemplateVariant isProtectedSettable() const
Definition: context.cpp:4131
TemplateVariant functionQualifier() const
Definition: context.cpp:4808
TemplateVariant isFunctionPtr() const
Definition: context.cpp:4083
TemplateVariant initializer() const
Definition: context.cpp:4299
TemplateVariant isSlot() const
Definition: context.cpp:4071
TemplateVariant sourceCode() const
Definition: context.cpp:4845
TemplateVariant isRequired() const
Definition: context.cpp:4175
TemplateVariant isObjCProperty() const
Definition: context.cpp:4059
void setCookie(Cookie *cookie)
Definition: definition.h:351
bool isRemovable() const
Definition: memberdef.cpp:4260
void addBaseProperties(PropertyMapper< MemberContext::Private > &inst)
Definition: context.cpp:1364
TemplateVariant isExternal() const
Definition: context.cpp:4215
TemplateVariant anonymousMember() const
Definition: context.cpp:4352
TemplateVariant enumValues() const
Definition: context.cpp:4388
TemplateVariant isAbstract() const
Definition: context.cpp:4159
TemplateVariant declArgs() const
Definition: context.cpp:4029
TemplateVariant isAssign() const
Definition: context.cpp:4187
bool isSettable() const
Definition: memberdef.cpp:4240
TemplateVariant category() const
Definition: context.cpp:4454
bool isGettable() const
Definition: memberdef.cpp:4225
TemplateVariant hasCallGraph() const
Definition: context.cpp:4882
TemplateVariant isInitonly() const
Definition: context.cpp:4167
bool isPrivateGettable() const
Definition: memberdef.cpp:4230
TemplateVariant isObjCMethod() const
Definition: context.cpp:4055
TemplateVariant isAlias() const
Definition: context.cpp:4219
TemplateVariant isBound() const
Definition: context.cpp:4247
TemplateVariant isAddable() const
Definition: context.cpp:4143
TemplateVariant isVariable() const
Definition: context.cpp:4287
TemplateVariant isPrivateGettable() const
Definition: context.cpp:4115
TemplateVariant isRelated() const
Definition: context.cpp:4372
TemplateVariant isFunction() const
Definition: context.cpp:4079
TemplateVariant definition() const
Definition: context.cpp:4518
TemplateVariant anonymousType() const
Definition: context.cpp:4332
TemplateVariant isMaybeAmbiguous() const
Definition: context.cpp:4267
TemplateVariant isWeak() const
Definition: context.cpp:4195
TemplateVariant nameWithContextFor() const
Definition: context.cpp:5041
TemplateVariant isEnumeration() const
Definition: context.cpp:4291
TemplateVariant paramDocs() const
Definition: context.cpp:4649
TemplateVariant isAttribute() const
Definition: context.cpp:4235
TemplateVariant enumBaseType() const
Definition: context.cpp:4376
TemplateVariant callGraph() const
Definition: context.cpp:4893
TemplateVariant hasOneLineInitializer() const
Definition: context.cpp:4380
TemplateVariant isGettable() const
Definition: context.cpp:4111
TemplateVariant hasMultiLineInitializer() const
Definition: context.cpp:4384
TemplateVariant isExplicit() const
Definition: context.cpp:4103
TemplateVariant sourceRefs() const
Definition: context.cpp:4823
TemplateVariant hasSources() const
Definition: context.cpp:4841
TemplateVariant isForeign() const
Definition: context.cpp:4091
TemplateVariant isMaybeDefault() const
Definition: context.cpp:4263
TemplateVariant reimplements() const
Definition: context.cpp:4698
TemplateVariant sourceRefBys() const
Definition: context.cpp:4832
TemplateVariant hasDetails() const
Definition: context.cpp:4295
TemplateVariant isFriend() const
Definition: context.cpp:4087
TemplateVariant categoryRelation() const
Definition: context.cpp:4470
TemplateVariant isStatic() const
Definition: context.cpp:4051
bool isPrivateSettable() const
Definition: memberdef.cpp:4245
TemplateVariant isAnonymous() const
Definition: context.cpp:4327
TemplateVariant isNoExcept() const
Definition: context.cpp:4231
TemplateVariant isFinal() const
Definition: context.cpp:4155
TemplateVariant isTypedef() const
Definition: context.cpp:4075
TemplateVariant isSignal() const
Definition: context.cpp:4067
TemplateVariant examples() const
Definition: context.cpp:4784
TemplateVariant callerGraph() const
Definition: context.cpp:4953
TemplateVariant isUnretained() const
Definition: context.cpp:4203
bool isRaisable() const
Definition: memberdef.cpp:4265
TemplateVariant isProperty() const
Definition: context.cpp:4279
TemplateVariant isRaisable() const
Definition: context.cpp:4151
TemplateVariant isReadonly() const
Definition: context.cpp:4243
TemplateVariant isNew() const
Definition: context.cpp:4207
const bool TRUE
Definition: qglobal.h:371
TemplateVariant isEvent() const
Definition: context.cpp:4095
TemplateVariant bitfields() const
Definition: context.cpp:4047
TemplateVariant isEnumValue() const
Definition: context.cpp:4283
TemplateVariant trailingReturnType() const
Definition: context.cpp:4559
bool isProtectedSettable() const
Definition: memberdef.cpp:4250
TemplateVariant isWritable() const
Definition: context.cpp:4139
static PropertyMapper< MemberContext::Private > s_inst
Definition: context.cpp:5093
TemplateVariant implementedBy() const
Definition: context.cpp:4717
bool isProtectedGettable() const
Definition: memberdef.cpp:4235
TemplateVariant isSealed() const
Definition: context.cpp:4211
TemplateVariant isOptional() const
Definition: context.cpp:4171
TemplateVariant isDelete() const
Definition: context.cpp:4227
TemplateVariant initializerAsCode() const
Definition: context.cpp:4303
virtual MemberContext::Private::~Private ( )
inlinevirtual

Definition at line 4006 of file context.cpp.

4006 {}

Member Function Documentation

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

Definition at line 4765 of file context.cpp.

4766  {
4767  if (m_memberDef->hasExamples())
4768  {
4770  Example *ex;
4771  for (it.toFirst();(ex=it.current());++it)
4772  {
4774  s->set("text",ex->name);
4775  s->set("isLinkable",TRUE);
4776  s->set("anchor",ex->anchor);
4777  s->set("fileName",ex->file);
4778  s->set("isReference",FALSE);
4779  s->set("externalReference","");
4780  list->append(s);
4781  }
4782  }
4783  }
virtual void set(const char *name, const TemplateVariant &v)
Definition: template.cpp:275
MemberDef * m_memberDef
Definition: context.cpp:5046
const bool FALSE
Definition: qglobal.h:370
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
bool hasExamples()
Definition: memberdef.cpp:933
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
ExampleSDict * getExamples() const
Definition: memberdef.cpp:4502
static TemplateStruct * alloc()
Definition: template.cpp:294
void MemberContext::Private::addTemplateDecls ( TemplateList tl) const
inline

Definition at line 4576 of file context.cpp.

4577  {
4580  {
4582  ArgumentList *tal;
4583  for (ali.toFirst();(tal=ali.current());++ali)
4584  {
4585  if (tal->count()>0)
4586  {
4588  tl->append(al);
4589  }
4590  }
4591  }
4592  else
4593  {
4595  {
4596  QList<ArgumentList> tempParamLists;
4597  cd->getTemplateParameterLists(tempParamLists);
4598  //printf("#tempParamLists=%d\n",tempParamLists.count());
4599  QListIterator<ArgumentList> ali(tempParamLists);
4600  ArgumentList *tal;
4601  for (ali.toFirst();(tal=ali.current());++ali)
4602  {
4603  if (tal->count()>0)
4604  {
4606  tl->append(al);
4607  }
4608  }
4609  }
4610  if (m_memberDef->templateArguments()) // function template prefix
4611  {
4614  tl->append(al);
4615  }
4616  }
4617  }
This class represents an function or template argument list.
Definition: arguments.h:82
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isTemplateSpecialization() const
Definition: memberdef.cpp:4443
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
uint count() const
Definition: qlist.h:66
uint count() const
Definition: qlist.h:131
static ArgumentListContext * alloc()
Definition: context.h:1161
QList< ArgumentList > * definitionTemplateParameterLists() const
Definition: memberdef.cpp:4527
type * current() const
Definition: qlist.h:146
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
void getTemplateParameterLists(QList< ArgumentList > &lists) const
Definition: classdef.cpp:3838
bool isRelated() const
Definition: memberdef.cpp:4195
ArgumentList * templateArguments() const
Definition: memberdef.cpp:4522
TemplateVariant MemberContext::Private::anonymousMember ( ) const
inline

Definition at line 4352 of file context.cpp.

4353  {
4354  Cachable &cache = getCache();
4355  if (!cache.anonymousMember)
4356  {
4358  if (md)
4359  {
4360  cache.anonymousMember.reset(MemberContext::alloc(md));
4361  }
4362  }
4363  if (cache.anonymousMember)
4364  {
4365  return cache.anonymousMember.get();
4366  }
4367  else
4368  {
4369  return FALSE;
4370  }
4371  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
MemberDef * fromAnonymousMember() const
Definition: memberdef.cpp:4760
static MemberContext * alloc(MemberDef *md)
Definition: context.h:351
TemplateVariant MemberContext::Private::anonymousType ( ) const
inline

Definition at line 4332 of file context.cpp.

4333  {
4334  Cachable &cache = getCache();
4335  if (!cache.anonymousType)
4336  {
4338  if (cd)
4339  {
4340  cache.anonymousType.reset(ClassContext::alloc(cd));
4341  }
4342  }
4343  if (cache.anonymousType)
4344  {
4345  return cache.anonymousType.get();
4346  }
4347  else
4348  {
4349  return FALSE;
4350  }
4351  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
ClassDef * getClassDefOfAnonymousType()
Definition: memberdef.cpp:1236
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant MemberContext::Private::bitfields ( ) const
inline

Definition at line 4047 of file context.cpp.

4048  {
4050  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
MemberDef * m_memberDef
Definition: context.cpp:5046
const char * bitfieldString() const
Definition: memberdef.cpp:4050
TemplateVariant MemberContext::Private::callerGraph ( ) const
inline

Definition at line 4953 of file context.cpp.

4954  {
4955  if (hasCallerGraph().toBool())
4956  {
4957  DotCallGraph *cg = getCallerGraph();
4958  QGString result;
4959  FTextStream t(&result);
4960  switch (g_globals.outputFormat)
4961  {
4963  {
4968  );
4969  }
4970  break;
4972  {
4977  );
4978  }
4979  break;
4980  // TODO: support other generators
4981  default:
4982  err("context.cpp: output format not yet supported");
4983  break;
4984  }
4986  return TemplateVariant(result.data(),TRUE);
4987  }
4988  else
4989  {
4990  return TemplateVariant("");
4991  }
4992  }
char * data() const
Definition: qgstring.h:42
static QCString result
MemberDef * m_memberDef
Definition: context.cpp:5046
int dynSectionId
Definition: context.cpp:69
static QCString htmlFileExtension
Definition: doxygen.h:130
TemplateVariant hasCallerGraph() const
Definition: context.cpp:4942
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
QCString outputDir
Definition: context.cpp:70
DotCallGraph * getCallerGraph() const
Definition: context.cpp:4933
Definition: dot.h:43
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 writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3824
ContextOutputFormat outputFormat
Definition: context.cpp:71
QCString getOutputFileBase() const
Definition: memberdef.cpp:941
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 MemberContext::Private::callGraph ( ) const
inline

Definition at line 4893 of file context.cpp.

4894  {
4895  if (hasCallGraph().toBool())
4896  {
4897  DotCallGraph *cg = getCallGraph();
4898  QGString result;
4899  FTextStream t(&result);
4900  switch (g_globals.outputFormat)
4901  {
4903  {
4908  );
4909  }
4910  break;
4912  {
4917  );
4918  }
4919  break;
4920  // TODO: support other generators
4921  default:
4922  err("context.cpp: output format not yet supported");
4923  break;
4924  }
4926  return TemplateVariant(result.data(),TRUE);
4927  }
4928  else
4929  {
4930  return TemplateVariant("");
4931  }
4932  }
char * data() const
Definition: qgstring.h:42
static QCString result
MemberDef * m_memberDef
Definition: context.cpp:5046
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
Definition: dot.h:43
TemplateVariant hasCallGraph() const
Definition: context.cpp:4882
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 writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3824
ContextOutputFormat outputFormat
Definition: context.cpp:71
DotCallGraph * getCallGraph() const
Definition: context.cpp:4873
QCString getOutputFileBase() const
Definition: memberdef.cpp:941
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 MemberContext::Private::category ( ) const
inline

Definition at line 4454 of file context.cpp.

4455  {
4456  Cachable &cache = getCache();
4457  if (!cache.category && m_memberDef->category())
4458  {
4459  cache.category.reset(ClassContext::alloc(m_memberDef->category()));
4460  }
4461  if (cache.category)
4462  {
4463  return cache.category.get();
4464  }
4465  else
4466  {
4467  return TemplateVariant(FALSE);
4468  }
4469  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
ClassDef * category() const
Definition: memberdef.cpp:4796
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
TemplateVariant MemberContext::Private::categoryRelation ( ) const
inline

Definition at line 4470 of file context.cpp.

4471  {
4472  Cachable &cache = getCache();
4473  if (!cache.categoryRelation && m_memberDef->categoryRelation())
4474  {
4475  cache.categoryRelation.reset(MemberContext::alloc(m_memberDef->categoryRelation()));
4476  }
4477  if (cache.categoryRelation)
4478  {
4479  return cache.categoryRelation.get();
4480  }
4481  else
4482  {
4483  return TemplateVariant(FALSE);
4484  }
4485  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
MemberDef * categoryRelation() const
Definition: memberdef.cpp:4806
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
static MemberContext * alloc(MemberDef *md)
Definition: context.h:351
TemplateVariant MemberContext::Private::declArgs ( ) const
inline

Definition at line 4029 of file context.cpp.

4030  {
4031  Cachable &cache = getCache();
4032  if (!cache.declArgsParsed)
4033  {
4035  cache.declArgsParsed = TRUE;
4036  return cache.declArgs;
4037  }
4038  else
4039  {
4040  return cache.declArgs;
4041  }
4042  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const char * argsString() const
Definition: memberdef.cpp:4040
const bool TRUE
Definition: qglobal.h:371
TemplateVariant MemberContext::Private::declType ( ) const
inline

Definition at line 4015 of file context.cpp.

4016  {
4017  Cachable &cache = getCache();
4018  if (!cache.declTypeParsed)
4019  {
4021  cache.declTypeParsed = TRUE;
4022  return cache.declType;
4023  }
4024  else
4025  {
4026  return cache.declType;
4027  }
4028  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
QCString getDeclType() const
Definition: memberdef.cpp:1383
const bool TRUE
Definition: qglobal.h:371
TemplateVariant MemberContext::Private::definition ( ) const
inline

Definition at line 4518 of file context.cpp.

4519  {
4522  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
MemberDef * m_memberDef
Definition: context.cpp:5046
QCString displayDefinition() const
Definition: memberdef.cpp:2403
TemplateVariant MemberContext::Private::detailsVisibleFor ( ) const
inline

Definition at line 5009 of file context.cpp.

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

Definition at line 4376 of file context.cpp.

4377  {
4378  return m_memberDef->enumBaseType();
4379  }
MemberDef * m_memberDef
Definition: context.cpp:5046
QCString enumBaseType() const
Definition: memberdef.cpp:4821
TemplateVariant MemberContext::Private::enumValues ( ) const
inline

Definition at line 4388 of file context.cpp.

4389  {
4390  Cachable &cache = getCache();
4391  if (!cache.enumValues)
4392  {
4394  if (ml)
4395  {
4396  cache.enumValues.reset(MemberListContext::alloc(ml));
4397  }
4398  else
4399  {
4400  cache.enumValues.reset(MemberListContext::alloc());
4401  }
4402  }
4403  return cache.enumValues.get();
4404  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
MemberList * enumFieldList() const
Definition: memberdef.cpp:4497
static MemberListContext * alloc()
Definition: context.h:954
TemplateVariant MemberContext::Private::eventAttrs ( ) const
inline

Definition at line 4434 of file context.cpp.

4435  {
4436  return getCache().eventAttrs.get();
4437  }
Cachable & getCache() const
Definition: context.cpp:5087
T * get() const
Definition: context.cpp:111
SharedPtr< TemplateList > eventAttrs
Definition: context.cpp:5085
TemplateVariant MemberContext::Private::examples ( ) const
inline

Definition at line 4784 of file context.cpp.

4785  {
4786  Cachable &cache = getCache();
4787  if (!cache.examples)
4788  {
4789  TemplateList *exampleList = TemplateList::alloc();
4790  addExamples(exampleList);
4791  cache.examples.reset(exampleList);
4792  }
4793  return cache.examples.get();
4794  }
static TemplateList * alloc()
Definition: template.cpp:420
Cachable & getCache() const
Definition: context.cpp:5087
Default implementation of a context value of type list.
Definition: template.h:376
void addExamples(TemplateList *list) const
Definition: context.cpp:4765
TemplateVariant MemberContext::Private::exception ( ) const
inline

Definition at line 4043 of file context.cpp.

4044  {
4046  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
MemberDef * m_memberDef
Definition: context.cpp:5046
const char * excpString() const
Definition: memberdef.cpp:4045
TemplateVariant MemberContext::Private::extraTypeChars ( ) const
inline

Definition at line 4572 of file context.cpp.

4573  {
4574  return m_memberDef->extraTypeChars();
4575  }
MemberDef * m_memberDef
Definition: context.cpp:5046
const char * extraTypeChars() const
Definition: memberdef.cpp:4030
TemplateVariant MemberContext::Private::fieldType ( ) const
inline

Definition at line 4011 of file context.cpp.

4012  {
4014  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
MemberDef * m_memberDef
Definition: context.cpp:5046
QCString fieldType() const
Definition: memberdef.cpp:3084
TemplateVariant MemberContext::Private::functionQualifier ( ) const
inline

Definition at line 4808 of file context.cpp.

4809  {
4810  if (!m_memberDef->isObjCMethod() &&
4813  )
4814  )
4815  {
4816  return "()";
4817  }
4818  else
4819  {
4820  return "";
4821  }
4822  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isPrototype() const
Definition: memberdef.cpp:4507
bool isSignal() const
Definition: memberdef.cpp:4130
bool isSlot() const
Definition: memberdef.cpp:4135
bool isObjCMethod() const
Definition: memberdef.cpp:3956
bool isFunction() const
Definition: memberdef.cpp:4160
TemplateVariant MemberContext::Private::get ( const char *  n) const
inline

Definition at line 4007 of file context.cpp.

4008  {
4009  return s_inst.get(this,n);
4010  }
std::void_t< T > n
static PropertyMapper< MemberContext::Private > s_inst
Definition: context.cpp:5093
Cachable& MemberContext::Private::getCache ( ) const
inlineprivate

Definition at line 5087 of file context.cpp.

5088  {
5089  Cachable *c = static_cast<Cachable*>(m_memberDef->cookie());
5090  assert(c!=0);
5091  return *c;
5092  }
Cookie * cookie() const
Definition: definition.h:352
MemberDef * m_memberDef
Definition: context.cpp:5046
DotCallGraph* MemberContext::Private::getCallerGraph ( ) const
inline

Definition at line 4933 of file context.cpp.

4934  {
4935  Cachable &cache = getCache();
4936  if (!cache.callerGraph)
4937  {
4938  cache.callerGraph.reset(new DotCallGraph(m_memberDef,TRUE));
4939  }
4940  return cache.callerGraph.get();
4941  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool TRUE
Definition: qglobal.h:371
DotCallGraph* MemberContext::Private::getCallGraph ( ) const
inline

Definition at line 4873 of file context.cpp.

4874  {
4875  Cachable &cache = getCache();
4876  if (!cache.callGraph)
4877  {
4878  cache.callGraph.reset(new DotCallGraph(m_memberDef,FALSE));
4879  }
4880  return cache.callGraph.get();
4881  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
TemplateVariant MemberContext::Private::getClass ( ) const
inline

Definition at line 4438 of file context.cpp.

4439  {
4440  Cachable &cache = getCache();
4441  if (!cache.classDef && m_memberDef->getClassDef())
4442  {
4443  cache.classDef.reset(ClassContext::alloc(m_memberDef->getClassDef()));
4444  }
4445  if (cache.classDef)
4446  {
4447  return cache.classDef.get();
4448  }
4449  else
4450  {
4451  return TemplateVariant(FALSE);
4452  }
4453  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
static ClassContext * alloc(ClassDef *cd)
Definition: context.h:256
ArgumentList* MemberContext::Private::getDefArgList ( ) const
inline

Definition at line 4523 of file context.cpp.

4524  {
4525  return (m_memberDef->isDocsForDefinition()) ?
4527  }
bool isDocsForDefinition() const
Definition: memberdef.cpp:4482
MemberDef * m_memberDef
Definition: context.cpp:5046
ArgumentList * declArgumentList() const
Definition: memberdef.cpp:4517
ArgumentList * argumentList() const
Definition: memberdef.cpp:4512
TemplateVariant MemberContext::Private::getFile ( ) const
inline

Definition at line 4486 of file context.cpp.

4487  {
4488  Cachable &cache = getCache();
4489  if (!cache.fileDef && m_memberDef->getFileDef())
4490  {
4491  cache.fileDef.reset(FileContext::alloc(m_memberDef->getFileDef()));
4492  }
4493  if (cache.fileDef)
4494  {
4495  return cache.fileDef.get();
4496  }
4497  else
4498  {
4499  return TemplateVariant(FALSE);
4500  }
4501  }
static FileContext * alloc(FileDef *fd)
Definition: context.h:294
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
FileDef * getFileDef() const
Definition: memberdef.cpp:4075
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant MemberContext::Private::getNamespace ( ) const
inline

Definition at line 4502 of file context.cpp.

4503  {
4504  Cachable &cache = getCache();
4505  if (!cache.namespaceDef && m_memberDef->getNamespaceDef())
4506  {
4507  cache.namespaceDef.reset(NamespaceContext::alloc(m_memberDef->getNamespaceDef()));
4508  }
4509  if (cache.namespaceDef)
4510  {
4511  return cache.namespaceDef.get();
4512  }
4513  else
4514  {
4515  return TemplateVariant(FALSE);
4516  }
4517  }
static NamespaceContext * alloc(NamespaceDef *nd)
Definition: context.h:275
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
NamespaceDef * getNamespaceDef() const
Definition: memberdef.cpp:4080
TemplateVariant MemberContext::Private::handleDetailsVisibleFor ( const QValueList< TemplateVariant > &  args) const
inline

Definition at line 4997 of file context.cpp.

4998  {
4999  if (args.count()==1)
5000  {
5001  return m_memberDef->isDetailedSectionVisible(args[0].toString()=="module",args[0].toString()=="file");
5002  }
5003  else
5004  {
5005  err(".detailsVisibleFor should take one string argument, got %d\n",args.count());
5006  }
5007  return TemplateVariant();
5008  }
bool isDetailedSectionVisible(bool inGroup, bool inFile) const
Definition: memberdef.cpp:1920
MemberDef * m_memberDef
Definition: context.cpp:5046
uint count() const
Definition: qvaluelist.h:394
string toString(const TVector3 &xyz, int w=9)
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
TemplateVariant MemberContext::Private::handleNameWithContextFor ( const QValueList< TemplateVariant > &  args) const
inline

Definition at line 5013 of file context.cpp.

5014  {
5015  if (args.count()==1)
5016  {
5018  QCString n = m_memberDef->name();
5019  QCString ctx = args[0].toString();
5022  {
5024  }
5025  if (ctx=="module" && m_memberDef->getClassDef() && !m_memberDef->isRelated())
5026  {
5028  }
5029  else if ((ctx=="module" || ctx=="file") && m_memberDef->getNamespaceDef())
5030  {
5032  }
5033  return n;
5034  }
5035  else
5036  {
5037  err(".nameWithContextFor should take one string argument, got %d\n",args.count());
5038  }
5039  return TemplateVariant();
5040  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool livesInsideEnum() const
Definition: memberdef.cpp:4492
QCString displayName(bool=TRUE) const
QCString displayName(bool includeScope=TRUE) const
Definition: classdef.cpp:312
SrcLangExt
Definition: types.h:41
uint count() const
Definition: qvaluelist.h:394
QCString displayName(bool=TRUE) const
Definition: memberdef.cpp:4887
QCString getLanguageSpecificSeparator(SrcLangExt lang, bool classScope)
Definition: util.cpp:8065
MemberDef * getEnumScope() const
Definition: memberdef.cpp:4487
const QCString & name() const
Definition: definition.h:114
SrcLangExt getLanguage() const
std::void_t< T > n
QCString & prepend(const char *s)
Definition: qcstring.cpp:387
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
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
NamespaceDef * getNamespaceDef() const
Definition: memberdef.cpp:4080
bool isRelated() const
Definition: memberdef.cpp:4195
const bool TRUE
Definition: qglobal.h:371
TemplateVariant MemberContext::Private::hasCallerGraph ( ) const
inline

Definition at line 4942 of file context.cpp.

4943  {
4944  static bool haveDot = Config_getBool("HAVE_DOT");
4945  if (m_memberDef->hasCallerGraph() && haveDot &&
4947  {
4948  DotCallGraph *cg = getCallerGraph();
4949  return !cg->isTooBig() && !cg->isTrivial();
4950  }
4951  return TemplateVariant(FALSE);
4952  }
bool isTooBig() const
Definition: dot.cpp:3959
MemberDef * m_memberDef
Definition: context.cpp:5046
const bool FALSE
Definition: qglobal.h:370
bool isSignal() const
Definition: memberdef.cpp:4130
bool isSlot() const
Definition: memberdef.cpp:4135
bool hasCallerGraph() const
Definition: memberdef.cpp:4562
DotCallGraph * getCallerGraph() const
Definition: context.cpp:4933
bool isTrivial() const
Definition: dot.cpp:3954
#define Config_getBool(val)
Definition: config.cpp:664
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
bool isFunction() const
Definition: memberdef.cpp:4160
TemplateVariant MemberContext::Private::hasCallGraph ( ) const
inline

Definition at line 4882 of file context.cpp.

4883  {
4884  static bool haveDot = Config_getBool("HAVE_DOT");
4885  if (m_memberDef->hasCallGraph() && haveDot &&
4887  {
4888  DotCallGraph *cg = getCallGraph();
4889  return !cg->isTooBig() && !cg->isTrivial();
4890  }
4891  return TemplateVariant(FALSE);
4892  }
bool isTooBig() const
Definition: dot.cpp:3959
MemberDef * m_memberDef
Definition: context.cpp:5046
const bool FALSE
Definition: qglobal.h:370
bool isSignal() const
Definition: memberdef.cpp:4130
bool isSlot() const
Definition: memberdef.cpp:4135
bool hasCallGraph() const
Definition: memberdef.cpp:4557
bool isTrivial() const
Definition: dot.cpp:3954
#define Config_getBool(val)
Definition: config.cpp:664
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
DotCallGraph * getCallGraph() const
Definition: context.cpp:4873
bool isFunction() const
Definition: memberdef.cpp:4160
TemplateVariant MemberContext::Private::hasConstQualifier ( ) const
inline

Definition at line 4549 of file context.cpp.

4550  {
4551  ArgumentList *al = getDefArgList();
4552  return al ? al->constSpecifier : FALSE;
4553  }
This class represents an function or template argument list.
Definition: arguments.h:82
const bool FALSE
Definition: qglobal.h:370
bool constSpecifier
Definition: arguments.h:99
ArgumentList * getDefArgList() const
Definition: context.cpp:4523
TemplateVariant MemberContext::Private::hasDetails ( ) const
inline

Definition at line 4295 of file context.cpp.

4296  {
4298  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isDetailedSectionLinkable() const
Definition: memberdef.cpp:1852
TemplateVariant MemberContext::Private::hasMultiLineInitializer ( ) const
inline

Definition at line 4384 of file context.cpp.

4385  {
4387  }
bool hasMultiLineInitializer() const
Definition: memberdef.cpp:3460
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::hasOneLineInitializer ( ) const
inline

Definition at line 4380 of file context.cpp.

4381  {
4383  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool hasOneLineInitializer() const
Definition: memberdef.cpp:3451
TemplateVariant MemberContext::Private::hasParameters ( ) const
inline

Definition at line 4545 of file context.cpp.

4546  {
4547  return getDefArgList()!=0;
4548  }
ArgumentList * getDefArgList() const
Definition: context.cpp:4523
TemplateVariant MemberContext::Private::hasSources ( ) const
inline

Definition at line 4841 of file context.cpp.

4842  {
4844  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
bool hasSources() const
TemplateVariant MemberContext::Private::hasVolatileQualifier ( ) const
inline

Definition at line 4554 of file context.cpp.

4555  {
4556  ArgumentList *al = getDefArgList();
4557  return al ? al->volatileSpecifier : FALSE;
4558  }
This class represents an function or template argument list.
Definition: arguments.h:82
const bool FALSE
Definition: qglobal.h:370
bool volatileSpecifier
Definition: arguments.h:101
ArgumentList * getDefArgList() const
Definition: context.cpp:4523
TemplateVariant MemberContext::Private::implementedBy ( ) const
inline

Definition at line 4717 of file context.cpp.

4718  {
4719  Cachable &cache = getCache();
4720  if (!cache.implementedBy)
4721  {
4723  cache.implementedBy.reset(TemplateList::alloc());
4724  if (ml)
4725  {
4726  MemberListIterator mli(*ml);
4727  MemberDef *md=0;
4728  for (mli.toFirst();(md=mli.current());++mli)
4729  {
4730  ClassDef *cd = md->getClassDef();
4731  if (cd && (md->virtualness()==Pure || cd->compoundType()==ClassDef::Interface))
4732  {
4733  MemberContext *mc = new MemberContext(md);
4734  cache.implementedBy->append(mc);
4735  }
4736  }
4737  }
4738  }
4739  return cache.implementedBy.get();
4740  }
CompoundType compoundType() const
Definition: classdef.cpp:4394
static TemplateList * alloc()
Definition: template.cpp:420
MemberList * reimplementedBy() const
Definition: memberdef.cpp:883
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
Definition: types.h:29
Specifier virtualness(int count=0) const
Definition: memberdef.cpp:3560
MemberContext(MemberDef *)
Definition: context.cpp:5099
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
TemplateVariant MemberContext::Private::implements ( ) const
inline

Definition at line 4679 of file context.cpp.

4680  {
4681  Cachable &cache = getCache();
4682  if (!cache.implements)
4683  {
4685  cache.implements.reset(TemplateList::alloc());
4686  if (md)
4687  {
4688  ClassDef *cd = md->getClassDef();
4689  if (cd && (md->virtualness()==Pure || cd->compoundType()==ClassDef::Interface))
4690  {
4692  cache.implements->append(mc);
4693  }
4694  }
4695  }
4696  return cache.implements.get();
4697  }
CompoundType compoundType() const
Definition: classdef.cpp:4394
static TemplateList * alloc()
Definition: template.cpp:420
MemberDef * reimplements() const
Definition: memberdef.cpp:878
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
Definition: types.h:29
Specifier virtualness(int count=0) const
Definition: memberdef.cpp:3560
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
static MemberContext * alloc(MemberDef *md)
Definition: context.h:351
TemplateVariant MemberContext::Private::initializer ( ) const
inline

Definition at line 4299 of file context.cpp.

4300  {
4302  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
MemberDef * m_memberDef
Definition: context.cpp:5046
const QCString & initializer() const
Definition: memberdef.cpp:4055
TemplateVariant MemberContext::Private::initializerAsCode ( ) const
inline

Definition at line 4303 of file context.cpp.

4304  {
4305  Cachable &cache = getCache();
4306  if (!cache.initializerParsed)
4307  {
4308  QCString scopeName;
4309  if (m_memberDef->getClassDef())
4310  {
4311  scopeName = m_memberDef->getClassDef()->name();
4312  }
4313  else if (m_memberDef->getNamespaceDef())
4314  {
4315  scopeName = m_memberDef->getNamespaceDef()->name();
4316  }
4317  cache.initializer = parseCode(m_memberDef,scopeName,relPathAsString(),
4319  cache.initializerParsed = TRUE;
4320  }
4321  return cache.initializer;
4322  }
MemberDef * m_memberDef
Definition: context.cpp:5046
static TemplateVariant parseCode(MemberDef *md, const QCString &scopeName, const QCString &relPath, const QCString &code, int startLine=-1, int endLine=-1, bool showLineNumbers=FALSE)
Definition: context.cpp:1266
Cachable & getCache() const
Definition: context.cpp:5087
const QCString & name() const
Definition: definition.h:114
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
const QCString & initializer() const
Definition: memberdef.cpp:4055
NamespaceDef * getNamespaceDef() const
Definition: memberdef.cpp:4080
const bool TRUE
Definition: qglobal.h:371
TemplateVariant MemberContext::Private::isAbstract ( ) const
inline

Definition at line 4159 of file context.cpp.

4160  {
4161  return m_memberDef->isAbstract();
4162  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isAbstract() const
Definition: memberdef.cpp:4305
TemplateVariant MemberContext::Private::isAddable ( ) const
inline

Definition at line 4143 of file context.cpp.

4144  {
4145  return m_memberDef->isAddable();
4146  }
bool isAddable() const
Definition: memberdef.cpp:4255
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isAlias ( ) const
inline

Definition at line 4219 of file context.cpp.

4220  {
4221  return m_memberDef->isAlias();
4222  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isAlias() const
Definition: memberdef.cpp:4362
TemplateVariant MemberContext::Private::isAnonymous ( ) const
inline

Definition at line 4327 of file context.cpp.

4328  {
4330  return !name.isEmpty() && name.at(0)=='@';
4331  }
bool isEmpty() const
Definition: qcstring.h:189
MemberDef * m_memberDef
Definition: context.cpp:5046
char & at(uint i) const
Definition: qcstring.h:326
const QCString & name() const
Definition: definition.h:114
TemplateVariant MemberContext::Private::isAssign ( ) const
inline

Definition at line 4187 of file context.cpp.

4188  {
4189  return m_memberDef->isAssign();
4190  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isAssign() const
Definition: memberdef.cpp:4330
TemplateVariant MemberContext::Private::isAttribute ( ) const
inline

Definition at line 4235 of file context.cpp.

4236  {
4237  return m_memberDef->isAttribute();
4238  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isAttribute() const
Definition: memberdef.cpp:4382
TemplateVariant MemberContext::Private::isBound ( ) const
inline

Definition at line 4247 of file context.cpp.

4248  {
4249  return m_memberDef->isBound();
4250  }
bool isBound() const
Definition: memberdef.cpp:4397
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isConstrained ( ) const
inline

Definition at line 4251 of file context.cpp.

4252  {
4253  return m_memberDef->isConstrained();
4254  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isConstrained() const
Definition: memberdef.cpp:4402
TemplateVariant MemberContext::Private::isCopy ( ) const
inline

Definition at line 4183 of file context.cpp.

4184  {
4185  return m_memberDef->isCopy();
4186  }
bool isCopy() const
Definition: memberdef.cpp:4325
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isDefault ( ) const
inline

Definition at line 4223 of file context.cpp.

4224  {
4225  return m_memberDef->isDefault();
4226  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isDefault() const
Definition: memberdef.cpp:4367
TemplateVariant MemberContext::Private::isDefine ( ) const
inline

Definition at line 4323 of file context.cpp.

4324  {
4325  return m_memberDef->isDefine();
4326  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isDefine() const
Definition: memberdef.cpp:4170
TemplateVariant MemberContext::Private::isDelete ( ) const
inline

Definition at line 4227 of file context.cpp.

4228  {
4229  return m_memberDef->isDelete();
4230  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isDelete() const
Definition: memberdef.cpp:4372
TemplateVariant MemberContext::Private::isEnumeration ( ) const
inline

Definition at line 4291 of file context.cpp.

4292  {
4293  return m_memberDef->isEnumerate();
4294  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isEnumerate() const
Definition: memberdef.cpp:4145
TemplateVariant MemberContext::Private::isEnumValue ( ) const
inline

Definition at line 4283 of file context.cpp.

4284  {
4285  return m_memberDef->isEnumValue();
4286  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isEnumValue() const
Definition: memberdef.cpp:4150
TemplateVariant MemberContext::Private::isEvent ( ) const
inline

Definition at line 4095 of file context.cpp.

4096  {
4097  return m_memberDef->isEvent();
4098  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isEvent() const
Definition: memberdef.cpp:4190
TemplateVariant MemberContext::Private::isExplicit ( ) const
inline

Definition at line 4103 of file context.cpp.

4104  {
4105  return m_memberDef->isExplicit();
4106  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isExplicit() const
Definition: memberdef.cpp:4215
TemplateVariant MemberContext::Private::isExternal ( ) const
inline

Definition at line 4215 of file context.cpp.

4216  {
4217  return m_memberDef->isExternal();
4218  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isExternal() const
Definition: memberdef.cpp:4438
TemplateVariant MemberContext::Private::isFinal ( ) const
inline

Definition at line 4155 of file context.cpp.

4156  {
4157  return m_memberDef->isFinal();
4158  }
bool isFinal() const
Definition: memberdef.cpp:4280
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isForeign ( ) const
inline

Definition at line 4091 of file context.cpp.

4092  {
4093  return m_memberDef->isForeign();
4094  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isForeign() const
Definition: memberdef.cpp:4200
TemplateVariant MemberContext::Private::isFriend ( ) const
inline

Definition at line 4087 of file context.cpp.

4088  {
4089  return m_memberDef->isFriend();
4090  }
bool isFriend() const
Definition: memberdef.cpp:4175
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isFunction ( ) const
inline

Definition at line 4079 of file context.cpp.

4080  {
4081  return m_memberDef->isFunction();
4082  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isFunction() const
Definition: memberdef.cpp:4160
TemplateVariant MemberContext::Private::isFunctionPtr ( ) const
inline

Definition at line 4083 of file context.cpp.

4084  {
4085  return m_memberDef->isFunctionPtr();
4086  }
bool isFunctionPtr() const
Definition: memberdef.cpp:4165
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isGettable ( ) const
inline

Definition at line 4111 of file context.cpp.

4112  {
4113  return m_memberDef->isGettable();
4114  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isGettable() const
Definition: memberdef.cpp:4225
TemplateVariant MemberContext::Private::isImplementation ( ) const
inline

Definition at line 4063 of file context.cpp.

4064  {
4065  return m_memberDef->isImplementation();
4066  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isImplementation() const
Definition: memberdef.cpp:4433
TemplateVariant MemberContext::Private::isInitonly ( ) const
inline

Definition at line 4167 of file context.cpp.

4168  {
4169  return m_memberDef->isInitonly();
4170  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isInitonly() const
Definition: memberdef.cpp:4300
TemplateVariant MemberContext::Private::isInline ( ) const
inline

Definition at line 4099 of file context.cpp.

4100  {
4101  return m_memberDef->isInline();
4102  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isInline() const
Definition: memberdef.cpp:4210
TemplateVariant MemberContext::Private::isMaybeAmbiguous ( ) const
inline

Definition at line 4267 of file context.cpp.

4268  {
4269  return m_memberDef->isMaybeAmbiguous();
4270  }
bool isMaybeAmbiguous() const
Definition: memberdef.cpp:4422
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isMaybeDefault ( ) const
inline

Definition at line 4263 of file context.cpp.

4264  {
4265  return m_memberDef->isMaybeDefault();
4266  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isMaybeDefault() const
Definition: memberdef.cpp:4417
TemplateVariant MemberContext::Private::isMaybeVoid ( ) const
inline

Definition at line 4259 of file context.cpp.

4260  {
4261  return m_memberDef->isMaybeVoid();
4262  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isMaybeVoid() const
Definition: memberdef.cpp:4412
TemplateVariant MemberContext::Private::isMutable ( ) const
inline

Definition at line 4107 of file context.cpp.

4108  {
4109  return m_memberDef->isMutable();
4110  }
bool isMutable() const
Definition: memberdef.cpp:4220
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isNew ( ) const
inline

Definition at line 4207 of file context.cpp.

4208  {
4209  return m_memberDef->isNew();
4210  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isNew() const
Definition: memberdef.cpp:4285
TemplateVariant MemberContext::Private::isNoExcept ( ) const
inline

Definition at line 4231 of file context.cpp.

4232  {
4233  return m_memberDef->isNoExcept();
4234  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isNoExcept() const
Definition: memberdef.cpp:4377
TemplateVariant MemberContext::Private::isNonAtomic ( ) const
inline

Definition at line 4179 of file context.cpp.

4180  {
4181  return m_memberDef->isNonAtomic();
4182  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isNonAtomic() const
Definition: memberdef.cpp:4320
TemplateVariant MemberContext::Private::isObjCMethod ( ) const
inline

Definition at line 4055 of file context.cpp.

4056  {
4057  return m_memberDef->isObjCMethod();
4058  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isObjCMethod() const
Definition: memberdef.cpp:3956
TemplateVariant MemberContext::Private::isObjCProperty ( ) const
inline

Definition at line 4059 of file context.cpp.

4060  {
4061  return m_memberDef->isObjCProperty();
4062  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isObjCProperty() const
Definition: memberdef.cpp:3962
TemplateVariant MemberContext::Private::isOptional ( ) const
inline

Definition at line 4171 of file context.cpp.

4172  {
4173  return m_memberDef->isOptional();
4174  }
bool isOptional() const
Definition: memberdef.cpp:4310
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isOverride ( ) const
inline

Definition at line 4163 of file context.cpp.

4164  {
4165  return m_memberDef->isOverride();
4166  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isOverride() const
Definition: memberdef.cpp:4295
TemplateVariant MemberContext::Private::isPrivateGettable ( ) const
inline

Definition at line 4115 of file context.cpp.

4116  {
4117  return m_memberDef->isPrivateGettable();
4118  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isPrivateGettable() const
Definition: memberdef.cpp:4230
TemplateVariant MemberContext::Private::isPrivateSettable ( ) const
inline

Definition at line 4127 of file context.cpp.

4128  {
4129  return m_memberDef->isPrivateSettable();
4130  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isPrivateSettable() const
Definition: memberdef.cpp:4245
TemplateVariant MemberContext::Private::isProperty ( ) const
inline

Definition at line 4279 of file context.cpp.

4280  {
4281  return m_memberDef->isProperty();
4282  }
bool isProperty() const
Definition: memberdef.cpp:4185
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isProtectedGettable ( ) const
inline

Definition at line 4119 of file context.cpp.

4120  {
4121  return m_memberDef->isProtectedGettable();
4122  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isProtectedGettable() const
Definition: memberdef.cpp:4235
TemplateVariant MemberContext::Private::isProtectedSettable ( ) const
inline

Definition at line 4131 of file context.cpp.

4132  {
4133  return m_memberDef->isProtectedSettable();
4134  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isProtectedSettable() const
Definition: memberdef.cpp:4250
TemplateVariant MemberContext::Private::isPublished ( ) const
inline

Definition at line 4271 of file context.cpp.

4272  {
4273  return m_memberDef->isPublished();
4274  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isPublished() const
Definition: memberdef.cpp:4427
TemplateVariant MemberContext::Private::isRaisable ( ) const
inline

Definition at line 4151 of file context.cpp.

4152  {
4153  return m_memberDef->isRaisable();
4154  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isRaisable() const
Definition: memberdef.cpp:4265
TemplateVariant MemberContext::Private::isReadable ( ) const
inline

Definition at line 4135 of file context.cpp.

4136  {
4137  return m_memberDef->isReadable();
4138  }
bool isReadable() const
Definition: memberdef.cpp:4270
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isReadonly ( ) const
inline

Definition at line 4243 of file context.cpp.

4244  {
4245  return m_memberDef->isReadonly();
4246  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isReadonly() const
Definition: memberdef.cpp:4392
TemplateVariant MemberContext::Private::isRelated ( ) const
inline

Definition at line 4372 of file context.cpp.

4373  {
4374  return m_memberDef->isRelated();
4375  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isRelated() const
Definition: memberdef.cpp:4195
TemplateVariant MemberContext::Private::isRemovable ( ) const
inline

Definition at line 4147 of file context.cpp.

4148  {
4149  return m_memberDef->isRemovable();
4150  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isRemovable() const
Definition: memberdef.cpp:4260
TemplateVariant MemberContext::Private::isRequired ( ) const
inline

Definition at line 4175 of file context.cpp.

4176  {
4177  return m_memberDef->isRequired();
4178  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isRequired() const
Definition: memberdef.cpp:4315
TemplateVariant MemberContext::Private::isRetain ( ) const
inline

Definition at line 4191 of file context.cpp.

4192  {
4193  return m_memberDef->isRetain();
4194  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isRetain() const
Definition: memberdef.cpp:4335
TemplateVariant MemberContext::Private::isSealed ( ) const
inline

Definition at line 4211 of file context.cpp.

4212  {
4213  return m_memberDef->isSealed();
4214  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isSealed() const
Definition: memberdef.cpp:4290
TemplateVariant MemberContext::Private::isSettable ( ) const
inline

Definition at line 4123 of file context.cpp.

4124  {
4125  return m_memberDef->isSettable();
4126  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isSettable() const
Definition: memberdef.cpp:4240
TemplateVariant MemberContext::Private::isSignal ( ) const
inline

Definition at line 4067 of file context.cpp.

4068  {
4069  return m_memberDef->isSignal();
4070  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isSignal() const
Definition: memberdef.cpp:4130
TemplateVariant MemberContext::Private::isSlot ( ) const
inline

Definition at line 4071 of file context.cpp.

4072  {
4073  return m_memberDef->isSlot();
4074  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isSlot() const
Definition: memberdef.cpp:4135
TemplateVariant MemberContext::Private::isStatic ( ) const
inline

Definition at line 4051 of file context.cpp.

4052  {
4053  return m_memberDef->isStatic();
4054  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isStatic() const
Definition: memberdef.cpp:4205
TemplateVariant MemberContext::Private::isStrong ( ) const
inline

Definition at line 4199 of file context.cpp.

4200  {
4201  return m_memberDef->isStrong();
4202  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isStrong() const
Definition: memberdef.cpp:4345
TemplateVariant MemberContext::Private::isTemplateSpecialization ( ) const
inline

Definition at line 4275 of file context.cpp.

4276  {
4278  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isTemplateSpecialization() const
Definition: memberdef.cpp:4443
TemplateVariant MemberContext::Private::isTransient ( ) const
inline

Definition at line 4255 of file context.cpp.

4256  {
4257  return m_memberDef->isTransient();
4258  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isTransient() const
Definition: memberdef.cpp:4407
TemplateVariant MemberContext::Private::isTypedef ( ) const
inline

Definition at line 4075 of file context.cpp.

4076  {
4077  return m_memberDef->isTypedef();
4078  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isTypedef() const
Definition: memberdef.cpp:4155
TemplateVariant MemberContext::Private::isUNOProperty ( ) const
inline

Definition at line 4239 of file context.cpp.

4240  {
4241  return m_memberDef->isUNOProperty();
4242  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isUNOProperty() const
Definition: memberdef.cpp:4387
TemplateVariant MemberContext::Private::isUnretained ( ) const
inline

Definition at line 4203 of file context.cpp.

4204  {
4205  return m_memberDef->isUnretained();
4206  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isUnretained() const
Definition: memberdef.cpp:4357
TemplateVariant MemberContext::Private::isVariable ( ) const
inline

Definition at line 4287 of file context.cpp.

4288  {
4289  return m_memberDef->isVariable();
4290  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isVariable() const
Definition: memberdef.cpp:4140
TemplateVariant MemberContext::Private::isWeak ( ) const
inline

Definition at line 4195 of file context.cpp.

4196  {
4197  return m_memberDef->isWeak();
4198  }
bool isWeak() const
Definition: memberdef.cpp:4340
MemberDef * m_memberDef
Definition: context.cpp:5046
TemplateVariant MemberContext::Private::isWritable ( ) const
inline

Definition at line 4139 of file context.cpp.

4140  {
4141  return m_memberDef->isWritable();
4142  }
MemberDef * m_memberDef
Definition: context.cpp:5046
bool isWritable() const
Definition: memberdef.cpp:4275
TemplateVariant MemberContext::Private::labels ( ) const
inline

Definition at line 4629 of file context.cpp.

4630  {
4631  Cachable &cache = getCache();
4632  if (!cache.labels)
4633  {
4634  QStrList sl;
4637  if (sl.count()>0)
4638  {
4639  QStrListIterator it(sl);
4640  for (;it.current();++it)
4641  {
4642  tl->append(*it);
4643  }
4644  }
4645  cache.labels.reset(tl);
4646  }
4647  return cache.labels.get();
4648  }
static TemplateList * alloc()
Definition: template.cpp:420
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
Default implementation of a context value of type list.
Definition: template.h:376
virtual void append(const TemplateVariant &v)
Definition: template.cpp:343
virtual Definition * getOuterScope() const
uint count() const
Definition: qinternallist.h:56
void getLabels(QStrList &sl, Definition *container) const
Definition: memberdef.cpp:1938
TemplateVariant MemberContext::Private::nameWithContextFor ( ) const
inline

Definition at line 5041 of file context.cpp.

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

Definition at line 4649 of file context.cpp.

4650  {
4651  Cachable &cache = getCache();
4652  if (!cache.paramDocs)
4653  {
4655  {
4658  Argument *a;
4659  // convert the parameter documentation into a list of @param commands
4660  for (ali.toFirst();(a=ali.current());++ali)
4661  {
4662  if (a->hasDocumentation())
4663  {
4664  QCString direction = extractDirection(a->docs);
4665  paramDocs+="@param"+direction+" "+a->name+" "+a->docs;
4666  }
4667  }
4668  cache.paramDocs.reset(new TemplateVariant(parseDoc(m_memberDef,
4671  }
4672  else
4673  {
4674  cache.paramDocs.reset(new TemplateVariant(""));
4675  }
4676  }
4677  return *cache.paramDocs;
4678  }
QCString docFile() const
bool hasDocumentation() const
Definition: arguments.cpp:8
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
static TemplateVariant parseDoc(Definition *def, const QCString &file, int line, const QCString &relPath, const QCString &docStr, bool isBrief)
Definition: context.cpp:1227
QCString extractDirection(QCString &docs)
Definition: util.cpp:8342
This class contains the information about the argument of a function or template. ...
Definition: arguments.h:28
const double a
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
TemplateVariant paramDocs() const
Definition: context.cpp:4649
ArgumentList * argumentList() const
Definition: memberdef.cpp:4512
int docLine() const
TemplateVariant MemberContext::Private::parameters ( ) const
inline

Definition at line 4528 of file context.cpp.

4529  {
4530  Cachable &cache = getCache();
4531  if (!cache.arguments)
4532  {
4533  ArgumentList *defArgList = getDefArgList();
4534  if (defArgList && !m_memberDef->isProperty())
4535  {
4536  cache.arguments.reset(ArgumentListContext::alloc(defArgList,m_memberDef,relPathAsString()));
4537  }
4538  else
4539  {
4540  cache.arguments.reset(ArgumentListContext::alloc());
4541  }
4542  }
4543  return cache.arguments.get();
4544  }
bool isProperty() const
Definition: memberdef.cpp:4185
This class represents an function or template argument list.
Definition: arguments.h:82
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
static ArgumentListContext * alloc()
Definition: context.h:1161
ArgumentList * getDefArgList() const
Definition: context.cpp:4523
TemplateVariant MemberContext::Private::propertyAttrs ( ) const
inline

Definition at line 4430 of file context.cpp.

4431  {
4432  return getCache().propertyAttrs.get();
4433  }
Cachable & getCache() const
Definition: context.cpp:5087
SharedPtr< TemplateList > propertyAttrs
Definition: context.cpp:5084
T * get() const
Definition: context.cpp:111
TemplateVariant MemberContext::Private::reimplementedBy ( ) const
inline

Definition at line 4741 of file context.cpp.

4742  {
4743  Cachable &cache = getCache();
4744  if (!cache.reimplementedBy)
4745  {
4746  cache.reimplementedBy.reset(TemplateList::alloc());
4748  if (ml)
4749  {
4750  MemberListIterator mli(*ml);
4751  MemberDef *md=0;
4752  for (mli.toFirst();(md=mli.current());++mli)
4753  {
4754  ClassDef *cd = md->getClassDef();
4755  if (cd && md->virtualness()!=Pure && cd->compoundType()!=ClassDef::Interface)
4756  {
4757  MemberContext *mc = new MemberContext(md);
4758  cache.reimplementedBy->append(mc);
4759  }
4760  }
4761  }
4762  }
4763  return cache.reimplementedBy.get();
4764  }
CompoundType compoundType() const
Definition: classdef.cpp:4394
static TemplateList * alloc()
Definition: template.cpp:420
MemberList * reimplementedBy() const
Definition: memberdef.cpp:883
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
Definition: types.h:29
Specifier virtualness(int count=0) const
Definition: memberdef.cpp:3560
MemberContext(MemberDef *)
Definition: context.cpp:5099
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
TemplateVariant MemberContext::Private::reimplements ( ) const
inline

Definition at line 4698 of file context.cpp.

4699  {
4700  Cachable &cache = getCache();
4701  if (!cache.reimplements)
4702  {
4704  cache.reimplements.reset(TemplateList::alloc());
4705  if (md)
4706  {
4707  ClassDef *cd = md->getClassDef();
4708  if (cd && md->virtualness()!=Pure && cd->compoundType()!=ClassDef::Interface)
4709  {
4711  cache.reimplements->append(mc);
4712  }
4713  }
4714  }
4715  return cache.reimplements.get();
4716  }
CompoundType compoundType() const
Definition: classdef.cpp:4394
static TemplateList * alloc()
Definition: template.cpp:420
MemberDef * reimplements() const
Definition: memberdef.cpp:878
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
Definition: types.h:29
Specifier virtualness(int count=0) const
Definition: memberdef.cpp:3560
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
static MemberContext * alloc(MemberDef *md)
Definition: context.h:351
TemplateVariant MemberContext::Private::sourceCode ( ) const
inline

Definition at line 4845 of file context.cpp.

4846  {
4847  Cachable &cache = getCache();
4848  if (!cache.sourceCodeParsed)
4849  {
4850  QCString codeFragment;
4851  FileDef *fd = m_memberDef->getBodyDef();
4852  int startLine = m_memberDef->getStartBodyLine();
4853  int endLine = m_memberDef->getEndBodyLine();
4854  if (fd && readCodeFragment(fd->absFilePath(),
4855  startLine,endLine,codeFragment)
4856  )
4857  {
4858  QCString scopeName;
4859  if (m_memberDef->getClassDef())
4860  {
4861  scopeName = m_memberDef->getClassDef()->name();
4862  }
4863  else if (m_memberDef->getNamespaceDef())
4864  {
4865  scopeName = m_memberDef->getNamespaceDef()->name();
4866  }
4867  cache.sourceCode = parseCode(m_memberDef,scopeName,relPathAsString(),codeFragment,startLine,endLine,TRUE);
4868  cache.sourceCodeParsed = TRUE;
4869  }
4870  }
4871  return cache.sourceCode;
4872  }
MemberDef * m_memberDef
Definition: context.cpp:5046
static TemplateVariant parseCode(MemberDef *md, const QCString &scopeName, const QCString &relPath, const QCString &code, int startLine=-1, int endLine=-1, bool showLineNumbers=FALSE)
Definition: context.cpp:1266
Cachable & getCache() const
Definition: context.cpp:5087
FileDef * getBodyDef() const
const QCString & name() const
Definition: definition.h:114
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
QCString absFilePath() const
Definition: filedef.h:96
int getEndBodyLine() const
bool readCodeFragment(const char *fileName, int &startLine, int &endLine, QCString &result)
Definition: definition.cpp:728
int getStartBodyLine() const
NamespaceDef * getNamespaceDef() const
Definition: memberdef.cpp:4080
const bool TRUE
Definition: qglobal.h:371
TemplateVariant MemberContext::Private::sourceRefBys ( ) const
inline

Definition at line 4832 of file context.cpp.

4833  {
4834  Cachable &cache = getCache();
4835  if (!cache.sourceRefBys)
4836  {
4837  cache.sourceRefBys.reset(MemberListContext::alloc(m_memberDef->getReferencedByMembers(),TRUE));
4838  }
4839  return cache.sourceRefBys.get();
4840  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
MemberSDict * getReferencedByMembers() const
static MemberListContext * alloc()
Definition: context.h:954
const bool TRUE
Definition: qglobal.h:371
TemplateVariant MemberContext::Private::sourceRefs ( ) const
inline

Definition at line 4823 of file context.cpp.

4824  {
4825  Cachable &cache = getCache();
4826  if (!cache.sourceRefs)
4827  {
4828  cache.sourceRefs.reset(MemberListContext::alloc(m_memberDef->getReferencesMembers(),TRUE));
4829  }
4830  return cache.sourceRefs.get();
4831  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
MemberSDict * getReferencesMembers() const
static MemberListContext * alloc()
Definition: context.h:954
const bool TRUE
Definition: qglobal.h:371
TemplateVariant MemberContext::Private::templateAlias ( ) const
inline

Definition at line 4421 of file context.cpp.

4422  {
4423  if (m_memberDef->isAlias())
4424  {
4426  QCString(" = ")+m_memberDef->typeString());
4427  }
4428  return "";
4429  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
MemberDef * m_memberDef
Definition: context.cpp:5046
const char * typeString() const
Definition: memberdef.cpp:4035
bool isAlias() const
Definition: memberdef.cpp:4362
TemplateVariant MemberContext::Private::templateArgs ( ) const
inline

Definition at line 4405 of file context.cpp.

4406  {
4407  Cachable &cache = getCache();
4408  if (!cache.templateArgs && m_memberDef->templateArguments())
4409  {
4411  }
4412  if (cache.templateArgs)
4413  {
4414  return cache.templateArgs.get();
4415  }
4416  else
4417  {
4418  return TemplateVariant(FALSE);
4419  }
4420  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
const bool FALSE
Definition: qglobal.h:370
static ArgumentListContext * alloc()
Definition: context.h:1161
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
ArgumentList * templateArguments() const
Definition: memberdef.cpp:4522
TemplateVariant MemberContext::Private::templateDecls ( ) const
inline

Definition at line 4618 of file context.cpp.

4619  {
4620  Cachable &cache = getCache();
4621  if (!cache.templateDecls)
4622  {
4624  addTemplateDecls(tl);
4625  cache.templateDecls.reset(tl);
4626  }
4627  return cache.templateDecls.get();
4628  }
static TemplateList * alloc()
Definition: template.cpp:420
Cachable & getCache() const
Definition: context.cpp:5087
Default implementation of a context value of type list.
Definition: template.h:376
void addTemplateDecls(TemplateList *tl) const
Definition: context.cpp:4576
TemplateVariant MemberContext::Private::trailingReturnType ( ) const
inline

Definition at line 4559 of file context.cpp.

4560  {
4561  ArgumentList *al = getDefArgList();
4562  if (al && !al->trailingReturnType.isEmpty())
4563  {
4565  al->trailingReturnType);
4566  }
4567  else
4568  {
4569  return "";
4570  }
4571  }
TemplateVariant createLinkedText(Definition *def, const QCString &relPath, const QCString &text)
Definition: context.cpp:3840
This class represents an function or template argument list.
Definition: arguments.h:82
bool isEmpty() const
Definition: qcstring.h:189
MemberDef * m_memberDef
Definition: context.cpp:5046
ArgumentList * getDefArgList() const
Definition: context.cpp:4523
QCString trailingReturnType
Definition: arguments.h:105
TemplateVariant MemberContext::Private::type ( ) const
inline

Definition at line 4993 of file context.cpp.

4994  {
4995  return m_memberDef->typeString();
4996  }
MemberDef * m_memberDef
Definition: context.cpp:5046
const char * typeString() const
Definition: memberdef.cpp:4035
TemplateVariant MemberContext::Private::typeConstraints ( ) const
inline

Definition at line 4795 of file context.cpp.

4796  {
4797  Cachable &cache = getCache();
4798  if (!cache.typeConstraints && m_memberDef->typeConstraints())
4799  {
4801  }
4802  else
4803  {
4804  cache.typeConstraints.reset(ArgumentListContext::alloc());
4805  }
4806  return cache.typeConstraints.get();
4807  }
MemberDef * m_memberDef
Definition: context.cpp:5046
Cachable & getCache() const
Definition: context.cpp:5087
static ArgumentListContext * alloc()
Definition: context.h:1161
const ArgumentList * typeConstraints() const
Definition: memberdef.cpp:5097

Member Data Documentation

MemberDef* MemberContext::Private::m_memberDef
private

Definition at line 5046 of file context.cpp.

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

Definition at line 5093 of file context.cpp.


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