{# inputs: member, inheritId= anonymousNestingLevel= #} {% if not member.isEnumValue %} {# start member declaration #} {% if member.isEnumeration %} {% if anonymousNestingLevel>0 %} {% else %} {% endif %} {# write optional anchor #} {% if not member.hasDetails %} {% endif %} {# write optional indent #} {% repeat anonymousNestingLevel %}   {% endrepeat %} enum  {# write name #} {% if not member.isAnonymous %} {% with obj=member text=member.nameWithContextFor:compound.compoundKind %} {% include 'htmlobjlink.tpl' %} {% endwith %} {% endif %} {% if member.enumBaseType %} : {{ member.enumBaseType }}{% endif %} {% if member.enumValues|length>0 and config.ENUM_VALUES_PER_LINE>0 %} { {% for enumVal in member.enumValues %} {% if member.enumValues|length>config.ENUM_VALUES_PER_LINE and forloop.counter0|divisibleby:config.ENUM_VALUES_PER_LINE %}
   {% endif %} {% spaceless %} {% with obj=enumVal text=enumVal.name %} {% include 'htmlobjlink.tpl' %} {% if enumVal.hasOneLineInitializer %} {{ member.initializer }} {% endif %} {% if not forloop.last %},{% endif %} {% endwith %} {% endspaceless %} {% endfor %} {% if member.enumValues|length>config.ENUM_VALUES_PER_LINE %}
{% endif %} } {% endif %} {% else %} {% if anonymousNestingLevel>0 or member.anonymousType %} {% else %} {% if member.templateArgs %} {% else %} {% endif %} {% endif %} {# write optional anchor #} {% if not member.hasDetails %} {% endif %} {# write optional indent #} {% repeat anonymousNestingLevel %}   {% endrepeat %} {# write template list #} {% if member.templateArgs and member.language=='cpp' %} {% spaceless %} template< {% for targ in member.templateArgs %} {{ targ.type }} {{ targ.name }}{% if targ.defVal %} = {{ targ.defVal }}{% endif %}{% if not forloop.last %}, {% endif %} {% endfor %} {% endspaceless %} > {% endif %} {# write type #} {% if member.anonymousType %} {% with ctx=member.anonymousType anonymousNestingLevel=anonymousNestingLevel|add:1 %} {{ ctx.compoundType }} {% if ctx.bareName %}  {{ ctx.bareName }} {% endif %} { {# recursively write members that can appear inside the anonymous class/struct #} {% with memberListInfo=ctx.publicTypes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.publicMethods %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.publicStaticMethods %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.publicAttributes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.publicStaticAttributes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.protectedTypes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.protectedMethods %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.protectedStaticMethods %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.protectedAttributes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.protectedStaticAttributes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.privateTypes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.privateMethods %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.privateStaticMethods %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.privateAttributes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% with memberListInfo=ctx.privateStaticAttributes %} {% include 'htmlmemlist.tpl' %} {% endwith %} {% endwith %} {% repeat anonymousNestingLevel %}   {% endrepeat %} } {% else %} {{ member.declType }} {% endif %} {% spaceless %}   {% if anonymousNestingLevel>0 %}    {% else %} {% if member.isObjCMethod %} {% if member.isStatic %}+ {% else %}- {% endif %} {% endif %} {% endif %} {% endspaceless %} {# write name #} {% if not member.isAnonymous %} {% if member.anonymousMember %} {% with obj=member.anonymousMember text=member.anonymousMember.nameWithContextFor:compound.compoundKind %} {% include 'htmlobjlink.tpl' %} {% endwith %} {% else %} {% with obj=member text=member.nameWithContextFor:compound.compoundKind %} {% include 'htmlobjlink.tpl' %} {% endwith %} {% endif %} {% endif %} {# write arguments #} {% if not member.isObjCMethod %} {{ member.declArgs }} {% endif %} {# write exceptions #} {% if member.exception %} {{ member.exception }} {% endif %} {# write bitfield #} {% if member.bitfields %} {{ member.bitfields }} {% endif %} {# write one-line initializer #} {% if member.hasOneLineInitializer %} {% if member.isDefine %}   {% endif %} {{ member.initializer }} {% endif %} {# write template alias #} {% if member.templateAlias %} {{ member.templateAlias }} {% endif %} {# write obj-c implementation #} {% if member.isObjCMethod or member.isObjCProperty %} {% if member.isImplementation %} [implementation] {% endif %} {% endif %} {# write getter/setter property #} {% if member.isProperty and member.propertyAttrs|length>0 %} [ {% for attr in member.propertyAttrs %} {{ attr }}{% if not forloop.last %},{% endif %} {% endfor %} ] {% endif %} {# write event methods #} {% if member.isEvent and member.eventAttrs|length>0 %} [ {% for attr in member.eventAttrs %} {{ attr }}{% if not forloop.last %},{% endif %} {% endfor %} ] {% endif %} {# end member declaration #} {% endif %} {# member.isEnumeration #} {# brief description #} {% if member.brief %}   {{ member.brief }} {% if member.hasDetails %} {{ tr.more }} {% endif %}
{% endif %}   {% endif %} {# not member.isEnumValue #}