<?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="cxxUnionDefinition">
<title>cxxUnionDefinition</title>
<shortdesc>The <cxxUnionDefinition> element is defined within <cxxUnionDetail>.
<cxxUnionDefinition> represents the C++ union declaration.</shortdesc>
<refbody>
<section>
<title>Description</title><p>A union declaration specifies a new named reference type.
A union declaration can include the following members: <i>public</i>, <i>protected</i>
or <i>private</i>, this is represented by the <cxxUnionAccessSpecifier> element.</p>
<p><cxxUnionDefinition> requires the element <cxxUnionAPIItemLocation> as its child.</p>
</section>
<example><title>Example</title>
<codeblock><cxxUnionDefinition>
<cxxUnionAccessSpecifier value="public"/>
<cxxUnionAPIItemLocation>
<cxxUnionDeclarationFile name="filePath" value="C:/src/include/e32base.h"/>
<cxxUnionDeclarationFileLine name="lineNumber" value="2812"/>
<cxxUnionDefinitionFile name="filePath" value="C:/src/include/e32base.h"/>
<cxxUnionDefinitionFileLineStart name="lineNumber" value="2784"/>
<cxxUnionDefinitionFileLineEnd name="lineNumber" value="2854"/>
</cxxUnionAPIItemLocation>
</cxxUnionDefinition></codeblock>
</example>
<section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-containedBy-section"/>
<section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-contains-section"/>
<section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-contentModel-section"/>
<section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-attList-section"/>
<section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-classValue-section"/>
</refbody>
</reference>