|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49002 - in sandbox/mirror: doc/html doc/html/boost/cts doc/html/boost/mirror doc/html/char_type_switch doc/html/mirror libs/mirror/doc libs/mirror/doc/examples libs/mirror/doc/samples
From: chochlik_at_[hidden]
Date: 2008-09-29 10:58:49
Author: matus.chochlik
Date: 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
New Revision: 49002
URL: http://svn.boost.org/trac/boost/changeset/49002
Log:
[mirror 0.2.x]
- Documentation update (mostly full code examples)
Added:
sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_02.xml (contents, props changed)
sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_03.xml (contents, props changed)
sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_04.xml (contents, props changed)
sandbox/mirror/libs/mirror/doc/examples/refl_types_01.xml (contents, props changed)
sandbox/mirror/libs/mirror/doc/examples/refl_types_02.xml (contents, props changed)
sandbox/mirror/libs/mirror/doc/examples/reg_refl_namespaces_01.xml (contents, props changed)
sandbox/mirror/libs/mirror/doc/samples/usage_meta_namespace_04.xml (contents, props changed)
Text files modified:
sandbox/mirror/doc/html/BOOST_CTS_LIT.html | 8
sandbox/mirror/doc/html/BOOST_CTS_LIT_LENGTH.html | 8
sandbox/mirror/doc/html/BOOST_CTS_STRINGIZE.html | 8
sandbox/mirror/doc/html/BOOST_CTS_USE_WIDE_CHARS.html | 2
sandbox/mirror/doc/html/BOOST_MIRRORED_CLASS.html | 2
sandbox/mirror/doc/html/BOOST_MIRRORED_GLOBAL_SCOPE.html | 2
sandbox/mirror/doc/html/BOOST_MIRRORED_NAMESPACE.html | 6
sandbox/mirror/doc/html/BOOST_MIRRORED_TYPE.html | 2
sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF.html | 2
sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE.html | 2
sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF_GS.html | 2
sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEOF.html | 2
sandbox/mirror/doc/html/BOOST_MIRRORED_TYPE_NS.html | 2
sandbox/mirror/doc/html/BOOST_MIRROR_REG_NAMESPACE.html | 6
sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE.html | 2
sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPEDEF_GLOBAL_SCOPE.html | 2
sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPEDEF_GS.html | 2
sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_EMB.html | 2
sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_EMBEDDED.html | 2
sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_GLOBAL_SCOPE.html | 2
sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_GS.html | 2
sandbox/mirror/doc/html/boost/cts/bchar.html | 2
sandbox/mirror/doc/html/boost/cts/bchar_traits.html | 2
sandbox/mirror/doc/html/boost/cts/biostream.html | 8
sandbox/mirror/doc/html/boost/cts/bistream.html | 8
sandbox/mirror/doc/html/boost/cts/bostream.html | 8
sandbox/mirror/doc/html/boost/cts/bstring.html | 2
sandbox/mirror/doc/html/boost/mirror/meta_class.html | 8
sandbox/mirror/doc/html/boost/mirror/meta_class_all_attributes.html | 2
sandbox/mirror/doc/html/boost/mirror/meta_class_attribute.html | 56 ++--
sandbox/mirror/doc/html/boost/mirror/meta_class_attributes.html | 2
sandbox/mirror/doc/html/boost/mirror/meta_inheritance.html | 8
sandbox/mirror/doc/html/boost/mirror/meta_namespace.html | 42 +-
sandbox/mirror/doc/html/boost/mirror/meta_type.html | 38 +-
sandbox/mirror/doc/html/boost/mirror/reflects_class.html | 2
sandbox/mirror/doc/html/boost/mirror/reflects_global_scope.html | 2
sandbox/mirror/doc/html/boost/mirror/reflects_namespace.html | 2
sandbox/mirror/doc/html/boost/mirror/reflects_type.html | 2
sandbox/mirror/doc/html/char_type_switch.html | 8
sandbox/mirror/doc/html/char_type_switch/reference.html | 84 +++---
sandbox/mirror/doc/html/mirror/examples.html | 481 +++++++++++++++++++++++++++++++++++++++
sandbox/mirror/libs/mirror/doc/examples.xml | 63 ++++
sandbox/mirror/libs/mirror/doc/samples/usage_meta_namespace_03.xml | 2
43 files changed, 707 insertions(+), 193 deletions(-)
Modified: sandbox/mirror/doc/html/BOOST_CTS_LIT.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_CTS_LIT.html (original)
+++ sandbox/mirror/doc/html/BOOST_CTS_LIT.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_CTS_LIT(STRING_LITERAL)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2615258"></a><h2>Description</h2>
+<a name="id2616916"></a><h2>Description</h2>
<p>This macro is defined as follows:
</p>
<pre class="programlisting">
@@ -77,9 +77,9 @@
int main(void)
{
#ifdef <a class="link" href="BOOST_CTS_USE_WIDE_CHARS.html" title="Macro BOOST_CTS_USE_WIDE_CHARS">BOOST_CTS_USE_WIDE_CHARS</a>
- assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a>(<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"), L"foo") == 0);
+ assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a>(<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"), L"foo") == 0);
#else
- assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a>(<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"), "foo") == 0);
+ assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a>(<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"), "foo") == 0);
#endif
return 0;
}
@@ -90,7 +90,7 @@
int main(void)
{
- assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a>(<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"), <a class="link" href="BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a>(foo)) == 0);
+ assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a>(<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"), <a class="link" href="BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a>(foo)) == 0);
return 0;
}
</pre>
Modified: sandbox/mirror/doc/html/BOOST_CTS_LIT_LENGTH.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_CTS_LIT_LENGTH.html (original)
+++ sandbox/mirror/doc/html/BOOST_CTS_LIT_LENGTH.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -33,7 +33,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_CTS_LIT_LENGTH(STRING_LITERAL)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2615449"></a><h2>Description</h2>
+<a name="id2617107"></a><h2>Description</h2>
<p>This macro is defined as follows:
</p>
<pre class="programlisting">
@@ -63,7 +63,7 @@
{
assert(
<a class="link" href="BOOST_CTS_LIT_LENGTH.html" title="Macro BOOST_CTS_LIT_LENGTH">BOOST_CTS_LIT_LENGTH</a>("foo") ==
- ::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrlen_id2548529">bstrlen</a>(<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"))
+ ::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrlen_id2513356">bstrlen</a>(<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"))
);
return 0;
}
@@ -76,8 +76,8 @@
{
using namespace ::boost::cts;
<a class="link" href="boost/cts/bchar.html" title="Type definition bchar">bchar</a> foo[<a class="link" href="BOOST_CTS_LIT_LENGTH.html" title="Macro BOOST_CTS_LIT_LENGTH">BOOST_CTS_LIT_LENGTH</a>("foo")+1];
- <a class="link" href="char_type_switch/reference.html#boost.cts.bstrcpy_id2538908">bstrcpy</a>(foo, <a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"));
- assert(<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a>(foo, <a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo")) == 0);
+ <a class="link" href="char_type_switch/reference.html#boost.cts.bstrcpy_id2453919">bstrcpy</a>(foo, <a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo"));
+ assert(<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a>(foo, <a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo")) == 0);
return 0;
}
</pre>
Modified: sandbox/mirror/doc/html/BOOST_CTS_STRINGIZE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_CTS_STRINGIZE.html (original)
+++ sandbox/mirror/doc/html/BOOST_CTS_STRINGIZE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_CTS_STRINGIZE(ARG)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2615645"></a><h2>Description</h2>
+<a name="id2617302"></a><h2>Description</h2>
<p>This macro is defined as follows:
</p>
<pre class="programlisting">
@@ -77,9 +77,9 @@
int main(void)
{
#ifdef <a class="link" href="BOOST_CTS_USE_WIDE_CHARS.html" title="Macro BOOST_CTS_USE_WIDE_CHARS">BOOST_CTS_USE_WIDE_CHARS</a>
- assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a>(<a class="link" href="BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a>(foo), L"foo") == 0);
+ assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a>(<a class="link" href="BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a>(foo), L"foo") == 0);
#else
- assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a>(<a class="link" href="BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a>(foo), "foo") == 0);
+ assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a>(<a class="link" href="BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a>(foo), "foo") == 0);
#endif
return 0;
}
@@ -90,7 +90,7 @@
int main(void)
{
- assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a>(<a class="link" href="BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a>(foo), <a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo")) == 0);
+ assert(::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a>(<a class="link" href="BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a>(foo), <a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("foo")) == 0);
return 0;
}
</pre>
Modified: sandbox/mirror/doc/html/BOOST_CTS_USE_WIDE_CHARS.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_CTS_USE_WIDE_CHARS.html (original)
+++ sandbox/mirror/doc/html/BOOST_CTS_USE_WIDE_CHARS.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -33,7 +33,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_CTS_USE_WIDE_CHARS</pre></div>
<div class="refsect1" lang="en">
-<a name="id2614944"></a><h2>Description</h2>
+<a name="id2616602"></a><h2>Description</h2>
<p>If the <code class="computeroutput"><a class="link" href="BOOST_CTS_USE_WIDE_CHARS.html" title="Macro BOOST_CTS_USE_WIDE_CHARS">BOOST_CTS_USE_WIDE_CHARS</a></code> symbol is defined
then the type <code class="computeroutput"><a class="link" href="boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> is defined as <code class="computeroutput">wchar_t</code>,
otherwise it's defined as <code class="computeroutput">char</code>:
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_CLASS.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_CLASS.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_CLASS.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_CLASS(CLASS)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2609689"></a><h2>Description</h2>
+<a name="id2609692"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRRORED_CLASS.html" title="Macro BOOST_MIRRORED_CLASS">BOOST_MIRRORED_CLASS</a></code> macro reflects a class
previously registered with the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library.
The argument of this macro is a class name.
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_GLOBAL_SCOPE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_GLOBAL_SCOPE.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_GLOBAL_SCOPE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -35,7 +35,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_GLOBAL_SCOPE()</pre></div>
<div class="refsect1" lang="en">
-<a name="id2604033"></a><h2>Description</h2>
+<a name="id2604034"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRRORED_GLOBAL_SCOPE.html" title="Macro BOOST_MIRRORED_GLOBAL_SCOPE">BOOST_MIRRORED_GLOBAL_SCOPE</a>()</code> macro can be used to get
the meta-data about the global scope, which is registered with the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library by default.
</p>
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_NAMESPACE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_NAMESPACE.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_NAMESPACE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -35,7 +35,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_NAMESPACE(FULL_NAMESPACE_NAME)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2603596"></a><h2>Description</h2>
+<a name="id2603597"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code> macro reflects a namespace
previously registered with the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library by the means of
the <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_NAMESPACE.html" title="Macro BOOST_MIRROR_REG_NAMESPACE">BOOST_MIRROR_REG_NAMESPACE</a></code>.
@@ -98,7 +98,7 @@
{
using namespace ::std;
using namespace ::boost;
- cts::<a class="link" href="boost/cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::<a class="link" href="boost/cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bcout <<
<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("This is the global scope") <<
endl <<
@@ -113,7 +113,7 @@
using namespace ::std;
using namespace ::boost;
using namespace ::boost::mirror;
- cts::bostream& bcout = cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::bostream& bcout = cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bcout <<
<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("Namespace '") <<
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_TYPE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_TYPE.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_TYPE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -38,7 +38,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_TYPE(TYPE)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2608047"></a><h2>Description</h2>
+<a name="id2608048"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRRORED_TYPE.html" title="Macro BOOST_MIRRORED_TYPE">BOOST_MIRRORED_TYPE</a></code> macro reflects a type
previously registered with the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library or a type derived
from a registered type. The argument of this macro is a type.
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -38,7 +38,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_TYPEDEF(FULL_NAMESPACE_NAME, TYPEDEF)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2608401"></a><h2>Description</h2>
+<a name="id2608403"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRRORED_TYPEDEF.html" title="Macro BOOST_MIRRORED_TYPEDEF">BOOST_MIRRORED_TYPEDEF</a></code> macro reflects a type
that is registered with the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library as a <code class="computeroutput">typedef</code>-ined
type.
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -39,7 +39,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE(TYPEDEF)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2609023"></a><h2>Description</h2>
+<a name="id2609025"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE.html" title="Macro BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE">BOOST_MIRRORED_TYPEDEF_GLOBAL_SCOPE</a></code> macro reflects a type
that is registered with the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library as a global-scope <code class="computeroutput">typedef</code>-ined
type.
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF_GS.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF_GS.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEDEF_GS.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -39,7 +39,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_TYPEDEF_GS(TYPEDEF)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2608825"></a><h2>Description</h2>
+<a name="id2608827"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRRORED_TYPEDEF_GS.html" title="Macro BOOST_MIRRORED_TYPEDEF_GS">BOOST_MIRRORED_TYPEDEF_GS</a></code> macro reflects a type
that is registered with the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library as a global-scope <code class="computeroutput">typedef</code>-ined
type.
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEOF.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEOF.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_TYPEOF.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -32,7 +32,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_TYPEOF(EXPRESSION)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2609108"></a><h2>Description</h2>
+<a name="id2609110"></a><h2>Description</h2>
This macro is basically just a shorter form of
<pre class="programlisting">
<a class="link" href="BOOST_MIRRORED_TYPE.html" title="Macro BOOST_MIRRORED_TYPE">BOOST_MIRRORED_TYPE</a>(BOOST_TYPEOF(EXPRESSION))
Modified: sandbox/mirror/doc/html/BOOST_MIRRORED_TYPE_NS.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRRORED_TYPE_NS.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRRORED_TYPE_NS.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -35,7 +35,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRRORED_TYPE_NS(FULL_NAMESPACE_NAME, TYPE)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2608205"></a><h2>Description</h2>
+<a name="id2608207"></a><h2>Description</h2>
<p><code class="computeroutput"><a class="link" href="BOOST_MIRRORED_TYPE_NS.html" title="Macro BOOST_MIRRORED_TYPE_NS">BOOST_MIRRORED_TYPE_NS</a>(NAMESPACE, TYPE)</code>
is equivalent to <code class="computeroutput"><a class="link" href="BOOST_MIRRORED_TYPE.html" title="Macro BOOST_MIRRORED_TYPE">BOOST_MIRRORED_TYPE</a>(NAMESPACE :: TYPE)</code>.
</p>
Modified: sandbox/mirror/doc/html/BOOST_MIRROR_REG_NAMESPACE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRROR_REG_NAMESPACE.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRROR_REG_NAMESPACE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRROR_REG_NAMESPACE(PP_SEQ)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2602994"></a><h2>Description</h2>
+<a name="id2602995"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_NAMESPACE.html" title="Macro BOOST_MIRROR_REG_NAMESPACE">BOOST_MIRROR_REG_NAMESPACE</a></code> macro registers a namespace with
the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library.
</p>
@@ -165,7 +165,7 @@
{
using namespace ::std;
using namespace ::boost;
- cts::<a class="link" href="boost/cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::<a class="link" href="boost/cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bcout <<
<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("This is the global scope") <<
endl <<
@@ -180,7 +180,7 @@
using namespace ::std;
using namespace ::boost;
using namespace ::boost::mirror;
- cts::bostream& bcout = cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::bostream& bcout = cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bcout <<
<a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("Namespace '") <<
Modified: sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -33,7 +33,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRROR_REG_TYPE(NAMESPACE, TYPE)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2605887"></a><h2>Description</h2>
+<a name="id2605888"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_TYPE.html" title="Macro BOOST_MIRROR_REG_TYPE">BOOST_MIRROR_REG_TYPE</a></code> macro registers a type with
the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library.
</p>
Modified: sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPEDEF_GLOBAL_SCOPE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPEDEF_GLOBAL_SCOPE.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPEDEF_GLOBAL_SCOPE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRROR_REG_TYPEDEF_GLOBAL_SCOPE(TYPEDEF)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2607487"></a><h2>Description</h2>
+<a name="id2607488"></a><h2>Description</h2>
<p>See the documentation for the <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_TYPEDEF_GS.html" title="Macro BOOST_MIRROR_REG_TYPEDEF_GS">BOOST_MIRROR_REG_TYPEDEF_GS</a></code>
macro for more details.
</p>
Modified: sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPEDEF_GS.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPEDEF_GS.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPEDEF_GS.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -35,7 +35,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRROR_REG_TYPEDEF_GS(TYPEDEF)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2607179"></a><h2>Description</h2>
+<a name="id2607180"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_TYPEDEF_GS.html" title="Macro BOOST_MIRROR_REG_TYPEDEF_GS">BOOST_MIRROR_REG_TYPEDEF_GS</a></code> macro registers a global scope <code class="computeroutput">typedef</code> with
the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library.
</p>
Modified: sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_EMB.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_EMB.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_EMB.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRROR_REG_TYPE_EMB(WRAPPER, TYPE)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2607545"></a><h2>Description</h2>
+<a name="id2607546"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_TYPE_EMB.html" title="Macro BOOST_MIRROR_REG_TYPE_EMB">BOOST_MIRROR_REG_TYPE_EMB</a></code> macro registers a type nested inside of a class with
the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library.
</p>
Modified: sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_EMBEDDED.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_EMBEDDED.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_EMBEDDED.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRROR_REG_TYPE_EMBEDDED(WRAPPER, TYPE)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2607949"></a><h2>Description</h2>
+<a name="id2607951"></a><h2>Description</h2>
<p>This macro is equivalent to the <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_TYPE_EMB.html" title="Macro BOOST_MIRROR_REG_TYPE_EMB">BOOST_MIRROR_REG_TYPE_EMB</a></code> macro.
See the documentation of <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_TYPE_EMB.html" title="Macro BOOST_MIRROR_REG_TYPE_EMB">BOOST_MIRROR_REG_TYPE_EMB</a></code> for more details.
</p>
Modified: sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_GLOBAL_SCOPE.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_GLOBAL_SCOPE.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_GLOBAL_SCOPE.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRROR_REG_TYPE_GLOBAL_SCOPE(TYPE)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2606563"></a><h2>Description</h2>
+<a name="id2606564"></a><h2>Description</h2>
<p>See the documentation for the <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_TYPE_GS.html" title="Macro BOOST_MIRROR_REG_TYPE_GS">BOOST_MIRROR_REG_TYPE_GS</a></code>
macro for more details.
</p>
Modified: sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_GS.html
==============================================================================
--- sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_GS.html (original)
+++ sandbox/mirror/doc/html/BOOST_MIRROR_REG_TYPE_GS.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">BOOST_MIRROR_REG_TYPE_GS(TYPE)</pre></div>
<div class="refsect1" lang="en">
-<a name="id2606232"></a><h2>Description</h2>
+<a name="id2606233"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="BOOST_MIRROR_REG_TYPE_GS.html" title="Macro BOOST_MIRROR_REG_TYPE_GS">BOOST_MIRROR_REG_TYPE_GS</a></code> macro registers a global scope type with
the <a class="link" href="mirror.html" title="Chapter 1. Mirror">Mirror</a> library.
</p>
Modified: sandbox/mirror/doc/html/boost/cts/bchar.html
==============================================================================
--- sandbox/mirror/doc/html/boost/cts/bchar.html (original)
+++ sandbox/mirror/doc/html/boost/cts/bchar.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -35,7 +35,7 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
<span class="bold"><strong>typedef</strong></span> <span class="bold"><strong>char</strong></span>-or-<span class="bold"><strong>wchar_t</strong></span> bchar;</pre></div>
<div class="refsect1" lang="en">
-<a name="id2615171"></a><h2>Description</h2>
+<a name="id2616828"></a><h2>Description</h2>
<p>The <code class="computeroutput">bchar</code> type is defined as follows:
</p>
<pre class="programlisting">
Modified: sandbox/mirror/doc/html/boost/cts/bchar_traits.html
==============================================================================
--- sandbox/mirror/doc/html/boost/cts/bchar_traits.html (original)
+++ sandbox/mirror/doc/html/boost/cts/bchar_traits.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
<span class="bold"><strong>typedef</strong></span> ::std::char_traits<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>> bchar_traits;</pre></div>
<div class="refsect1" lang="en">
-<a name="id2615974"></a><h2>Description</h2>
+<a name="id2617632"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a></code> type is defined as abbreviation for
<code class="computeroutput">::std::char_traits<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>></code>.
</p>
Modified: sandbox/mirror/doc/html/boost/cts/biostream.html
==============================================================================
--- sandbox/mirror/doc/html/boost/cts/biostream.html (original)
+++ sandbox/mirror/doc/html/boost/cts/biostream.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -33,13 +33,13 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
<span class="bold"><strong>typedef</strong></span> ::std::basic_iostream<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>, <a class="link" href="bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a>> biostream;</pre></div>
<div class="refsect1" lang="en">
-<a name="id2617074"></a><h2>Description</h2>
+<a name="id2618734"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="biostream.html" title="Type definition biostream">biostream</a></code> type is defined as an abbreviation for
<code class="computeroutput">::std::basic_iostream<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>, <a class="link" href="bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a>></code>.
</p>
<div class="section" lang="en">
<div class="titlepage"><div><div><h6 class="title">
-<a name="id2617114"></a>Examples</h6></div></div></div>
+<a name="id2618774"></a>Examples</h6></div></div></div>
<pre class="programlisting">
#include <assert.h>
#include <boost/char_type_switch/string.hpp>
@@ -49,8 +49,8 @@
{
using namespace ::std;
using namespace ::boost::cts;
- <a class="link" href="bistream.html" title="Type definition bistream">bistream</a>& in = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcin_id2344130">bcin</a>();
- <a class="link" href="bostream.html" title="Type definition bostream">bostream</a>& out = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ <a class="link" href="bistream.html" title="Type definition bistream">bistream</a>& in = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcin_id2466914">bcin</a>();
+ <a class="link" href="bostream.html" title="Type definition bostream">bostream</a>& out = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bstring str;
out << <a class="link" href="../../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("Enter a string: ") << flush;
Modified: sandbox/mirror/doc/html/boost/cts/bistream.html
==============================================================================
--- sandbox/mirror/doc/html/boost/cts/bistream.html (original)
+++ sandbox/mirror/doc/html/boost/cts/bistream.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,13 +34,13 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
<span class="bold"><strong>typedef</strong></span> ::std::basic_istream<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>, <a class="link" href="bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a>> bistream;</pre></div>
<div class="refsect1" lang="en">
-<a name="id2616657"></a><h2>Description</h2>
+<a name="id2618317"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="bistream.html" title="Type definition bistream">bistream</a></code> type is defined as an abbreviation for
<code class="computeroutput">::std::basic_istream<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>, <a class="link" href="bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a>></code>.
</p>
<div class="section" lang="en">
<div class="titlepage"><div><div><h6 class="title">
-<a name="id2616698"></a>Examples</h6></div></div></div>
+<a name="id2618357"></a>Examples</h6></div></div></div>
<pre class="programlisting">
#include <assert.h>
#include <boost/char_type_switch/string.hpp>
@@ -50,8 +50,8 @@
{
using namespace ::std;
using namespace ::boost::cts;
- <a class="link" href="bistream.html" title="Type definition bistream">bistream</a>& in = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcin_id2344130">bcin</a>();
- <a class="link" href="bostream.html" title="Type definition bostream">bostream</a>& out = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ <a class="link" href="bistream.html" title="Type definition bistream">bistream</a>& in = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcin_id2466914">bcin</a>();
+ <a class="link" href="bostream.html" title="Type definition bostream">bostream</a>& out = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bstring str;
out << <a class="link" href="../../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("Enter a string: ") << flush;
Modified: sandbox/mirror/doc/html/boost/cts/bostream.html
==============================================================================
--- sandbox/mirror/doc/html/boost/cts/bostream.html (original)
+++ sandbox/mirror/doc/html/boost/cts/bostream.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,13 +34,13 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
<span class="bold"><strong>typedef</strong></span> ::std::basic_ostream<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>, <a class="link" href="bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a>> bostream;</pre></div>
<div class="refsect1" lang="en">
-<a name="id2616865"></a><h2>Description</h2>
+<a name="id2618525"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="bostream.html" title="Type definition bostream">bostream</a></code> type is defined as an abbreviation for
<code class="computeroutput">::std::basic_ostream<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>, <a class="link" href="bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a>></code>.
</p>
<div class="section" lang="en">
<div class="titlepage"><div><div><h6 class="title">
-<a name="id2616906"></a>Examples</h6></div></div></div>
+<a name="id2618565"></a>Examples</h6></div></div></div>
<pre class="programlisting">
#include <assert.h>
#include <boost/char_type_switch/string.hpp>
@@ -50,8 +50,8 @@
{
using namespace ::std;
using namespace ::boost::cts;
- <a class="link" href="bistream.html" title="Type definition bistream">bistream</a>& in = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcin_id2344130">bcin</a>();
- <a class="link" href="bostream.html" title="Type definition bostream">bostream</a>& out = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ <a class="link" href="bistream.html" title="Type definition bistream">bistream</a>& in = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcin_id2466914">bcin</a>();
+ <a class="link" href="bostream.html" title="Type definition bostream">bostream</a>& out = <a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bstring str;
out << <a class="link" href="../../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("Enter a string: ") << flush;
Modified: sandbox/mirror/doc/html/boost/cts/bstring.html
==============================================================================
--- sandbox/mirror/doc/html/boost/cts/bstring.html (original)
+++ sandbox/mirror/doc/html/boost/cts/bstring.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
<span class="bold"><strong>typedef</strong></span> ::std::basic_string<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>> bstring;</pre></div>
<div class="refsect1" lang="en">
-<a name="id2616107"></a><h2>Description</h2>
+<a name="id2617765"></a><h2>Description</h2>
<p>The <code class="computeroutput"><a class="link" href="bstring.html" title="Type definition bstring">bstring</a></code> type is defined as an abbreviation for
<code class="computeroutput">::std::basic_string<<a class="link" href="bchar.html" title="Type definition bchar">bchar</a>></code>.
</p>
Modified: sandbox/mirror/doc/html/boost/mirror/meta_class.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/meta_class.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/meta_class.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -42,16 +42,16 @@
<span class="bold"><strong>class</strong></span> <a class="link" href="meta_class.html" title="Class template meta_class">meta_class</a> : <span class="bold"><strong>public</strong></span> <a class="link" href="meta_type.html" title="Class template meta_type">meta_type</a><Class>
{
<span class="bold"><strong>public</strong></span>:
- <span class="emphasis"><em>// <a class="link" href="meta_class.html#id2522778-bbtypes">types</a></em></span>
+ <span class="emphasis"><em>// <a class="link" href="meta_class.html#id2541200-bbtypes">types</a></em></span>
<span class="bold"><strong>typedef</strong></span> meta_base_classes<<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_class.html#boost.mirror.meta_class.base_classes">base_classes</a>;
<span class="bold"><strong>typedef</strong></span> <a class="link" href="meta_class_attributes.html" title="Class template meta_class_attributes">meta_class_attributes</a><<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_class.html#boost.mirror.meta_class.attributes">attributes</a>;
<span class="bold"><strong>typedef</strong></span> <a class="link" href="meta_class_all_attributes.html" title="Class template meta_class_all_attributes">meta_class_all_attributes</a><<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_class.html#boost.mirror.meta_class.all_attributes">all_attributes</a>;
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2609481"></a><h2>Description</h2>
+<a name="id2609483"></a><h2>Description</h2>
<div class="refsect2" lang="en">
-<a name="id2609484"></a><h3>
-<a name="id2522778-bbtypes"></a><code class="computeroutput">meta_class</code> public types</h3>
+<a name="id2609487"></a><h3>
+<a name="id2541200-bbtypes"></a><code class="computeroutput">meta_class</code> public types</h3>
<div class="orderedlist"><ol type="1">
<li>
<p>
Modified: sandbox/mirror/doc/html/boost/mirror/meta_class_all_attributes.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/meta_class_all_attributes.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/meta_class_all_attributes.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -45,7 +45,7 @@
<span class="bold"><strong>class</strong></span> <a class="link" href="meta_class_all_attributes.html" title="Class template meta_class_all_attributes">meta_class_all_attributes</a> {
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2611784"></a><h2>Description</h2>
+<a name="id2611787"></a><h2>Description</h2>
<p>
</p>
<div class="section" lang="en">
Modified: sandbox/mirror/doc/html/boost/mirror/meta_class_attribute.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/meta_class_attribute.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/meta_class_attribute.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -37,7 +37,7 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> unspecified>
<span class="bold"><strong>class</strong></span> <a class="link" href="meta_class_attribute.html" title="Class template meta_class_attribute">meta_class_attribute</a> {
<span class="bold"><strong>public</strong></span>:
- <span class="emphasis"><em>// <a class="link" href="meta_class_attribute.html#id2405236-bbtypes">types</a></em></span>
+ <span class="emphasis"><em>// <a class="link" href="meta_class_attribute.html#id2521955-bbtypes">types</a></em></span>
<span class="bold"><strong>typedef</strong></span> <a class="link" href="meta_class.html" title="Class template meta_class">meta_class</a><<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_class_attribute.html#boost.mirror.meta_class_attribute.scope">scope</a>;
<span class="bold"><strong>typedef</strong></span> <a class="link" href="meta_class_attributes.html" title="Class template meta_class_attributes">meta_class_attributes</a><<span class="emphasis"><em>unspecified</em></span>>-or-<a class="link" href="meta_class_all_attributes.html" title="Class template meta_class_all_attributes">meta_class_all_attributes</a><<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_class_attribute.html#boost.mirror.meta_class_attribute.container">container</a>;
<span class="bold"><strong>typedef</strong></span> container <a class="link" href="meta_class_attribute.html#boost.mirror.meta_class_attribute.meta_attributes">meta_attributes</a>;
@@ -45,18 +45,18 @@
<span class="bold"><strong>typedef</strong></span> <span class="emphasis"><em>unspecified</em></span> <a class="link" href="meta_class_attribute.html#boost.mirror.meta_class_attribute.type">type</a>;
<span class="bold"><strong>typedef</strong></span> <span class="emphasis"><em>unspecified</em></span> <a class="link" href="meta_class_attribute.html#boost.mirror.meta_class_attribute.typedef_or_type">typedef_or_type</a>;
<span class="bold"><strong>typedef</strong></span> meta_attribute_traits<<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_class_attribute.html#boost.mirror.meta_class_attribute.traits">traits</a>;
- <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_class_attribute.html#id2453716-bb">base_name</a>();
- <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_class_attribute.html#id2389784-bb">full_name</a>();
+ <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_class_attribute.html#id2454995-bb">base_name</a>();
+ <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_class_attribute.html#id2431952-bb">full_name</a>();
<span class="bold"><strong>template</strong></span><<span class="bold"><strong>bool</strong></span> FullName, <span class="bold"><strong>typename</strong></span> CharT>
<span class="type"><span class="bold"><strong>const</strong></span> ::std::basic_string<CharT>&</span>
- <a class="link" href="meta_class_attribute.html#id2515520-bb">get_name</a>(::boost::mpl::bool_<FullName>, ::std::char_traits<CharT>);
- <span class="type"><span class="emphasis"><em>unspecified</em></span></span> <a class="link" href="meta_class_attribute.html#id2525874-bb">get</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type&);
+ <a class="link" href="meta_class_attribute.html#id2545052-bb">get_name</a>(::boost::mpl::bool_<FullName>, ::std::char_traits<CharT>);
+ <span class="type"><span class="emphasis"><em>unspecified</em></span></span> <a class="link" href="meta_class_attribute.html#id2499269-bb">get</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type&);
<span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> DestType>
- <span class="type">DestType&</span> <a class="link" href="meta_class_attribute.html#id2555698-bb">query</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type&, DestType&);
- <span class="type"><span class="bold"><strong>void</strong></span></span> <a class="link" href="meta_class_attribute.html#id2439694-bb">set</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type&, type);
+ <span class="type">DestType&</span> <a class="link" href="meta_class_attribute.html#id2533451-bb">query</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type&, DestType&);
+ <span class="type"><span class="bold"><strong>void</strong></span></span> <a class="link" href="meta_class_attribute.html#id2444847-bb">set</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type&, type);
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2610333"></a><h2>Description</h2>
+<a name="id2610337"></a><h2>Description</h2>
<p>This template allows to get both compile-time and run-time meta-data about
the member attribute of a class. At compile time the scope, position, type and several other traits of the attribute
can be inspected. At run-time one can get the base and full name of the attribute and to generically get and set its value.
@@ -71,8 +71,8 @@
</div>
</div>
<div class="refsect2" lang="en">
-<a name="id2610370"></a><h3>
-<a name="id2405236-bbtypes"></a><code class="computeroutput">meta_class_attribute</code> public types</h3>
+<a name="id2610374"></a><h3>
+<a name="id2521955-bbtypes"></a><code class="computeroutput">meta_class_attribute</code> public types</h3>
<div class="orderedlist"><ol type="1">
<li>
<p>
@@ -129,15 +129,15 @@
</li>
</ol></div>
</div>
-<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2453716-bb"></a>base_name();</pre>
+<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2454995-bb"></a>base_name();</pre>
<p>This static member function returns the base name of the
attribute reflected by the <code class="computeroutput"><a class="link" href="meta_class_attribute.html" title="Class template meta_class_attribute">meta_class_attribute</a></code>.
When a full attribute name
<span class="bold"><strong>including</strong></span> the class name, that the
reflected member attribute belongs to,
- is needed use the <code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2389784-bb">full_name</a></code> member function
+ is needed use the <code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2431952-bb">full_name</a></code> member function
instead.</p>
-<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2389784-bb"></a>full_name();</pre>
+<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2431952-bb"></a>full_name();</pre>
<p>This static member function returns the full name of the
attribute reflected by the <code class="computeroutput"><a class="link" href="meta_class_attribute.html" title="Class template meta_class_attribute">meta_class_attribute</a></code>
including the full name of the class that the attribute belongs to. For example:
@@ -156,7 +156,7 @@
<p>
returns <code class="computeroutput">"::std::pair< int, double >::first"</code>. When the base attribute name
<span class="bold"><strong>without</strong></span> the full class name
- is needed use the <code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2453716-bb">base_name</a></code> member function
+ is needed use the <code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2454995-bb">base_name</a></code> member function
instead.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
@@ -173,7 +173,7 @@
</table></div>
<pre class="literallayout"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>bool</strong></span> FullName, <span class="bold"><strong>typename</strong></span> CharT>
<span class="type"><span class="bold"><strong>const</strong></span> ::std::basic_string<CharT>&</span>
- <a name="id2515520-bb"></a>get_name(::boost::mpl::bool_<FullName> full, ::std::char_traits<CharT> cht);</pre>
+ <a name="id2545052-bb"></a>get_name(::boost::mpl::bool_<FullName> full, ::std::char_traits<CharT> cht);</pre>
<p>This static member template function returns either the base name
or the full name of the attribute reflected by this
<code class="computeroutput"><a class="link" href="meta_class_attribute.html" title="Class template meta_class_attribute">meta_class_attribute</a></code>,
@@ -182,7 +182,7 @@
<code class="computeroutput">::std::string</code> or <code class="computeroutput">::std::wstring</code> based
on the type of the second argument.
</p>
-<pre class="literallayout"><span class="type"><span class="emphasis"><em>unspecified</em></span></span> <a name="id2525874-bb"></a>get(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type& instance);</pre>
+<pre class="literallayout"><span class="type"><span class="emphasis"><em>unspecified</em></span></span> <a name="id2499269-bb"></a>get(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type& instance);</pre>
<p>This static member function returns the value of the attribute reflected
by this <code class="computeroutput"><a class="link" href="meta_class_attribute.html" title="Class template meta_class_attribute">meta_class_attribute</a></code> when given
an <code class="computeroutput">instance</code> of the class that the attribute belongs to:
@@ -199,13 +199,13 @@
//
// create an instance of the pair
pair p(10, 20.0);
-assert(meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(p) == p.first);
-assert(meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(p) == p.second);
+assert(meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(p) == p.first);
+assert(meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(p) == p.second);
</pre>
<p>
</p>
<pre class="literallayout"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> DestType>
- <span class="type">DestType&</span> <a name="id2555698-bb"></a>query(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type& instance,
+ <span class="type">DestType&</span> <a name="id2533451-bb"></a>query(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type& instance,
DestType& destination);</pre>
<p>This static member function assigns the value of the attribute reflected
by this <code class="computeroutput"><a class="link" href="meta_class_attribute.html" title="Class template meta_class_attribute">meta_class_attribute</a></code> (when given
@@ -229,15 +229,15 @@
long first = 30;
float second = 40.0f;
// query the values and check them
-assert(meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2555698-bb">query</a></code>(p, first) == 10);
-assert(meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2555698-bb">query</a></code>(p, second) == 20.0f);
+assert(meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2533451-bb">query</a></code>(p, first) == 10);
+assert(meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2533451-bb">query</a></code>(p, second) == 20.0f);
// and double check the variables
assert(first == p.first);
assert(second == p.second);
</pre>
<p>
</p>
-<pre class="literallayout"><span class="type"><span class="bold"><strong>void</strong></span></span> <a name="id2439694-bb"></a>set(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type& instance, type value);</pre>
+<pre class="literallayout"><span class="type"><span class="bold"><strong>void</strong></span></span> <a name="id2444847-bb"></a>set(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>typename</strong></span> scope::reflected_type& instance, type value);</pre>
<p>This static member function assigns the given value to the attribute reflected
by this <code class="computeroutput"><a class="link" href="meta_class_attribute.html" title="Class template meta_class_attribute">meta_class_attribute</a></code> when given
an <code class="computeroutput">instance</code> of the class that the attribute belongs to:
@@ -256,14 +256,14 @@
pair p(10, 20.0f);
pair r(30, 40.0f);
//
-assert(meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(p) != meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(r));
-assert(meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(p) != meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(r));
+assert(meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(p) != meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(r));
+assert(meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(p) != meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(r));
// set new values
-meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2439694-bb">set</a></code>(p, meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(r));
-meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2439694-bb">set</a></code>(p, meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(r));
+meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2444847-bb">set</a></code>(p, meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(r));
+meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2444847-bb">set</a></code>(p, meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(r));
// and check the values
-assert(meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(p) == meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(r));
-assert(meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(p) == meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2525874-bb">get</a></code>(r));
+assert(meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(p) == meta_pair_first::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(r));
+assert(meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(p) == meta_pair_second::<code class="computeroutput"><a class="link" href="meta_class_attribute.html#id2499269-bb">get</a></code>(r));
// and double check them
assert(p.first == r.first);
assert(p.second == r.second);
Modified: sandbox/mirror/doc/html/boost/mirror/meta_class_attributes.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/meta_class_attributes.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/meta_class_attributes.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -45,7 +45,7 @@
<span class="bold"><strong>class</strong></span> <a class="link" href="meta_class_attributes.html" title="Class template meta_class_attributes">meta_class_attributes</a> {
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2611615"></a><h2>Description</h2>
+<a name="id2611618"></a><h2>Description</h2>
<p>
</p>
<div class="section" lang="en">
Modified: sandbox/mirror/doc/html/boost/mirror/meta_inheritance.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/meta_inheritance.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/meta_inheritance.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -36,19 +36,19 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> unspecified>
<span class="bold"><strong>class</strong></span> <a class="link" href="meta_inheritance.html" title="Class template meta_inheritance">meta_inheritance</a> {
<span class="bold"><strong>public</strong></span>:
- <span class="emphasis"><em>// <a class="link" href="meta_inheritance.html#id2533333-bbtypes">types</a></em></span>
+ <span class="emphasis"><em>// <a class="link" href="meta_inheritance.html#id2509334-bbtypes">types</a></em></span>
<span class="bold"><strong>typedef</strong></span> mpl::int_<<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_inheritance.html#boost.mirror.meta_inheritance.position">position</a>;
<span class="bold"><strong>typedef</strong></span> <span class="emphasis"><em>unspecified</em></span> <a class="link" href="meta_inheritance.html#boost.mirror.meta_inheritance.base_class">base_class</a>;
<span class="bold"><strong>typedef</strong></span> <a class="link" href="meta_class.html" title="Class template meta_class">meta_class</a>< base_class > <a class="link" href="meta_inheritance.html#boost.mirror.meta_inheritance.meta_base_class">meta_base_class</a>;
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2612021"></a><h2>Description</h2>
+<a name="id2612024"></a><h2>Description</h2>
<p>This template allows to get compile-time meta-data about
the inheritance of a base class of a class.
</p>
<div class="refsect2" lang="en">
-<a name="id2612032"></a><h3>
-<a name="id2533333-bbtypes"></a><code class="computeroutput">meta_inheritance</code> public types</h3>
+<a name="id2612035"></a><h3>
+<a name="id2509334-bbtypes"></a><code class="computeroutput">meta_inheritance</code> public types</h3>
<div class="orderedlist"><ol type="1">
<li>
<p>
Modified: sandbox/mirror/doc/html/boost/mirror/meta_namespace.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/meta_namespace.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/meta_namespace.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -45,17 +45,17 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> NamespacePlaceholder>
<span class="bold"><strong>class</strong></span> <a class="link" href="meta_namespace.html" title="Class template meta_namespace">meta_namespace</a> {
<span class="bold"><strong>public</strong></span>:
- <span class="emphasis"><em>// <a class="link" href="meta_namespace.html#id2389582-bbtypes">types</a></em></span>
+ <span class="emphasis"><em>// <a class="link" href="meta_namespace.html#id2396878-bbtypes">types</a></em></span>
<span class="bold"><strong>typedef</strong></span> <a class="link" href="meta_namespace.html" title="Class template meta_namespace">meta_namespace</a><<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_namespace.html#boost.mirror.meta_namespace.scope">scope</a>;
<span class="bold"><strong>typedef</strong></span> <span class="emphasis"><em>unspecified</em></span> <a class="link" href="meta_namespace.html#boost.mirror.meta_namespace.ancestors">ancestors</a>;
- <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_namespace.html#id2501270-bb">base_name</a>();
- <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_namespace.html#id2389591-bb">full_name</a>();
+ <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_namespace.html#id2519194-bb">base_name</a>();
+ <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_namespace.html#id2456759-bb">full_name</a>();
<span class="bold"><strong>template</strong></span><<span class="bold"><strong>bool</strong></span> FullName, <span class="bold"><strong>typename</strong></span> CharT>
<span class="type"><span class="bold"><strong>const</strong></span> ::std::basic_string<CharT>&</span>
- <a class="link" href="meta_namespace.html#id2390272-bb">get_name</a>(::boost::mpl::bool_<FullName>, ::std::char_traits<CharT>);
+ <a class="link" href="meta_namespace.html#id2454839-bb">get_name</a>(::boost::mpl::bool_<FullName>, ::std::char_traits<CharT>);
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2601760"></a><h2>Description</h2>
+<a name="id2601762"></a><h2>Description</h2>
<p>The specializations of <code class="computeroutput"><a class="link" href="meta_type.html" title="Class template meta_type">meta_type</a></code> can
be used to get meta-information about the reflected types, some at compile-time and some at run-time.
The following examples show type reflection and basic
@@ -81,7 +81,7 @@
using namespace ::std;
using namespace ::boost;
using namespace ::boost::mirror;
- cts::bostream& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::bostream& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
// several namespaces are pre-registered
bcout << <a class="link" href="../../BOOST_MIRRORED_GLOBAL_SCOPE.html" title="Macro BOOST_MIRRORED_GLOBAL_SCOPE">BOOST_MIRRORED_GLOBAL_SCOPE</a>() ::base_name() << endl;
@@ -121,7 +121,7 @@
{
using namespace ::std;
using namespace ::boost;
- cts::<a class="link" href="../cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::<a class="link" href="../cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bcout <<
<a class="link" href="../../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("ancestor ") <<
ctr++ <<
@@ -141,7 +141,7 @@
using namespace ::std;
using namespace ::boost;
using namespace ::boost::mirror;
- cts::<a class="link" href="../cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::<a class="link" href="../cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
//
typedef <a class="link" href="../../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a>(::boost::mirror) meta_boost_mirror;
//
@@ -165,9 +165,9 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h6 class="title">
<a name="mirror.meta_namespace.reference.sample03"></a>Example - Generic namespace name getter</h6></div></div></div>
-<p>The <code class="computeroutput"><a class="link" href="meta_namespace.html#id2501270-bb">base_name</a></code> and the
- <code class="computeroutput"><a class="link" href="meta_namespace.html#id2389591-bb">full_name</a></code> methods
- are convenient but not very generic. The <code class="computeroutput"><a class="link" href="meta_namespace.html#id2390272-bb">get_name</a></code>
+<p>The <code class="computeroutput"><a class="link" href="meta_namespace.html#id2519194-bb">base_name</a></code> and the
+ <code class="computeroutput"><a class="link" href="meta_namespace.html#id2456759-bb">full_name</a></code> methods
+ are convenient but not very generic. The <code class="computeroutput"><a class="link" href="meta_namespace.html#id2454839-bb">get_name</a></code>
member function allows to specify the character type of the returned string and
to specify whether a full or just the base namespace name should be returned, based
on compile time arguments.
@@ -206,15 +206,15 @@
//
cout << mns << endl;
wcout << mns << endl;
-
+
return 0;
}
</pre>
</div>
</div>
<div class="refsect2" lang="en">
-<a name="id2602254"></a><h3>
-<a name="id2389582-bbtypes"></a><code class="computeroutput">meta_namespace</code> public types</h3>
+<a name="id2602256"></a><h3>
+<a name="id2396878-bbtypes"></a><code class="computeroutput">meta_namespace</code> public types</h3>
<div class="orderedlist"><ol type="1">
<li>
<p>
@@ -288,7 +288,7 @@
</li>
</ol></div>
</div>
-<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2501270-bb"></a>base_name();</pre>
+<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2519194-bb"></a>base_name();</pre>
<p>This static member function returns the base name of the
namespace reflected by a <code class="computeroutput"><a class="link" href="meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>.
For example the base namespace name "returned" by the invocation of
@@ -298,9 +298,9 @@
<p>
is <code class="computeroutput">"mirror"</code>. When a full namespace name
<span class="bold"><strong>with</strong></span> the nested name specifier
- is needed use the <code class="computeroutput"><a class="link" href="meta_namespace.html#id2389591-bb">full_name</a></code> member function
+ is needed use the <code class="computeroutput"><a class="link" href="meta_namespace.html#id2456759-bb">full_name</a></code> member function
instead.</p>
-<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2389591-bb"></a>full_name();</pre>
+<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2456759-bb"></a>full_name();</pre>
<p>This static member function returns the full name of the
namespace reflected by a <code class="computeroutput"><a class="link" href="meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>
with the nested name specifier. For example:
@@ -310,7 +310,7 @@
<p>
returns <code class="computeroutput">"::boost::mirror"</code>. When the base namespace name
<span class="bold"><strong>without</strong></span> the nested name specifier
- is needed use the <code class="computeroutput"><a class="link" href="meta_namespace.html#id2501270-bb">base_name</a></code> member function
+ is needed use the <code class="computeroutput"><a class="link" href="meta_namespace.html#id2519194-bb">base_name</a></code> member function
instead.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
@@ -327,7 +327,7 @@
</table></div>
<pre class="literallayout"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>bool</strong></span> FullName, <span class="bold"><strong>typename</strong></span> CharT>
<span class="type"><span class="bold"><strong>const</strong></span> ::std::basic_string<CharT>&</span>
- <a name="id2390272-bb"></a>get_name(::boost::mpl::bool_<FullName> full, ::std::char_traits<CharT> cht);</pre>
+ <a name="id2454839-bb"></a>get_name(::boost::mpl::bool_<FullName> full, ::std::char_traits<CharT> cht);</pre>
<p>This static member template function returns either the base name
<span class="bold"><strong>without</strong></span> the nested name specifier
or the full name <span class="bold"><strong>with</strong></span> the
@@ -342,14 +342,14 @@
<pre class="programlisting"><code class="computeroutput"><a class="link" href="../../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::mirror) :: get_name(::boost::mpl::false_(), ::std::char_traits<char>())
</pre>
<p> is equivalent to calling the
- <code class="computeroutput"><a class="link" href="meta_namespace.html#id2501270-bb">base_name</a></code> member function with the
+ <code class="computeroutput"><a class="link" href="meta_namespace.html#id2519194-bb">base_name</a></code> member function with the
<code class="computeroutput"><a class="link" href="../../BOOST_CTS_USE_WIDE_CHARS.html" title="Macro BOOST_CTS_USE_WIDE_CHARS">BOOST_CTS_USE_WIDE_CHARS</a></code> symbol undefined,
which returns a <code class="computeroutput">::std::string</code> holding the string <code class="computeroutput">"mirror"</code> and calling
</p>
<pre class="programlisting"><code class="computeroutput"><a class="link" href="../../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::mirror) :: get_name(::boost::mpl::true_(), ::std::char_traits<wchar_t>())
</pre>
<p> is equivalent to calling the
- <code class="computeroutput"><a class="link" href="meta_namespace.html#id2389591-bb">full_name</a></code> method with the
+ <code class="computeroutput"><a class="link" href="meta_namespace.html#id2456759-bb">full_name</a></code> method with the
<code class="computeroutput"><a class="link" href="../../BOOST_CTS_USE_WIDE_CHARS.html" title="Macro BOOST_CTS_USE_WIDE_CHARS">BOOST_CTS_USE_WIDE_CHARS</a></code> symbol defined,
which returns a <code class="computeroutput">::std::wstring</code> holding this string <code class="computeroutput">L"::boost::mirror"</code>.
</p>
Modified: sandbox/mirror/doc/html/boost/mirror/meta_type.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/meta_type.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/meta_type.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -44,14 +44,14 @@
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> Type>
<span class="bold"><strong>class</strong></span> <a class="link" href="meta_type.html" title="Class template meta_type">meta_type</a> {
<span class="bold"><strong>public</strong></span>:
- <span class="emphasis"><em>// <a class="link" href="meta_type.html#id2497153-bbtypes">types</a></em></span>
+ <span class="emphasis"><em>// <a class="link" href="meta_type.html#id2485486-bbtypes">types</a></em></span>
<span class="bold"><strong>typedef</strong></span> Type <a class="link" href="meta_type.html#boost.mirror.meta_type.reflected_type">reflected_type</a>;
<span class="bold"><strong>typedef</strong></span> <a class="link" href="meta_namespace.html" title="Class template meta_namespace">meta_namespace</a><<span class="emphasis"><em>unspecified</em></span>>-or-<a class="link" href="meta_class.html" title="Class template meta_class">meta_class</a><<span class="emphasis"><em>unspecified</em></span>> <a class="link" href="meta_type.html#boost.mirror.meta_type.scope">scope</a>;
- <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_type.html#id2501518-bb">base_name</a>();
- <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_type.html#id2539067-bb">full_name</a>();
+ <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_type.html#id2500557-bb">base_name</a>();
+ <span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a class="link" href="meta_type.html#id2498534-bb">full_name</a>();
<span class="bold"><strong>template</strong></span><<span class="bold"><strong>bool</strong></span> FullName, <span class="bold"><strong>typename</strong></span> CharT>
<span class="type"><span class="bold"><strong>const</strong></span> ::std::basic_string<CharT>&</span>
- <a class="link" href="meta_type.html#id2474790-bb">get_name</a>(::boost::mpl::bool_<FullName>, ::std::char_traits<CharT>);
+ <a class="link" href="meta_type.html#id2420169-bb">get_name</a>(::boost::mpl::bool_<FullName>, ::std::char_traits<CharT>);
};</pre></div>
<div class="refsect1" lang="en">
<a name="id2604601"></a><h2>Description</h2>
@@ -95,7 +95,7 @@
typedef <a class="link" href="../../BOOST_MIRRORED_TYPE.html" title="Macro BOOST_MIRRORED_TYPE">BOOST_MIRRORED_TYPE</a>(T) meta_T;
// print out the full type name
- cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>() <<
+ cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>() <<
<a class="link" href="../../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("The full type name is: ") <<
meta_T::full_name() <<
endl;
@@ -124,7 +124,7 @@
using namespace ::std;
using namespace ::boost;
using namespace ::boost::mirror;
- cts::<a class="link" href="../cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::<a class="link" href="../cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
// print out the base type name
bcout <<
<a class="link" href="../../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("The type name is: ") <<
@@ -197,7 +197,7 @@
{
using namespace ::std;
using namespace ::boost;
- cts::<a class="link" href="../cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ cts::<a class="link" href="../cts/bostream.html" title="Type definition bostream">bostream</a>& bcout = cts::<a class="link" href="../../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a>();
bcout << <a class="link" href="../../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("type: '");
bcout << MetaType::base_name();
bcout << <a class="link" href="../../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>("' defined in: '");
@@ -231,9 +231,9 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h6 class="title">
<a name="mirror.meta_type.reference.sample04"></a>Example - Generic typename getter</h6></div></div></div>
-<p>The <code class="computeroutput"><a class="link" href="meta_type.html#id2501518-bb">base_name</a></code> and the
- <code class="computeroutput"><a class="link" href="meta_type.html#id2539067-bb">full_name</a></code> member functions
- are convenient but not very generic. The <code class="computeroutput"><a class="link" href="meta_type.html#id2474790-bb">get_name</a></code>
+<p>The <code class="computeroutput"><a class="link" href="meta_type.html#id2500557-bb">base_name</a></code> and the
+ <code class="computeroutput"><a class="link" href="meta_type.html#id2498534-bb">full_name</a></code> member functions
+ are convenient but not very generic. The <code class="computeroutput"><a class="link" href="meta_type.html#id2420169-bb">get_name</a></code>
method allows to specify the character type of the returned string and
to specify whether a full or just the base name should be returned, based
on compile time arguments.
@@ -279,8 +279,8 @@
</div>
</div>
<div class="refsect2" lang="en">
-<a name="id2605239"></a><h3>
-<a name="id2497153-bbtypes"></a><code class="computeroutput">meta_type</code> public types</h3>
+<a name="id2605240"></a><h3>
+<a name="id2485486-bbtypes"></a><code class="computeroutput">meta_type</code> public types</h3>
<div class="orderedlist"><ol type="1">
<li>
<p>
@@ -299,7 +299,7 @@
</li>
</ol></div>
</div>
-<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2501518-bb"></a>base_name();</pre>
+<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2500557-bb"></a>base_name();</pre>
<p>This static member function returns the base name of the
type reflected by <code class="computeroutput"><a class="link" href="meta_type.html" title="Class template meta_type">meta_type</a></code>
without the nested name specifier. For example:
@@ -313,7 +313,7 @@
<p>
returns simply <code class="computeroutput">"string"</code>. When a full type name
<span class="bold"><strong>with</strong></span> the nested name specifier
- is needed use the <code class="computeroutput"><a class="link" href="meta_type.html#id2539067-bb">full_name</a></code> member function
+ is needed use the <code class="computeroutput"><a class="link" href="meta_type.html#id2498534-bb">full_name</a></code> member function
instead.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
@@ -329,7 +329,7 @@
</p></td>
</tr></tbody>
</table></div>
-<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2539067-bb"></a>full_name();</pre>
+<pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> cts::<a class="link" href="../cts/bstring.html" title="Type definition bstring">bstring</a>&</span> <a name="id2498534-bb"></a>full_name();</pre>
<p>This static member function returns the full name of the
type reflected by <code class="computeroutput"><a class="link" href="meta_type.html" title="Class template meta_type">meta_type</a></code>
with the nested name specifier. For example:
@@ -343,7 +343,7 @@
<p>
returns <code class="computeroutput">"::std::string"</code>. When the base type name
<span class="bold"><strong>without</strong></span> the nested name specifier
- is needed use the <code class="computeroutput"><a class="link" href="meta_type.html#id2501518-bb">base_name</a></code> member function
+ is needed use the <code class="computeroutput"><a class="link" href="meta_type.html#id2500557-bb">base_name</a></code> member function
instead.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
@@ -361,7 +361,7 @@
</table></div>
<pre class="literallayout"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>bool</strong></span> FullName, <span class="bold"><strong>typename</strong></span> CharT>
<span class="type"><span class="bold"><strong>const</strong></span> ::std::basic_string<CharT>&</span>
- <a name="id2474790-bb"></a>get_name(::boost::mpl::bool_<FullName> full, ::std::char_traits<CharT> cht);</pre>
+ <a name="id2420169-bb"></a>get_name(::boost::mpl::bool_<FullName> full, ::std::char_traits<CharT> cht);</pre>
<p>This static member template function returns either the base name
<span class="bold"><strong>without</strong></span> the nested name specifier
or the full name <span class="bold"><strong>with</strong></span> the
@@ -379,7 +379,7 @@
<pre class="programlisting"><code class="computeroutput"><a class="link" href="meta_type.html" title="Class template meta_type">meta_type</a></code> < ::std::string > :: get_name(::boost::mpl::false_(), ::std::char_traits<char>())</pre>
<p>
is equivalent to calling the
- <code class="computeroutput"><a class="link" href="meta_type.html#id2501518-bb">base_name</a></code> member function with the
+ <code class="computeroutput"><a class="link" href="meta_type.html#id2500557-bb">base_name</a></code> member function with the
<code class="computeroutput"><a class="link" href="../../BOOST_CTS_USE_WIDE_CHARS.html" title="Macro BOOST_CTS_USE_WIDE_CHARS">BOOST_CTS_USE_WIDE_CHARS</a></code> symbol undefined,
which returns a <code class="computeroutput">::std::string</code> containing <code class="computeroutput">"string"</code> and calling
</p>
@@ -388,7 +388,7 @@
</p>
<pre class="programlisting"><code class="computeroutput"><a class="link" href="meta_type.html" title="Class template meta_type">meta_type</a></code> < ::std::string > :: get_name( ::boost::mpl::true_(), ::std::char_traits<wchar_t>())</pre>
<p> is equivalent to calling the
- <code class="computeroutput"><a class="link" href="meta_type.html#id2539067-bb">full_name</a></code> method with the
+ <code class="computeroutput"><a class="link" href="meta_type.html#id2498534-bb">full_name</a></code> method with the
<code class="computeroutput"><a class="link" href="../../BOOST_CTS_USE_WIDE_CHARS.html" title="Macro BOOST_CTS_USE_WIDE_CHARS">BOOST_CTS_USE_WIDE_CHARS</a></code> symbol defined,
which returns a <code class="computeroutput">::std::wstring</code> containing <code class="computeroutput">L"::std::string"</code>.
</p>
Modified: sandbox/mirror/doc/html/boost/mirror/reflects_class.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/reflects_class.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/reflects_class.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -37,7 +37,7 @@
<span class="bold"><strong>class</strong></span> <a class="link" href="reflects_class.html" title="Class template reflects_class">reflects_class</a> : <span class="bold"><strong>public</strong></span> <span class="type">false_type-or-true_type</span> {
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2613470"></a><h2>Description</h2>
+<a name="id2613472"></a><h2>Description</h2>
<p>This template can be used to distinguish whether the opaque <code class="computeroutput">MetaObject</code> type reflects a class
and thus is an instantiation of <code class="computeroutput"><a class="link" href="meta_class.html" title="Class template meta_class">meta_class</a></code>.
</p>
Modified: sandbox/mirror/doc/html/boost/mirror/reflects_global_scope.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/reflects_global_scope.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/reflects_global_scope.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -38,7 +38,7 @@
<span class="bold"><strong>class</strong></span> <a class="link" href="reflects_global_scope.html" title="Class template reflects_global_scope">reflects_global_scope</a> : <span class="bold"><strong>public</strong></span> <span class="type">false_type-or-true_type</span> {
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2612757"></a><h2>Description</h2>
+<a name="id2612759"></a><h2>Description</h2>
<p>This template can be used to distinguish whether the opaque <code class="computeroutput">MetaObject</code> type reflects the global scope
and thus is an instantiation of <code class="computeroutput"><a class="link" href="meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code> for the global scope.
</p>
Modified: sandbox/mirror/doc/html/boost/mirror/reflects_namespace.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/reflects_namespace.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/reflects_namespace.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -37,7 +37,7 @@
<span class="bold"><strong>class</strong></span> <a class="link" href="reflects_namespace.html" title="Class template reflects_namespace">reflects_namespace</a> : <span class="bold"><strong>public</strong></span> <span class="type">false_type-or-true_type</span> {
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2612328"></a><h2>Description</h2>
+<a name="id2612330"></a><h2>Description</h2>
<p>This template can be used to distinguish whether the opaque <code class="computeroutput">MetaObject</code> type reflects a namespace
and thus is an instantiation of <code class="computeroutput"><a class="link" href="meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>.
</p>
Modified: sandbox/mirror/doc/html/boost/mirror/reflects_type.html
==============================================================================
--- sandbox/mirror/doc/html/boost/mirror/reflects_type.html (original)
+++ sandbox/mirror/doc/html/boost/mirror/reflects_type.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -37,7 +37,7 @@
<span class="bold"><strong>class</strong></span> <a class="link" href="reflects_type.html" title="Class template reflects_type">reflects_type</a> : <span class="bold"><strong>public</strong></span> <span class="type">false_type-or-true_type</span> {
};</pre></div>
<div class="refsect1" lang="en">
-<a name="id2613218"></a><h2>Description</h2>
+<a name="id2613220"></a><h2>Description</h2>
<p>This template can be used to distinguish whether the opaque <code class="computeroutput">MetaObject</code> type reflects a type or a class
and thus is an instantiation of <code class="computeroutput"><a class="link" href="meta_type.html" title="Class template meta_type">meta_type</a></code>.
</p>
Modified: sandbox/mirror/doc/html/char_type_switch.html
==============================================================================
--- sandbox/mirror/doc/html/char_type_switch.html (original)
+++ sandbox/mirror/doc/html/char_type_switch.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -34,7 +34,7 @@
</div></div>
<div><p class="copyright">Copyright © 2008 Matúš Chochlík</p></div>
<div><div class="legalnotice">
-<a name="id2614510"></a><p>Use, modification and distribution is subject to the Boost
+<a name="id2616167"></a><p>Use, modification and distribution is subject to the Boost
Software License, Version 1.0. (See accompanying file
<code class="filename">LICENSE_1_0.txt</code> or copy at http://www.boost.org/LICENSE_1_0.txt)
</p>
@@ -49,7 +49,7 @@
<dt><span class="section">Motivation</span></dt>
</dl></dd>
<dt><span class="section">Char Type Switch Reference</span></dt>
-<dd><dl><dt><span class="section">Header files</span></dt></dl></dd>
+<dd><dl><dt><span class="section">Header files</span></dt></dl></dd>
</dl>
</div>
<div class="section" lang="en">
@@ -78,8 +78,8 @@
<code class="computeroutput">::boost::cts::<a class="link" href="boost/cts/bistream.html" title="Type definition bistream">bistream</a></code>,
<code class="computeroutput">::boost::cts::<a class="link" href="boost/cts/bostream.html" title="Type definition bostream">bostream</a></code>, etc.,
functions like
- <code class="computeroutput">::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrlen_id2548529">bstrlen</a></code>,
- <code class="computeroutput">::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcpy_id2538908">bstrcpy</a></code>, etc.
+ <code class="computeroutput">::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrlen_id2513356">bstrlen</a></code>,
+ <code class="computeroutput">::boost::cts::<a class="link" href="char_type_switch/reference.html#boost.cts.bstrcpy_id2453919">bstrcpy</a></code>, etc.
and macros like
<code class="computeroutput"><a class="link" href="BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a>(STRING_LITERAL)</code> OR
<code class="computeroutput"><a class="link" href="BOOST_CTS_LIT_LENGTH.html" title="Macro BOOST_CTS_LIT_LENGTH">BOOST_CTS_LIT_LENGTH</a>(STRING_LITERAL)</code>
Modified: sandbox/mirror/doc/html/char_type_switch/reference.html
==============================================================================
--- sandbox/mirror/doc/html/char_type_switch/reference.html (original)
+++ sandbox/mirror/doc/html/char_type_switch/reference.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -25,12 +25,12 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="char_type_switch.reference"></a>Char Type Switch Reference</h2></div></div></div>
-<div class="toc"><dl><dt><span class="section">Header files</span></dt></dl></div>
+<div class="toc"><dl><dt><span class="section">Header files</span></dt></dl></div>
<p>
</p>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="id2614876"></a>Header files</h3></div></div></div>
+<a name="id2616533"></a>Header files</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section">Header <boost/char_type_switch/choice.hpp></span></dt>
<dt><span class="section">Header <boost/char_type_switch/char.hpp></span></dt>
@@ -78,31 +78,31 @@
<span class="bold"><strong>typedef</strong></span> ::std::basic_ostream<<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>, <a class="link" href="../boost/cts/bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a>> <a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a>;
<span class="bold"><strong>typedef</strong></span> ::std::basic_iostream<<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>, <a class="link" href="../boost/cts/bchar_traits.html" title="Type definition bchar_traits">bchar_traits</a>> <a class="link" href="../boost/cts/biostream.html" title="Type definition biostream">biostream</a>;
- <span class="emphasis"><em>// <a class="link" href="reference.html#id2344134-bb">free-functions</a></em></span>
- <span class="type"><a class="link" href="../boost/cts/bistream.html" title="Type definition bistream">bistream</a>&</span> <a class="link" href="reference.html#boost.cts.bcin_id2344130">bcin</a>();
- <span class="type"><a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a>&</span> <a class="link" href="reference.html#boost.cts.bcout_id2426269">bcout</a>();
+ <span class="emphasis"><em>// <a class="link" href="reference.html#id2446902-bb">free-functions</a></em></span>
+ <span class="type"><a class="link" href="../boost/cts/bistream.html" title="Type definition bistream">bistream</a>&</span> <a class="link" href="reference.html#boost.cts.bcin_id2466914">bcin</a>();
+ <span class="type"><a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a>&</span> <a class="link" href="reference.html#boost.cts.bcout_id2466872">bcout</a>();
}
}</pre>
<div class="refsect2" lang="en">
-<a name="id2616379"></a><h3>
-<a name="id2344134-bb"></a><code class="computeroutput"></code> free-functions</h3>
+<a name="id2618038"></a><h3>
+<a name="id2446902-bb"></a><code class="computeroutput"></code> free-functions</h3>
<div class="orderedlist"><ol type="1">
<li>
-<pre class="literallayout"><span class="type"><a class="link" href="../boost/cts/bistream.html" title="Type definition bistream">bistream</a>&</span> <a name="boost.cts.bcin_id2344130"></a>bcin();</pre>
+<pre class="literallayout"><span class="type"><a class="link" href="../boost/cts/bistream.html" title="Type definition bistream">bistream</a>&</span> <a name="boost.cts.bcin_id2466914"></a>bcin();</pre>
<p>Returns a reference to the standard input stream.
</p>
<p>If <code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> is defined as <code class="computeroutput">char</code> then this function returns a reference
to <code class="computeroutput">::std::cin</code>, otherwise if <code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> is defined as <code class="computeroutput">wchar_t</code>,
- then <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bcin_id2344130">bcin</a></code> returns a reference to <code class="computeroutput">::std::wcin</code>.
+ then <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bcin_id2466914">bcin</a></code> returns a reference to <code class="computeroutput">::std::wcin</code>.
</p>
</li>
<li>
-<pre class="literallayout"><span class="type"><a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a>&</span> <a name="boost.cts.bcout_id2426269"></a>bcout();</pre>
+<pre class="literallayout"><span class="type"><a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a>&</span> <a name="boost.cts.bcout_id2466872"></a>bcout();</pre>
<p>Returns a reference to the standard output stream.
</p>
<p>If <code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> is defined as <code class="computeroutput">char</code> then this function returns a reference
to <code class="computeroutput">::std::cout</code>, otherwise if <code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> is defined as <code class="computeroutput">wchar_t</code>,
- then <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bcout_id2426269">bcout</a></code> returns a reference to <code class="computeroutput">::std::wcout</code>.
+ then <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bcout_id2466872">bcout</a></code> returns a reference to <code class="computeroutput">::std::wcout</code>.
</p>
</li>
</ol></div>
@@ -114,19 +114,19 @@
<pre class="synopsis"><span class="bold"><strong>namespace</strong></span> boost {
<span class="bold"><strong>namespace</strong></span> cts {
- <span class="emphasis"><em>// <a class="link" href="reference.html#id2386852-bb">free-functions</a></em></span>
- <span class="type">size_t</span> <a class="link" href="reference.html#boost.cts.bstrlen_id2548529">bstrlen</a>(<span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*);
- <span class="type"><span class="bold"><strong>int</strong></span></span> <a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a>(<span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*);
- <span class="type"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*</span> <a class="link" href="reference.html#boost.cts.bstrcpy_id2538908">bstrcpy</a>(<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*);
- <span class="type"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*</span> <a class="link" href="reference.html#boost.cts.bstrncpy_id2521418">bstrncpy</a>(<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*, size_t);
+ <span class="emphasis"><em>// <a class="link" href="reference.html#id2492969-bb">free-functions</a></em></span>
+ <span class="type">size_t</span> <a class="link" href="reference.html#boost.cts.bstrlen_id2513356">bstrlen</a>(<span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*);
+ <span class="type"><span class="bold"><strong>int</strong></span></span> <a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a>(<span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*);
+ <span class="type"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*</span> <a class="link" href="reference.html#boost.cts.bstrcpy_id2453919">bstrcpy</a>(<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*);
+ <span class="type"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*</span> <a class="link" href="reference.html#boost.cts.bstrncpy_id2352852">bstrncpy</a>(<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*, size_t);
}
}</pre>
<div class="refsect2" lang="en">
-<a name="id2617374"></a><h3>
-<a name="id2386852-bb"></a><code class="computeroutput"></code> free-functions</h3>
+<a name="id2619034"></a><h3>
+<a name="id2492969-bb"></a><code class="computeroutput"></code> free-functions</h3>
<div class="orderedlist"><ol type="1">
<li>
-<pre class="literallayout"><span class="type">size_t</span> <a name="boost.cts.bstrlen_id2548529"></a>bstrlen(<span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* str);</pre>
+<pre class="literallayout"><span class="type">size_t</span> <a name="boost.cts.bstrlen_id2513356"></a>bstrlen(<span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* str);</pre>
<p>Returns the length (the count of characters) of the given string without the terminating null character.
</p>
<p>Calling this function is equivalent to calling <code class="computeroutput">strlen</code> if
@@ -143,18 +143,18 @@
int main(void)
{
using namespace ::boost::cts;
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrlen_id2548529">bstrlen</a></code>(<code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo")) == 3);
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrlen_id2548529">bstrlen</a></code>(<code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo")) == <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT_LENGTH.html" title="Macro BOOST_CTS_LIT_LENGTH">BOOST_CTS_LIT_LENGTH</a></code>("foo"));
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrlen_id2513356">bstrlen</a></code>(<code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo")) == 3);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrlen_id2513356">bstrlen</a></code>(<code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo")) == <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT_LENGTH.html" title="Macro BOOST_CTS_LIT_LENGTH">BOOST_CTS_LIT_LENGTH</a></code>("foo"));
//
const <code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> bar[] = <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("bar");
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrlen_id2548529">bstrlen</a></code>(bar) == 3);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrlen_id2513356">bstrlen</a></code>(bar) == 3);
return 0;
}
</pre>
</div>
</li>
<li>
-<pre class="literallayout"><span class="type"><span class="bold"><strong>int</strong></span></span> <a name="boost.cts.bstrcmp_id2395724"></a>bstrcmp(<span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* str1, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* str2);</pre>
+<pre class="literallayout"><span class="type"><span class="bold"><strong>int</strong></span></span> <a name="boost.cts.bstrcmp_id2562765"></a>bstrcmp(<span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* str1, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* str2);</pre>
<p>This function compares the given two strings and returns an integral value that indicates the relationship between them.
</p>
<p>Calling this function is equivalent to calling <code class="computeroutput">strcmp</code> if
@@ -177,19 +177,19 @@
const <code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> foo[] = <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo");
const <code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> bar[] = <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("bar");
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(foo, bar) > 0);
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(foo, foo) == 0);
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(bar, foo) < 0);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(foo, bar) > 0);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(foo, foo) == 0);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(bar, foo) < 0);
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(foo, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("baz")) > 0);
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(foo, <code class="computeroutput"><a class="link" href="../BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a></code>(foobar)) <= 0);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(foo, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("baz")) > 0);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(foo, <code class="computeroutput"><a class="link" href="../BOOST_CTS_STRINGIZE.html" title="Macro BOOST_CTS_STRINGIZE">BOOST_CTS_STRINGIZE</a></code>(foobar)) <= 0);
return 0;
}
</pre>
</div>
</li>
<li>
-<pre class="literallayout"><span class="type"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*</span> <a name="boost.cts.bstrcpy_id2538908"></a>bstrcpy(<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* dst, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* src);</pre>
+<pre class="literallayout"><span class="type"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*</span> <a name="boost.cts.bstrcpy_id2453919"></a>bstrcpy(<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* dst, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* src);</pre>
<p>This function copies <code class="computeroutput">src</code> into <code class="computeroutput">dst</code> including the terminating null character and returns <code class="computeroutput">dst</code>.
<code class="computeroutput">dst</code> should not overlap <code class="computeroutput">src</code> in memory.
</p>
@@ -210,19 +210,19 @@
<code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> aaa[4];
<code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> bbb[4];
- <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcpy_id2538908">bstrcpy</a></code>(aaa, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo"));
- <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcpy_id2538908">bstrcpy</a></code>(bbb, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("bar"));
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(aaa, bbb) != 0);
+ <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcpy_id2453919">bstrcpy</a></code>(aaa, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo"));
+ <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcpy_id2453919">bstrcpy</a></code>(bbb, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("bar"));
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(aaa, bbb) != 0);
- <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcpy_id2538908">bstrcpy</a></code>(bbb, aaa);
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(aaa, bbb) == 0);
+ <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcpy_id2453919">bstrcpy</a></code>(bbb, aaa);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(aaa, bbb) == 0);
return 0;
}
</pre>
</div>
</li>
<li>
-<pre class="literallayout"><span class="type"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*</span> <a name="boost.cts.bstrncpy_id2521418"></a>bstrncpy(<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* dst, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* src, size_t num);</pre>
+<pre class="literallayout"><span class="type"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>*</span> <a name="boost.cts.bstrncpy_id2352852"></a>bstrncpy(<a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* dst, <span class="bold"><strong>const</strong></span> <a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a>* src, size_t num);</pre>
<p>This function copies the first <code class="computeroutput">num</code> characters from <code class="computeroutput">src</code> into <code class="computeroutput">dst</code> and returns <code class="computeroutput">dst</code>.
If the end of <code class="computeroutput">src</code> is found before <code class="computeroutput">num</code> characters are copied, <code class="computeroutput">dst</code> is padded with null characters
until the count of modified characters reaches <code class="computeroutput">num</code>. If <code class="computeroutput">num</code> is less or equal to the length of <code class="computeroutput">src</code>,
@@ -246,16 +246,16 @@
<code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> aaa[size];
<code class="computeroutput"><a class="link" href="../boost/cts/bchar.html" title="Type definition bchar">bchar</a></code> bbb[size];
- <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrncpy_id2521418">bstrncpy</a></code>(aaa, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo"), size);
- <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrncpy_id2521418">bstrncpy</a></code>(bbb, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("bar"), size);
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(aaa, bbb) != 0);
+ <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrncpy_id2352852">bstrncpy</a></code>(aaa, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foo"), size);
+ <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrncpy_id2352852">bstrncpy</a></code>(bbb, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("bar"), size);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(aaa, bbb) != 0);
- <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrncpy_id2521418">bstrncpy</a></code>(bbb, aaa, size);
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(aaa, bbb) == 0);
+ <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrncpy_id2352852">bstrncpy</a></code>(bbb, aaa, size);
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(aaa, bbb) == 0);
- <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrncpy_id2521418">bstrncpy</a></code>(bbb, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foobar"), size);
+ <code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrncpy_id2352852">bstrncpy</a></code>(bbb, <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("foobar"), size);
bbb[size-1] = <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>('\0');
- assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2395724">bstrcmp</a></code>(aaa, bbb) == 0); return 0;
+ assert(<code class="computeroutput"><a class="link" href="reference.html#boost.cts.bstrcmp_id2562765">bstrcmp</a></code>(aaa, bbb) == 0); return 0;
}
</pre>
</div>
Modified: sandbox/mirror/doc/html/mirror/examples.html
==============================================================================
--- sandbox/mirror/doc/html/mirror/examples.html (original)
+++ sandbox/mirror/doc/html/mirror/examples.html 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -42,14 +42,32 @@
<a name="mirror.examples.registering"></a>Registering</h3></div></div></div>
<p>
</p>
+<div class="table">
+<a name="id2614048"></a><p class="title"><b>Table 1.5. Registering examples</b></p>
+<div class="table-contents"><table class="table" summary="Registering examples">
+<colgroup>
+<col>
+<col>
+</colgroup>
+<thead><tr>
+<th>Example</th>
+<th>Notes</th>
+</tr></thead>
+<tbody><tr>
+<td><a class="link" href="examples.html#mirror.examples.reg_refl_namespaces_01" title="Namespace registering and reflection - example 1">Namespace reflection and registering - example 1</a></td>
+<td>A complete example showing the registering and reflection of namespaces and the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code> template. </td>
+</tr></tbody>
+</table></div>
+</div>
+<br class="table-break">
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="mirror.examples.reflection"></a>Reflection</h3></div></div></div>
-<p>The following table shows the list of examples showing the use of the <a class="link" href="reference.html#mirror.reference.reflecting" title="Reflecting">reflection macros</a>.
+<p>The following table contains a list of examples showing the use of the <a class="link" href="reference.html#mirror.reference.reflecting" title="Reflecting">reflection macros</a>.
</p>
<div class="table">
-<a name="id2614070"></a><p class="title"><b>Table 1.5. Reflection examples</b></p>
+<a name="id2614131"></a><p class="title"><b>Table 1.6. Reflection examples</b></p>
<div class="table-contents"><table class="table" summary="Reflection examples">
<colgroup>
<col>
@@ -59,10 +77,24 @@
<th>Example</th>
<th>Notes</th>
</tr></thead>
-<tbody><tr>
-<td><a class="link" href="examples.html#mirror.examples.refl_namespaces_01" title="Reflecting namespaces - example 1">Namespace reflection - 1</a></td>
+<tbody>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_namespaces_01" title="Reflecting namespaces - example 1">Namespace reflection - example 1</a></td>
<td>Simple example showing reflection of the pre-registered namespaces. </td>
-</tr></tbody>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.reg_refl_namespaces_01" title="Namespace registering and reflection - example 1">Namespace reflection and registering - example 1</a></td>
+<td>A complete example showing the registering and reflection of namespaces and the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code> template. </td>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_types_01" title="Reflecting complex types - example 1">Derived type reflection - example 1</a></td>
+<td>A simple example showing the reflection of types and the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_type.html" title="Class template meta_type">meta_type</a></code> template's name getters. </td>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_types_02" title="Reflecting types and use of meta_type - example 1">Type reflection and <code class="computeroutput">meta_type</code> usage - example 1</a></td>
+<td>An example showing the reflection of types and the usage of the member functions and typedefs provided by the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_type.html" title="Class template meta_type">meta_type</a></code> template. </td>
+</tr>
+</tbody>
</table></div>
</div>
<br class="table-break">
@@ -73,7 +105,7 @@
<p>Examples listed in the following table are related to the usage of the templates modelling the <a class="link" href="concepts.html#mirror.concepts.meta_object" title="MetaObject">MetaObject</a> concept.
</p>
<div class="table">
-<a name="id2614142"></a><p class="title"><b>Table 1.6. Reflection examples</b></p>
+<a name="id2614295"></a><p class="title"><b>Table 1.7. Reflection examples</b></p>
<div class="table-contents"><table class="table" summary="Reflection examples">
<colgroup>
<col>
@@ -83,10 +115,36 @@
<th>Example</th>
<th>Notes</th>
</tr></thead>
-<tbody><tr>
-<td><a class="link" href="examples.html#mirror.examples.refl_namespaces_01" title="Reflecting namespaces - example 1">Namespace reflection - 1</a></td>
+<tbody>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_namespaces_01" title="Reflecting namespaces - example 1">Simple meta namespace usage</a></td>
<td>Simple example showing the use of <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>'s name getters. </td>
-</tr></tbody>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_namespaces_02" title="Usage of meta_namespace - example 1">Meta namespace name getters - example 1</a></td>
+<td>Example showing the use of <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>'s name getters and the use of the <code class="computeroutput">scope</code> and <code class="computeroutput">ancestors</code> typedefs. </td>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_namespaces_03" title="Usage of meta_namespace's generic name getter - example 1">Meta namespace generic name getter - example 1</a></td>
+<td>Example showing the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>'s generic name getter member function <code class="computeroutput">get_name</code>. </td>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_namespaces_04" title="Usage of meta_namespace's generic name getter - example 2">Meta namespace generic name getter - example 2</a></td>
+<td>This example is a variation of the <a class="link" href="examples.html#mirror.examples.refl_namespaces_03" title="Usage of meta_namespace's generic name getter - example 1">Meta namespace generic name getter - 1</a> and shows the use of the <code class="computeroutput">get_name</code> generic namespace name getter member function. </td>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.reg_refl_namespaces_01" title="Namespace registering and reflection - example 1">Namespace reflection and registering - example 1</a></td>
+<td>A complete example showing the registering and reflection of namespaces and the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code> template. </td>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_types_01" title="Reflecting complex types - example 1">Meta type name getters - example 1</a></td>
+<td>A simple example showing the reflection of types and the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_type.html" title="Class template meta_type">meta_type</a></code> template's name getters. </td>
+</tr>
+<tr>
+<td><a class="link" href="examples.html#mirror.examples.refl_types_02" title="Reflecting types and use of meta_type - example 1">Type reflection and <code class="computeroutput">meta_type</code> usage - example 1</a></td>
+<td>An example showing the reflection of types and the usage of the member functions and typedefs provided by the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_type.html" title="Class template meta_type">meta_type</a></code> template. </td>
+</tr>
+</tbody>
</table></div>
</div>
<br class="table-break">
@@ -118,7 +176,15 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="mirror.examples.all"></a>All examples</h3></div></div></div>
-<div class="toc"><dl><dt><span class="section">Reflecting namespaces - example 1</span></dt></dl></div>
+<div class="toc"><dl>
+<dt><span class="section">Reflecting namespaces - example 1</span></dt>
+<dt><span class="section">Usage of meta_namespace - example 1</span></dt>
+<dt><span class="section">Usage of meta_namespace's generic name getter - example 1</span></dt>
+<dt><span class="section">Usage of meta_namespace's generic name getter - example 2</span></dt>
+<dt><span class="section">Namespace registering and reflection - example 1</span></dt>
+<dt><span class="section">Reflecting complex types - example 1</span></dt>
+<dt><span class="section">Reflecting types and use of meta_type
- example 1</span></dt>
+</dl></div>
<p>
</p>
<div class="section" lang="en">
@@ -140,7 +206,7 @@
using namespace ::std;
using namespace ::boost;
using namespace ::boost::mirror;
- cts::bostream& bcout = cts::<code class="computeroutput"><a class="link" href="../char_type_switch/reference.html#boost.cts.bcout_id2426269">bcout</a></code>();
+ cts::bostream& bcout = cts::<code class="computeroutput"><a class="link" href="../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a></code>();
// several namespaces are pre-registered
bcout << <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_GLOBAL_SCOPE.html" title="Macro BOOST_MIRRORED_GLOBAL_SCOPE">BOOST_MIRRORED_GLOBAL_SCOPE</a></code>() ::base_name() << endl;
@@ -157,6 +223,399 @@
}
</pre>
</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="mirror.examples.refl_namespaces_02"></a>Usage of <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code> - example 1</h4></div></div></div>
+<p>This example shows how to use the namespace <a class="link" href="reference.html#mirror.reference.reflecting" title="Reflecting">reflection macros</a>
+and the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code> template.
+In particular it shows the usage of the <code class="computeroutput">base_name</code> and <code class="computeroutput">full_name</code> namespace name getters and
+the use of the <code class="computeroutput">scope</code> and <code class="computeroutput">ancestors</code> typedefs.
+</p>
+<p>
+In this example only the namespaces that are pre-registered by <a class="link" href="../mirror.html" title="Chapter 1. Mirror">Mirror</a> are reflected.
+See <a class="xref" href="examples.html#mirror.examples.registering" title="Registering">the section called “Registering”</a> if you would like to find out more about namespace registering.
+</p>
+<pre class="programlisting">
+#include <boost/mpl/for_each.hpp>
+#include <boost/char_type_switch/iostream.hpp>
+#include <boost/mirror/meta_namespace.hpp>
+#include <boost/mirror/traits/reflects_global_scope.hpp>
+
+class printer
+{
+public:
+ template <class MetaNamespace>
+ void operator()(MetaNamespace mn)
+ {
+ using namespace ::std;
+ using namespace ::boost;
+ cts::<code class="computeroutput"><a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a></code>& bcout = cts::<code class="computeroutput"><a class="link" href="../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a></code>();
+ bcout <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("ancestor ") <<
+ ctr++ <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>(": '") <<
+ MetaNamespace::base_name() <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("'") <<
+ endl;
+ }
+
+ printer(void):ctr(0){ }
+private:
+ int ctr;
+};
+
+int main(void)
+{
+ using namespace ::std;
+ using namespace ::boost;
+ using namespace ::boost::mirror;
+ cts::<code class="computeroutput"><a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a></code>& bcout = cts::<code class="computeroutput"><a class="link" href="../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a></code>();
+ //
+ typedef <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::mirror) meta_boost_mirror;
+ //
+ // get the full name of the parent scope of the reflected namespace
+ bcout << meta_boost_mirror::scope::full_name() << endl;
+ //
+ // check whether the grandparent namespace is the global scope
+ if(<code class="computeroutput"><a class="link" href="../boost/mirror/reflects_global_scope.html" title="Class template reflects_global_scope">reflects_global_scope</a></code><meta_boost_mirror::scope::scope> :: value)
+ bcout << <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("OK") << endl;
+ else
+ bcout << <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("Error") << endl;
+
+ // the ancestors typedef is an mpl vector of meta_namespaces
+ printer p;
+ mpl::for_each<meta_boost_mirror::ancestors>(p);
+
+ return 0;
+}
+</pre>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="mirror.examples.refl_namespaces_03"></a>Usage of <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>'s generic name getter - example 1</h4></div></div></div>
+<p>This example shows the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code> template,
+in particular it shows the usage of the generic namespace name getter function <code class="computeroutput">get_name</code>.
+</p>
+<p>
+In this example only the namespaces that are pre-registered by <a class="link" href="../mirror.html" title="Chapter 1. Mirror">Mirror</a> are reflected.
+See <a class="xref" href="examples.html#mirror.examples.registering" title="Registering">the section called “Registering”</a> if you want to find out more about namespace registering.
+</p>
+<pre class="programlisting">
+#include <iostream>
+#include <boost/mirror/meta_namespace.hpp>
+
+
+template < typename CharT, typename NsPlaceholder >
+::std::basic_ostream< CharT, ::std::char_traits< CharT > >&
+operator << (
+ ::std::basic_ostream< CharT, ::std::char_traits< CharT > >& _s,
+ ::boost::mirror::<code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>< NsPlaceholder > _mn
+)
+{
+ return _s <<_mn.get_name(
+ ::boost::mpl::true_(),
+ ::std::char_traits< CharT >()
+ );
+}
+
+
+int main(void)
+{
+ using namespace ::std;
+ //
+ typedef <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::mirror) meta_Ns;
+ meta_Ns mns;
+ //
+ cout << mns << endl;
+ wcout << mns << endl;
+
+ return 0;
+}
+</pre>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="mirror.examples.refl_namespaces_04"></a>Usage of <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>'s generic name getter - example 2</h4></div></div></div>
+<p>This example shows the usage of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code> template,
+in particular it shows the usage of the generic namespace name getter function <code class="computeroutput">get_name</code>.
+</p>
+<pre class="programlisting">
+#include <iostream>
+#include <boost/mirror/meta_namespace.hpp>
+#include <boost/mirror/meta_namespaces/boost_tuples.hpp>
+#include <boost/mirror/meta_namespaces/boost_cts.hpp>
+
+
+template < typename CharT, typename NsPlaceholder >
+::std::basic_ostream< CharT, ::std::char_traits< CharT > >&
+operator << (
+ ::std::basic_ostream< CharT, ::std::char_traits< CharT > >& _s,
+ ::boost::mirror::<code class="computeroutput"><a class="link" href="../boost/mirror/meta_namespace.html" title="Class template meta_namespace">meta_namespace</a></code>< NsPlaceholder > _mn
+)
+{
+ return _s <<_mn.get_name(
+ ::boost::mpl::false_(),
+ ::std::char_traits< CharT >()
+ );
+}
+
+
+int main(void)
+{
+ using namespace ::std;
+ //
+ cout << <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::std)() << endl;
+ wcout << <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost)() << endl;
+ cout << <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::mirror)() << endl;
+ wcout << <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::mirror)() << endl;
+ cout << <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::cts)() << endl;
+ wcout << <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::tuples)() << endl;
+
+ return 0;
+}
+</pre>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="mirror.examples.reg_refl_namespaces_01"></a>Namespace registering and reflection - example 1</h4></div></div></div>
+<p>
+</p>
+<pre class="programlisting">
+#include <boost/char_type_switch/iostream.hpp>
+#include <boost/mirror/meta_namespace.hpp>
+#include <boost/mirror/traits/reflects_namespace.hpp>
+#include <boost/mirror/traits/reflects_global_scope.hpp>
+
+#include <boost/mpl/assert.hpp>
+
+namespace foo {
+namespace bar {
+namespace baz {
+
+} //namespace baz
+} //namespace bar
+} //namespace foo
+
+// the registering must be done in the boost::mirror namespace
+namespace boost {
+namespace mirror {
+
+// register foo
+<code class="computeroutput"><a class="link" href="../BOOST_MIRROR_REG_NAMESPACE.html" title="Macro BOOST_MIRROR_REG_NAMESPACE">BOOST_MIRROR_REG_NAMESPACE</a></code>((foo))
+// register foo::bar
+<code class="computeroutput"><a class="link" href="../BOOST_MIRROR_REG_NAMESPACE.html" title="Macro BOOST_MIRROR_REG_NAMESPACE">BOOST_MIRROR_REG_NAMESPACE</a></code>((foo)(bar))
+// register foo::bar::baz
+<code class="computeroutput"><a class="link" href="../BOOST_MIRROR_REG_NAMESPACE.html" title="Macro BOOST_MIRROR_REG_NAMESPACE">BOOST_MIRROR_REG_NAMESPACE</a></code>((foo)(bar)(baz))
+
+} // namespace mirror
+} // namespace boost
+
+
+// prints meta-info about the global scope
+template < class MetaNamespace >
+void do_print_meta_data(::boost::true_type)
+{
+ using namespace ::std;
+ using namespace ::boost;
+ cts::<code class="computeroutput"><a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a></code>& bcout = cts::<code class="computeroutput"><a class="link" href="../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a></code>();
+ bcout <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("This is the global scope") <<
+ endl <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("------------------------------------") <<
+ endl;
+}
+
+// prints meta-info about named namespaces
+template < class MetaNamespace >
+void do_print_meta_data(::boost::false_type)
+{
+ using namespace ::std;
+ using namespace ::boost;
+ using namespace ::boost::mirror;
+ cts::bostream& bcout = cts::<code class="computeroutput"><a class="link" href="../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a></code>();
+
+ bcout <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("Namespace '") <<
+ MetaNamespace::base_name() <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("': ") <<
+ endl <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>(" - the full name is '") <<
+ MetaNamespace::full_name() <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("'") <<
+ endl <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>(" - it's defined ");
+
+ if(<code class="computeroutput"><a class="link" href="../boost/mirror/reflects_global_scope.html" title="Class template reflects_global_scope">reflects_global_scope</a></code><typename MetaNamespace::scope>::value)
+ bcout << <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>(" - on the global scope ");
+ else
+ bcout << <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>(" - in the '") <<
+ MetaNamespace::scope::full_name() <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("' namespace");
+
+ bcout << endl <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("------------------------------------") <<
+ endl;
+}
+
+
+
+template < class MetaNamespace >
+void print_meta_data(void)
+{
+ using namespace ::boost::mirror;
+ // check the template argument
+ <code class="computeroutput">BOOST_MPL_ASSERT</code>((
+ <code class="computeroutput"><a class="link" href="../boost/mirror/reflects_namespace.html" title="Class template reflects_namespace">reflects_namespace</a></code>< MetaNamespace >
+ ));
+
+ // call the specialized printer based on whether
+ // the passed meta-namespace reflects the global
+ // scope or not
+ typename <code class="computeroutput"><a class="link" href="../boost/mirror/reflects_global_scope.html" title="Class template reflects_global_scope">reflects_global_scope</a></code><MetaNamespace>::type
+ selector;
+
+ do_print_meta_data<MetaNamespace>(selector);
+}
+
+
+int main(void)
+{
+ // reflect and print meta-info about the pre-registered namespaces
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_GLOBAL_SCOPE.html" title="Macro BOOST_MIRRORED_GLOBAL_SCOPE">BOOST_MIRRORED_GLOBAL_SCOPE</a></code>() >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::std) >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost) >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::boost::mirror) >();
+
+ // reflect and print meta-info about the namespaces registered here
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::foo) >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::foo::bar) >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_NAMESPACE.html" title="Macro BOOST_MIRRORED_NAMESPACE">BOOST_MIRRORED_NAMESPACE</a></code>(::foo::bar::baz) >();
+
+ return 0;
+}
+</pre>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="mirror.examples.refl_types_01"></a>Reflecting complex types - example 1</h4></div></div></div>
+<p>This example shows how to use the type <a class="link" href="reference.html#mirror.reference.reflecting" title="Reflecting">reflection macro</a> -
+<code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_TYPE.html" title="Macro BOOST_MIRRORED_TYPE">BOOST_MIRRORED_TYPE</a></code>,
+to get an instantiation of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_type.html" title="Class template meta_type">meta_type</a></code> template, that provides meta-information
+about a type.
+Furthermore it shows the basic usage of the type name getter function <code class="computeroutput">full_name</code> defined by this template.
+</p>
+<p>
+In this example only types which are derived from the types that are pre-registered by <a class="link" href="../mirror.html" title="Chapter 1. Mirror">Mirror</a> are reflected.
+See <a class="xref" href="examples.html#mirror.examples.registering" title="Registering">the section called “Registering”</a> to find out more about registering types with <a class="link" href="../mirror.html" title="Chapter 1. Mirror">Mirror</a>.
+
+</p>
+<pre class="programlisting">
+#include <boost/char_type_switch/iostream.hpp>
+#include <boost/mirror/meta_type.hpp>
+#include <boost/mirror/meta_types/std_pair.hpp>
+
+int main(void)
+{
+ using namespace ::std;
+ using namespace ::boost;
+ using namespace ::boost::mirror;
+
+ // define a little more complex type
+ typedef pair<const int*, double [654][321]> T1;
+ typedef pair<float, const ::std::string&> T2;
+ typedef pair<T1 const volatile, T2 volatile const> T3;
+ typedef pair<T2, T1 volatile> T4;
+ typedef T4 (T)(const T1&, T2, volatile T3*);
+
+ // reflect it using mirror
+ typedef <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_TYPE.html" title="Macro BOOST_MIRRORED_TYPE">BOOST_MIRRORED_TYPE</a></code>(T) meta_T;
+
+ // print out the full type name
+ cts::<code class="computeroutput"><a class="link" href="../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a></code>() <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("The full type name is: ") <<
+ meta_T::full_name() <<
+ endl;
+
+ return 0;
+}
+</pre>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="mirror.examples.refl_types_02"></a>Reflecting types and use of <code class="computeroutput">meta_type</code> - example 1</h4></div></div></div>
+<p>This example shows how to use the type <a class="link" href="reference.html#mirror.reference.reflecting" title="Reflecting">reflection macros</a>
+and the use of the <code class="computeroutput"><a class="link" href="../boost/mirror/meta_type.html" title="Class template meta_type">meta_type</a></code> template.
+</p>
+<p>
+In this example only types which are derived from the types that are pre-registered by <a class="link" href="../mirror.html" title="Chapter 1. Mirror">Mirror</a> are reflected.
+See <a class="xref" href="examples.html#mirror.examples.registering" title="Registering">the section called “Registering”</a> to find out more about registering types with <a class="link" href="../mirror.html" title="Chapter 1. Mirror">Mirror</a>.
+
+</p>
+<pre class="programlisting">
+#include <string>
+#include <boost/char_type_switch/iostream.hpp>
+#include <boost/typeof/typeof.hpp>
+#include <boost/mirror/meta_type.hpp>
+#include <boost/mirror/meta_types/std_pair.hpp>
+#include <boost/mirror/traits/reflects_global_scope.hpp>
+
+template <class MetaType>
+void print_meta_data(void)
+{
+ using namespace ::std;
+ using namespace ::boost;
+ using namespace ::boost::mirror;
+ cts::<code class="computeroutput"><a class="link" href="../boost/cts/bostream.html" title="Type definition bostream">bostream</a></code>& bcout = cts::<code class="computeroutput"><a class="link" href="../char_type_switch/reference.html#boost.cts.bcout_id2466872">bcout</a></code>();
+ // print out the base type name
+ bcout <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("The type name is: ") <<
+ MetaType::base_name() <<
+ endl;
+ //
+ if(<code class="computeroutput"><a class="link" href="../boost/mirror/reflects_global_scope.html" title="Class template reflects_global_scope">reflects_global_scope</a></code><typename MetaType::scope>::value)
+ {
+ bcout <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("It's defined on the global scope") <<
+ endl;
+ }
+ else
+ {
+ bcout <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>("It's defined in the ") <<
+ MetaType::scope::full_name() <<
+ <code class="computeroutput"><a class="link" href="../BOOST_CTS_LIT.html" title="Macro BOOST_CTS_LIT">BOOST_CTS_LIT</a></code>(" namespace") <<
+ endl;
+ bcout <<
+ BOOST_CTS_LIT("--------------------------------------") <<
+ endl;
+ }
+}
+
+int main(void)
+{
+ using namespace ::std;
+ using namespace ::boost;
+ using namespace ::boost::mirror;
+
+ // reflect the type of an expression
+ // and print the meta-data
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_TYPEOF.html" title="Macro BOOST_MIRRORED_TYPEOF">BOOST_MIRRORED_TYPEOF</a></code>(1+2) >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_TYPEOF.html" title="Macro BOOST_MIRRORED_TYPEOF">BOOST_MIRRORED_TYPEOF</a></code>(1.0+2.0) >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_TYPEOF.html" title="Macro BOOST_MIRRORED_TYPEOF">BOOST_MIRRORED_TYPEOF</a></code>("1" "+" "2") >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_TYPEOF.html" title="Macro BOOST_MIRRORED_TYPEOF">BOOST_MIRRORED_TYPEOF</a></code>(string("1")+string("2")) >();
+
+ // BOOST_MIRRORED_TYPEOF is actually a shorter form of this:
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_TYPE.html" title="Macro BOOST_MIRRORED_TYPE">BOOST_MIRRORED_TYPE</a></code>(
+ <code class="computeroutput">BOOST_TYPEOF</code>(L"1" L"+" L"2")
+ ) >();
+ print_meta_data< <code class="computeroutput"><a class="link" href="../BOOST_MIRRORED_TYPE.html" title="Macro BOOST_MIRRORED_TYPE">BOOST_MIRRORED_TYPE</a></code>(
+ <code class="computeroutput">BOOST_TYPEOF</code>(wstring(L"1")+wstring(L"2"))
+ ) >();
+
+ return 0;
+}
+</pre>
+</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
Modified: sandbox/mirror/libs/mirror/doc/examples.xml
==============================================================================
--- sandbox/mirror/libs/mirror/doc/examples.xml (original)
+++ sandbox/mirror/libs/mirror/doc/examples.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -15,10 +15,23 @@
<title>Registering</title>
<para>
</para>
+ <table frame="all"><title>Registering examples</title>
+ <tgroup cols="2">
+ <thead>
+ <row> <entry>Example</entry> <entry>Notes</entry> </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><link linkend="mirror.examples.reg_refl_namespaces_01">Namespace reflection and registering - example 1</link></entry>
+ <entry>A complete example showing the registering and reflection of namespaces and the usage of the <code><classname>meta_namespace</classname></code> template. </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
</section>
<section id="mirror.examples.reflection">
<title>Reflection</title>
- <para>The following table shows the list of examples showing the use of the <link linkend="mirror.reference.reflecting">reflection macros</link>.
+ <para>The following table contains a list of examples showing the use of the <link linkend="mirror.reference.reflecting">reflection macros</link>.
</para>
<table frame="all"><title>Reflection examples</title>
<tgroup cols="2">
@@ -27,9 +40,21 @@
</thead>
<tbody>
<row>
- <entry><link linkend="mirror.examples.refl_namespaces_01">Namespace reflection - 1</link></entry>
+ <entry><link linkend="mirror.examples.refl_namespaces_01">Namespace reflection - example 1</link></entry>
<entry>Simple example showing reflection of the pre-registered namespaces. </entry>
</row>
+ <row>
+ <entry><link linkend="mirror.examples.reg_refl_namespaces_01">Namespace reflection and registering - example 1</link></entry>
+ <entry>A complete example showing the registering and reflection of namespaces and the usage of the <code><classname>meta_namespace</classname></code> template. </entry>
+ </row>
+ <row>
+ <entry><link linkend="mirror.examples.refl_types_01">Derived type reflection - example 1</link></entry>
+ <entry>A simple example showing the reflection of types and the usage of the <code><classname>meta_type</classname></code> template's name getters. </entry>
+ </row>
+ <row>
+ <entry><link linkend="mirror.examples.refl_types_02">Type reflection and <code>meta_type</code> usage - example 1</link></entry>
+ <entry>An example showing the reflection of types and the usage of the member functions and typedefs provided by the <code><classname>meta_type</classname></code> template. </entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -46,9 +71,33 @@
</thead>
<tbody>
<row>
- <entry><link linkend="mirror.examples.refl_namespaces_01">Namespace reflection - 1</link></entry>
+ <entry><link linkend="mirror.examples.refl_namespaces_01">Simple meta namespace usage</link></entry>
<entry>Simple example showing the use of <code><classname>meta_namespace</classname></code>'s name getters. </entry>
</row>
+ <row>
+ <entry><link linkend="mirror.examples.refl_namespaces_02">Meta namespace name getters - example 1</link></entry>
+ <entry>Example showing the use of <code><classname>meta_namespace</classname></code>'s name getters and the use of the <code>scope</code> and <code>ancestors</code> typedefs. </entry>
+ </row>
+ <row>
+ <entry><link linkend="mirror.examples.refl_namespaces_03">Meta namespace generic name getter - example 1</link></entry>
+ <entry>Example showing the usage of the <code><classname>meta_namespace</classname></code>'s generic name getter member function <code>get_name</code>. </entry>
+ </row>
+ <row>
+ <entry><link linkend="mirror.examples.refl_namespaces_04">Meta namespace generic name getter - example 2</link></entry>
+ <entry>This example is a variation of the <link linkend="mirror.examples.refl_namespaces_03">Meta namespace generic name getter - 1</link> and shows the use of the <code>get_name</code> generic namespace name getter member function. </entry>
+ </row>
+ <row>
+ <entry><link linkend="mirror.examples.reg_refl_namespaces_01">Namespace reflection and registering - example 1</link></entry>
+ <entry>A complete example showing the registering and reflection of namespaces and the usage of the <code><classname>meta_namespace</classname></code> template. </entry>
+ </row>
+ <row>
+ <entry><link linkend="mirror.examples.refl_types_01">Meta type name getters - example 1</link></entry>
+ <entry>A simple example showing the reflection of types and the usage of the <code><classname>meta_type</classname></code> template's name getters. </entry>
+ </row>
+ <row>
+ <entry><link linkend="mirror.examples.refl_types_02">Type reflection and <code>meta_type</code> usage - example 1</link></entry>
+ <entry>An example showing the reflection of types and the usage of the member functions and typedefs provided by the <code><classname>meta_type</classname></code> template. </entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -77,7 +126,13 @@
<title>All examples</title>
<para>
</para>
- <xi:include href="examples/refl_namespaces_01.xml"/>
+ <xi:include href="examples/refl_namespaces_01.xml"/>
+ <xi:include href="examples/refl_namespaces_02.xml"/>
+ <xi:include href="examples/refl_namespaces_03.xml"/>
+ <xi:include href="examples/refl_namespaces_04.xml"/>
+ <xi:include href="examples/reg_refl_namespaces_01.xml"/>
+ <xi:include href="examples/refl_types_01.xml"/>
+ <xi:include href="examples/refl_types_02.xml"/>
</section>
</section>
Added: sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_02.xml
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_02.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
+ "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<section id="mirror.examples.refl_namespaces_02"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+<using-namespace name="boost::mirror"/>
+<using-namespace name="boost::cts"/>
+
+<title>Usage of <code><classname>meta_namespace</classname></code> - example 1</title>
+<para>This example shows how to use the namespace <link linkend="mirror.reference.reflecting">reflection macros</link>
+and the usage of the <code><classname>meta_namespace</classname></code> template.
+In particular it shows the usage of the <code>base_name</code> and <code>full_name</code> namespace name getters and
+the use of the <code>scope</code> and <code>ancestors</code> typedefs.
+</para>
+<para>
+In this example only the namespaces that are pre-registered by <libraryname>Mirror</libraryname> are reflected.
+See <xref linkend="mirror.examples.registering"/> if you would like to find out more about namespace registering.
+</para>
+<xi:include href="../samples/usage_meta_namespace_02.xml"/>
+</section>
+
Added: sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_03.xml
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_03.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
+ "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<section id="mirror.examples.refl_namespaces_03"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+<using-namespace name="boost::mirror"/>
+<using-namespace name="boost::cts"/>
+
+<title>Usage of <code><classname>meta_namespace</classname></code>'s generic name getter - example 1</title>
+<para>This example shows the usage of the <code><classname>meta_namespace</classname></code> template,
+in particular it shows the usage of the generic namespace name getter function <code>get_name</code>.
+</para>
+<para>
+In this example only the namespaces that are pre-registered by <libraryname>Mirror</libraryname> are reflected.
+See <xref linkend="mirror.examples.registering"/> if you want to find out more about namespace registering.
+</para>
+<xi:include href="../samples/usage_meta_namespace_03.xml"/>
+</section>
+
Added: sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_04.xml
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/doc/examples/refl_namespaces_04.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
+ "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<section id="mirror.examples.refl_namespaces_04"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+<using-namespace name="boost::mirror"/>
+<using-namespace name="boost::cts"/>
+
+<title>Usage of <code><classname>meta_namespace</classname></code>'s generic name getter - example 2</title>
+<para>This example shows the usage of the <code><classname>meta_namespace</classname></code> template,
+in particular it shows the usage of the generic namespace name getter function <code>get_name</code>.
+</para>
+<xi:include href="../samples/usage_meta_namespace_04.xml"/>
+</section>
+
Added: sandbox/mirror/libs/mirror/doc/examples/refl_types_01.xml
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/doc/examples/refl_types_01.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
+ "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<section id="mirror.examples.refl_types_01"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+<using-namespace name="boost::mirror"/>
+<using-namespace name="boost::cts"/>
+
+<title>Reflecting complex types - example 1</title>
+<para>This example shows how to use the type <link linkend="mirror.reference.reflecting">reflection macro</link> -
+<code><macroname>BOOST_MIRRORED_TYPE</macroname></code>,
+to get an instantiation of the <code><classname>meta_type</classname></code> template, that provides meta-information
+about a type.
+Furthermore it shows the basic usage of the type name getter function <code>full_name</code> defined by this template.
+</para>
+<para>
+In this example only types which are derived from the types that are pre-registered by <libraryname>Mirror</libraryname> are reflected.
+See <xref linkend="mirror.examples.registering"/> to find out more about registering types with <libraryname>Mirror</libraryname>.
+
+</para>
+<xi:include href="../samples/usage_meta_type_01.xml"/>
+</section>
+
Added: sandbox/mirror/libs/mirror/doc/examples/refl_types_02.xml
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/doc/examples/refl_types_02.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
+ "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<section id="mirror.examples.refl_types_02"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+<using-namespace name="boost::mirror"/>
+<using-namespace name="boost::cts"/>
+
+<title>Reflecting types and use of <code>meta_type</code> - example 1</title>
+<para>This example shows how to use the type <link linkend="mirror.reference.reflecting">reflection macros</link>
+and the use of the <code><classname>meta_type</classname></code> template.
+</para>
+<para>
+In this example only types which are derived from the types that are pre-registered by <libraryname>Mirror</libraryname> are reflected.
+See <xref linkend="mirror.examples.registering"/> to find out more about registering types with <libraryname>Mirror</libraryname>.
+
+</para>
+<xi:include href="../samples/usage_meta_type_02.xml"/>
+</section>
+
Added: sandbox/mirror/libs/mirror/doc/examples/reg_refl_namespaces_01.xml
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/doc/examples/reg_refl_namespaces_01.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
+ "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<section id="mirror.examples.reg_refl_namespaces_01"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+<using-namespace name="boost::mirror"/>
+<using-namespace name="boost::cts"/>
+
+<title>Namespace registering and reflection - example 1</title>
+<para>
+</para>
+<xi:include href="../samples/usage_namespaces_01.xml"/>
+</section>
+
Modified: sandbox/mirror/libs/mirror/doc/samples/usage_meta_namespace_03.xml
==============================================================================
--- sandbox/mirror/libs/mirror/doc/samples/usage_meta_namespace_03.xml (original)
+++ sandbox/mirror/libs/mirror/doc/samples/usage_meta_namespace_03.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -29,7 +29,7 @@
//
cout << mns << endl;
wcout << mns << endl;
-
+
return 0;
}
</programlisting>
Added: sandbox/mirror/libs/mirror/doc/samples/usage_meta_namespace_04.xml
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/doc/samples/usage_meta_namespace_04.xml 2008-09-29 10:58:45 EDT (Mon, 29 Sep 2008)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
+ "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<programlisting id="mirror.reference.sample.meta_namespace.usage04">
+#include <iostream>
+#include <boost/mirror/meta_namespace.hpp>
+#include <boost/mirror/meta_namespaces/boost_tuples.hpp>
+#include <boost/mirror/meta_namespaces/boost_cts.hpp>
+
+
+template < typename CharT, typename NsPlaceholder >
+::std::basic_ostream< CharT, ::std::char_traits< CharT > >&
+operator << (
+ ::std::basic_ostream< CharT, ::std::char_traits< CharT > >& _s,
+ ::boost::mirror::<classname>meta_namespace</classname>< NsPlaceholder > _mn
+)
+{
+ return _s <<_mn.get_name(
+ ::boost::mpl::false_(),
+ ::std::char_traits< CharT >()
+ );
+}
+
+
+int main(void)
+{
+ using namespace ::std;
+ //
+ cout << <macroname>BOOST_MIRRORED_NAMESPACE</macroname>(::std)() << endl;
+ wcout << <macroname>BOOST_MIRRORED_NAMESPACE</macroname>(::boost)() << endl;
+ cout << <macroname>BOOST_MIRRORED_NAMESPACE</macroname>(::boost::mirror)() << endl;
+ wcout << <macroname>BOOST_MIRRORED_NAMESPACE</macroname>(::boost::mirror)() << endl;
+ cout << <macroname>BOOST_MIRRORED_NAMESPACE</macroname>(::boost::cts)() << endl;
+ wcout << <macroname>BOOST_MIRRORED_NAMESPACE</macroname>(::boost::tuples)() << endl;
+
+ return 0;
+}
+</programlisting>
+
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk