|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 All rights reserved. |
|
5 --> |
|
6 <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
|
7 <reference xml:lang="en-us" outputclass="element" id="cxxUnionDefinition"> |
|
8 <title>cxxUnionDefinition</title> |
|
9 <shortdesc>The <cxxUnionDefinition> element is defined within <cxxUnionDetail>. |
|
10 <cxxUnionDefinition> represents the C++ union declaration.</shortdesc> |
|
11 <refbody> |
|
12 <section> |
|
13 <title>Description</title><p>A union declaration specifies a new named reference type. |
|
14 A union declaration can include the following members: <i>public</i>, <i>protected</i> |
|
15 or <i>private</i>, this is represented by the <cxxUnionAccessSpecifier> element.</p> |
|
16 <p><cxxUnionDefinition> requires the element <cxxUnionAPIItemLocation> as its child.</p> |
|
17 </section> |
|
18 <example><title>Example</title> |
|
19 <codeblock><cxxUnionDefinition> |
|
20 <cxxUnionAccessSpecifier value="public"/> |
|
21 <cxxUnionAPIItemLocation> |
|
22 <cxxUnionDeclarationFile name="filePath" value="C:/src/include/e32base.h"/> |
|
23 <cxxUnionDeclarationFileLine name="lineNumber" value="2812"/> |
|
24 <cxxUnionDefinitionFile name="filePath" value="C:/src/include/e32base.h"/> |
|
25 <cxxUnionDefinitionFileLineStart name="lineNumber" value="2784"/> |
|
26 <cxxUnionDefinitionFileLineEnd name="lineNumber" value="2854"/> |
|
27 </cxxUnionAPIItemLocation> |
|
28 </cxxUnionDefinition></codeblock> |
|
29 </example> |
|
30 <section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-containedBy-section"/> |
|
31 <section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-contains-section"/> |
|
32 <section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-contentModel-section"/> |
|
33 <section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-attList-section"/> |
|
34 <section conref="../packagedef.dita#cxxUnionDefinition-reference/cxxUnionDefinition-classValue-section"/> |
|
35 </refbody> |
|
36 </reference> |