equal
deleted
inserted
replaced
|
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="cxxFunctionScopedName"> |
|
8 <title>cxxFunctionScopedName</title> |
|
9 <shortdesc>The scope of the function i.e. the declaration of the enclosing namespace/class/struct/union.</shortdesc> |
|
10 <refbody> |
|
11 <section id="section_25EF9205173F459E9EB36AECFCF68F4F"> |
|
12 <title>Description</title><p>This element describes the declaration (qualified name lookup) of the enclosing namespace/class/struct/union. For global functions this element is empty.</p><p>See ISO/IEC 14882:2003(E) Section 3.3 Declarative regions and scopes [basic.scope]</p> |
|
13 </section> |
|
14 <example id="example_FF7A84282CD44009BD751F549307E616"> |
|
15 <title>Example</title><p>Given this code:</p> |
|
16 <codeblock>namespace N { |
|
17 class C { |
|
18 struct D { |
|
19 int SomeFunction(); |
|
20 }; |
|
21 }; |
|
22 }; |
|
23 </codeblock><p> |
|
24 <tt>SomeFunction</tt> would have a scoped name element:</p> |
|
25 <codeblock><cxxFunctionScopedName>N::C::D</cxxFunctionScopedName></codeblock> |
|
26 </example> |
|
27 <section conref="../packagedef.dita#cxxFunctionScopedName-reference/cxxFunctionScopedName-containedBy-section"/> |
|
28 <section conref="../packagedef.dita#cxxFunctionScopedName-reference/cxxFunctionScopedName-contains-section"/> |
|
29 <section conref="../packagedef.dita#cxxFunctionScopedName-reference/cxxFunctionScopedName-contentModel-section"/> |
|
30 <section conref="../packagedef.dita#cxxFunctionScopedName-reference/cxxFunctionScopedName-attList-section"/> |
|
31 <section conref="../packagedef.dita#cxxFunctionScopedName-reference/cxxFunctionScopedName-classValue-section"/> |
|
32 </refbody> |
|
33 </reference> |