<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
-->
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "..\..\..\reference.dtd">
<reference xml:lang="en-us" outputclass="element" id="cxxStructDerivationVirtual">
<title>cxxStructDerivationVirtual</title>
<shortdesc>The <cxxStructDerivationVirtual> element indicates if inheritance is declared as virtual.</shortdesc>
<refbody>
<section>
<title>Description</title>
<p>The <cxxStructDerivationVirtual> element is contained within a <cxxStructDerivation> element.
The name attribute must be set to virtual and the value attribute must be set to true.
The base referered to by the <cxxStructDerivationVirtual> element is indicated by using either a <cxxStructBaseStruct>, <cxxStructBaseStruct> or <cxxStructBaseUnion> element as a sibling of <cxxStructDerivationVirtual>.</p>
</section>
<example><title>Example</title>
<codeblock><cxxStructDerivations>
<cxxStructDerivation>
<cxxStructDerivationVirtual name="virtual" value="true"/>
<cxxStructDerivationAccessSpecifier value="public"/>
<cxxStructBaseStruct href="struct_base">Base</cxxStructBaseStruct>
</cxxStructDerivation>
...
</cxxStructDerivations></codeblock>
</example>
<section conref="../packagedef.dita#cxxStructDerivationVirtual-reference/cxxStructDerivationVirtual-containedBy-section"/>
<section conref="../packagedef.dita#cxxStructDerivationVirtual-reference/cxxStructDerivationVirtual-contains-section"/>
<section conref="../packagedef.dita#cxxStructDerivationVirtual-reference/cxxStructDerivationVirtual-contentModel-section"/>
<section conref="../packagedef.dita#cxxStructDerivationVirtual-reference/cxxStructDerivationVirtual-attList-section"/>
<section conref="../packagedef.dita#cxxStructDerivationVirtual-reference/cxxStructDerivationVirtual-classValue-section"/>
</refbody>
</reference>