Boost logo

Boost-Commit :

From: oryol_at_[hidden]
Date: 2008-07-19 22:37:03


Author: jeremypack
Date: 2008-07-19 22:37:02 EDT (Sat, 19 Jul 2008)
New Revision: 47616
URL: http://svn.boost.org/trac/boost/changeset/47616

Log:
Minor reflection modifications.

Removed:
   sandbox/libs/reflection/doc/html/HTML.manifest
   sandbox/libs/reflection/doc/html/boost_reflection/
   sandbox/libs/reflection/doc/html/boostbook.css
   sandbox/libs/reflection/doc/html/index.html
Text files modified:
   sandbox/libs/reflection/doc/Jamfile.v2 | 50 +++++++++++++++++++++++++++++----------
   sandbox/libs/reflection/doc/reflection.qbk | 21 ++++++++--------
   sandbox/libs/reflection/test/Jamfile.v2 | 1
   sandbox/libs/reflection/test/parameter_map_test.cpp | 18 ++++++++++++++
   4 files changed, 65 insertions(+), 25 deletions(-)

Modified: sandbox/libs/reflection/doc/Jamfile.v2
==============================================================================
--- sandbox/libs/reflection/doc/Jamfile.v2 (original)
+++ sandbox/libs/reflection/doc/Jamfile.v2 2008-07-19 22:37:02 EDT (Sat, 19 Jul 2008)
@@ -1,6 +1,6 @@
-# Boost.Reflection - documentation Jamfile
+# Boost.Extension - documentation Jamfile
 #
-# Copyright 2007 Jeremy Pack
+# Copyright 2008 Jeremy Pack
 # Distributed under the Boost Software License, Version 1.0. (See
 # accompanying file LICENSE_1_0.txt or copy at
 # http://www.boost.org/LICENSE_1_0.txt)
@@ -8,20 +8,44 @@
 # See http://www.boost.org/ for latest version.
 #
 
-using quickbook ;
-xml reflection : reflection.qbk : : :
- <xsl:param>toc.max.depth=5
- <xsl:param>toc.section.depth=5
- <xsl:param>chunk.section.depth=5 ;
+import doxygen ;
+import quickbook ;
+
+import os ;
+local BOOST_ROOT = [ os.environ BOOST_ROOT ] ;
+
+doxygen autodoc
+ :
+ [ glob ../../../boost/reflection/common.hpp ]
+ :
+ <doxygen:param>EXTRACT_ALL=NO
+ <doxygen:param>"PREDEFINED=\"BOOST_REFLECTION_DOXYGEN_INVOKED\" \\
+ \"U_EXPORT2=\""
+ <doxygen:param>HIDE_UNDOC_MEMBERS=NO
+ <doxygen:param>EXTRACT_PRIVATE=NO
+ <doxygen:param>ENABLE_PREPROCESSING=YES
+ <doxygen:param>MACRO_EXPANSION=YES
+ <doxygen:param>EXPAND_ONLY_PREDEF=YES
+ <doxygen:param>SEARCH_INCLUDES=YES
+ <doxygen:param>INCLUDE_PATH=$(BOOST_ROOT)
+ ;
+
+xml reflection : reflection.qbk ;
+
 boostbook standalone
     :
         reflection
     :
- <xsl:param>generate.section.toc.level=3
- <xsl:param>chunk.first.sections=1
- <xsl:param>admon.graphics=1
-
+ <xsl:param>toc.max.depth=300
+ <xsl:param>toc.section.depth=2
+ <xsl:param>chunk.section.depth=1
+ <dependency>autodoc
     ;
 
-install html : $(BOOST_ROOT)/doc/html/boostbook.css ;
-install ../ : $(BOOST_ROOT)/boost.png ;
+install css : [ glob $(BOOST_ROOT)/doc/src/*.css ]
+ : <location>html ;
+install images : [ glob $(BOOST_ROOT)/doc/src/images/*.png ]
+ : <location>html/images ;
+
+install main_image : [ glob $(BOOST_ROOT)/boost.png ]
+ : <location>../ ;
\ No newline at end of file

Deleted: sandbox/libs/reflection/doc/html/HTML.manifest
==============================================================================
--- sandbox/libs/reflection/doc/html/HTML.manifest 2008-07-19 22:37:02 EDT (Sat, 19 Jul 2008)
+++ (empty file)
@@ -1,6 +0,0 @@
-index.html
-boost_reflection/introduction.html
-boost_reflection/tutorials.html
-boost_reflection/tutorials/tutorial01.html
-boost_reflection/tutorials/tutorial02.html
-boost_reflection/interpreter.html

Deleted: sandbox/libs/reflection/doc/html/boostbook.css
==============================================================================
--- sandbox/libs/reflection/doc/html/boostbook.css 2008-07-19 22:37:02 EDT (Sat, 19 Jul 2008)
+++ (empty file)
@@ -1,511 +0,0 @@
-/*=============================================================================
- Copyright (c) 2004 Joel de Guzman
- http://spirit.sourceforge.net/
-
- Use, modification and distribution is subject to the Boost Software
- License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
- http://www.boost.org/LICENSE_1_0.txt)
-=============================================================================*/
-
-/*=============================================================================
- Body defaults
-=============================================================================*/
-
- body
- {
- margin: 1em;
- font-family: sans-serif;
- }
-
-/*=============================================================================
- Paragraphs
-=============================================================================*/
-
- p
- {
- text-align: left;
- font-size: 10pt;
- line-height: 1.15;
- }
-
-/*=============================================================================
- Program listings
-=============================================================================*/
-
- /* Code on paragraphs */
- p tt.computeroutput
- {
- font-size: 9pt;
- }
-
- pre.synopsis
- {
- font-size: 90%;
- margin: 1pc 4% 0pc 4%;
- padding: 0.5pc 0.5pc 0.5pc 0.5pc;
- }
-
- .programlisting,
- .screen
- {
- font-size: 9pt;
- display: block;
- margin: 1pc 4% 0pc 4%;
- padding: 0.5pc 0.5pc 0.5pc 0.5pc;
- }
-
- /* Program listings in tables don't get borders */
- td .programlisting,
- td .screen
- {
- margin: 0pc 0pc 0pc 0pc;
- padding: 0pc 0pc 0pc 0pc;
- }
-
-/*=============================================================================
- Headings
-=============================================================================*/
-
- h1, h2, h3, h4, h5, h6
- {
- text-align: left;
- margin: 1em 0em 0.5em 0em;
- font-weight: bold;
- }
-
- h1 { font: 140% }
- h2 { font: bold 140% }
- h3 { font: bold 130% }
- h4 { font: bold 120% }
- h5 { font: italic 110% }
- h6 { font: italic 100% }
-
- /* Top page titles */
- title,
- h1.title,
- h2.title
- h3.title,
- h4.title,
- h5.title,
- h6.title,
- .refentrytitle
- {
- font-weight: bold;
- margin-bottom: 1pc;
- }
-
- h1.title { font-size: 140% }
- h2.title { font-size: 140% }
- h3.title { font-size: 130% }
- h4.title { font-size: 120% }
- h5.title { font-size: 110% }
- h6.title { font-size: 100% }
-
- .section h1
- {
- margin: 0em 0em 0.5em 0em;
- font-size: 140%;
- }
-
- .section h2 { font-size: 140% }
- .section h3 { font-size: 130% }
- .section h4 { font-size: 120% }
- .section h5 { font-size: 110% }
- .section h6 { font-size: 100% }
-
- /* Code on titles */
- h1 tt.computeroutput { font-size: 140% }
- h2 tt.computeroutput { font-size: 140% }
- h3 tt.computeroutput { font-size: 130% }
- h4 tt.computeroutput { font-size: 120% }
- h5 tt.computeroutput { font-size: 110% }
- h6 tt.computeroutput { font-size: 100% }
-
-/*=============================================================================
- Author
-=============================================================================*/
-
- h3.author
- {
- font-size: 100%
- }
-
-/*=============================================================================
- Lists
-=============================================================================*/
-
- li
- {
- font-size: 10pt;
- line-height: 1.3;
- }
-
- /* Unordered lists */
- ul
- {
- text-align: left;
- }
-
- /* Ordered lists */
- ol
- {
- text-align: left;
- }
-
-/*=============================================================================
- Links
-=============================================================================*/
-
- a
- {
- text-decoration: none; /* no underline */
- }
-
- a:hover
- {
- text-decoration: underline;
- }
-
-/*=============================================================================
- Spirit style navigation
-=============================================================================*/
-
- .spirit-nav
- {
- text-align: right;
- }
-
- .spirit-nav a
- {
- color: white;
- padding-left: 0.5em;
- }
-
- .spirit-nav img
- {
- border-width: 0px;
- }
-
-/*=============================================================================
- Table of contents
-=============================================================================*/
-
- .toc
- {
- margin: 1pc 4% 0pc 4%;
- padding: 0.1pc 1pc 0.1pc 1pc;
- font-size: 80%;
- line-height: 1.15;
- }
-
- .boost-toc
- {
- float: right;
- padding: 0.5pc;
- }
-
-/*=============================================================================
- Tables
-=============================================================================*/
-
- .table-title,
- div.table p.title
- {
- margin-left: 4%;
- padding-right: 0.5em;
- padding-left: 0.5em;
- }
-
- .informaltable table,
- .table table
- {
- width: 92%;
- margin-left: 4%;
- margin-right: 4%;
- }
-
- div.informaltable table,
- div.table table
- {
- padding: 4px;
- }
-
- /* Table Cells */
- div.informaltable table tr td,
- div.table table tr td
- {
- padding: 0.5em;
- text-align: left;
- font-size: 9pt;
- }
-
- div.informaltable table tr th,
- div.table table tr th
- {
- padding: 0.5em 0.5em 0.5em 0.5em;
- border: 1pt solid white;
- font-size: 80%;
- }
-
-/*=============================================================================
- Blurbs
-=============================================================================*/
-
- div.note,
- div.tip,
- div.important,
- div.caution,
- div.warning,
- p.blurb
- {
- font-size: 9pt; /* A little bit smaller than the main text */
- line-height: 1.2;
- display: block;
- margin: 1pc 4% 0pc 4%;
- padding: 0.5pc 0.5pc 0.5pc 0.5pc;
- }
-
- p.blurb img
- {
- padding: 1pt;
- }
-
-/*=============================================================================
- Variable Lists
-=============================================================================*/
-
- /* Make the terms in definition lists bold */
- div.variablelist dl dt,
- span.term
- {
- font-weight: bold;
- font-size: 10pt;
- }
-
- div.variablelist table tbody tr td
- {
- text-align: left;
- vertical-align: top;
- padding: 0em 2em 0em 0em;
- font-size: 10pt;
- margin: 0em 0em 0.5em 0em;
- line-height: 1;
- }
-
- div.variablelist dl dt
- {
- margin-bottom: 0.2em;
- }
-
- div.variablelist dl dd
- {
- margin: 0em 0em 0.5em 2em;
- font-size: 10pt;
- }
-
- div.variablelist table tbody tr td p,
- div.variablelist dl dd p
- {
- margin: 0em 0em 0.5em 0em;
- line-height: 1;
- }
-
-/*=============================================================================
- Misc
-=============================================================================*/
-
- /* Title of books and articles in bibliographies */
- span.title
- {
- font-style: italic;
- }
-
- span.underline
- {
- text-decoration: underline;
- }
-
- span.strikethrough
- {
- text-decoration: line-through;
- }
-
- /* Copyright, Legal Notice */
- div div.legalnotice p
- {
- text-align: left
- }
-
-/*=============================================================================
- Colors
-=============================================================================*/
-
- @media screen
- {
- /* Links */
- a
- {
- color: #005a9c;
- }
-
- a:visited
- {
- color: #9c5a9c;
- }
-
- h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
- h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
- h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
- {
- text-decoration: none; /* no underline */
- color: #000000;
- }
-
- /* Syntax Highlighting */
- .keyword { color: #0000AA; }
- .identifier { color: #000000; }
- .special { color: #707070; }
- .preprocessor { color: #402080; }
- .char { color: teal; }
- .comment { color: #800000; }
- .string { color: teal; }
- .number { color: teal; }
- .white_bkd { background-color: #FFFFFF; }
- .dk_grey_bkd { background-color: #999999; }
-
- /* Copyright, Legal Notice */
- .copyright
- {
- color: #666666;
- font-size: small;
- }
-
- div div.legalnotice p
- {
- color: #666666;
- }
-
- /* Program listing */
- pre.synopsis
- {
- border: 1px solid #DCDCDC;
- }
-
- .programlisting,
- .screen
- {
- border: 1px solid #DCDCDC;
- }
-
- td .programlisting,
- td .screen
- {
- border: 0px solid #DCDCDC;
- }
-
- /* Blurbs */
- div.note,
- div.tip,
- div.important,
- div.caution,
- div.warning,
- p.blurb
- {
- border: 1px solid #DCDCDC;
- }
-
- /* Table of contents */
- .toc
- {
- border: 1px solid #DCDCDC;
- }
-
- /* Tables */
- div.informaltable table tr td,
- div.table table tr td
- {
- border: 1px solid #DCDCDC;
- }
-
- div.informaltable table tr th,
- div.table table tr th
- {
- background-color: #F0F0F0;
- border: 1px solid #DCDCDC;
- }
-
- /* Misc */
- span.highlight
- {
- color: #00A000;
- }
- }
-
- @media print
- {
- /* Links */
- a
- {
- color: black;
- }
-
- a:visited
- {
- color: black;
- }
-
- .spirit-nav
- {
- display: none;
- }
-
- /* Program listing */
- pre.synopsis
- {
- border: 1px solid gray;
- }
-
- .programlisting,
- .screen
- {
- border: 1px solid gray;
- }
-
- td .programlisting,
- td .screen
- {
- border: 0px solid #DCDCDC;
- }
-
- /* Table of contents */
- .toc
- {
- border: 1px solid gray;
- }
-
- .informaltable table,
- .table table
- {
- border: 1px solid gray;
- border-collapse: collapse;
- }
-
- /* Tables */
- div.informaltable table tr td,
- div.table table tr td
- {
- border: 1px solid gray;
- }
-
- div.informaltable table tr th,
- div.table table tr th
- {
- border: 1px solid gray;
- }
-
- /* Misc */
- span.highlight
- {
- font-weight: bold;
- }
- }

Deleted: sandbox/libs/reflection/doc/html/index.html
==============================================================================
--- sandbox/libs/reflection/doc/html/index.html 2008-07-19 22:37:02 EDT (Sat, 19 Jul 2008)
+++ (empty file)
@@ -1,61 +0,0 @@
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>Chapter 1. Boost.Reflection</title>
-<link rel="stylesheet" href="boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.67.2">
-<link rel="start" href="index.html" title="Chapter 1. Boost.Reflection">
-<link rel="next" href="boost_reflection/introduction.html" title=" Introduction">
-</head>
-<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-<table cellpadding="2" width="100%"><tr>
-<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../boost.png"></td>
-<td align="center">Home</td>
-<td align="center">Libraries</td>
-<td align="center">People</td>
-<td align="center">FAQ</td>
-<td align="center">More</td>
-</tr></table>
-<hr>
-<div class="spirit-nav"><a accesskey="n" href="boost_reflection/introduction.html"><img src="../../doc/html/images/next.png" alt="Next"></a></div>
-<div class="chapter" lang="en">
-<div class="titlepage"><div>
-<div><h2 class="title">
-<a name="boost_reflection"></a>Chapter 1. Boost.Reflection</h2></div>
-<div><p class="copyright">Copyright © 2007 -2008 Jeremy Pack, Mariano G. Consoni</p></div>
-<div><div class="legalnotice">
-<a name="id903160"></a><p>
- Distributed under the Boost Software License, Version 1.0. (See accompanying
- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p>
-</div></div>
-</div></div>
-<div class="toc">
-<p><b>Table of Contents</b></p>
-<dl>
-<dt><span class="section"> Introduction</span></dt>
-<dt><span class="section"> Boost.Extension Interoperability</span></dt>
-<dt><span class="section">Tutorials</span></dt>
-<dd><dl>
-<dt><span class="section"> Tutorial 1</span></dt>
-<dt><span class="section"> Tutorial 3</span></dt>
-<dt><span class="section"> Tutorial 4</span></dt>
-<dt><span class="section"> Tutorial 5</span></dt>
-</dl></dd>
-</dl>
-</div>
-<pre class="programlisting">
-<span class="special">]</span>
-</pre>
-<p>
- ] ]
- </p>
-</div>
-<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: February 12, 2008 at 19:24:00 GMT</small></p></td>
-<td align="right"><div class="copyright-footer"></div></td>
-</tr></table>
-<hr>
-<div class="spirit-nav"><a accesskey="n" href="boost_reflection/introduction.html"><img src="../../doc/html/images/next.png" alt="Next"></a></div>
-</body>
-</html>

Modified: sandbox/libs/reflection/doc/reflection.qbk
==============================================================================
--- sandbox/libs/reflection/doc/reflection.qbk (original)
+++ sandbox/libs/reflection/doc/reflection.qbk 2008-07-19 22:37:02 EDT (Sat, 19 Jul 2008)
@@ -1,25 +1,24 @@
-[/ Boost.Reflection - main doc ]
-[/ Copyright 2007 Mariano G. Consoni, Jeremy Pack ]
+[/ Boost.Extension - main doc ]
+[/ Copyright 2008-2008 Jeremy Pack and Mariano Consoni ]
 [/ Distributed under the Boost Software License, Version 1.0. (See]
 [/ accompanying file LICENSE_1_0.txt or copy at ]
 [/ http://www.boost.org/LICENSE_1_0.txt) ]
 [/ See http://www.boost.org/ for latest version. ]
 
-[library Boost.Reflection
+[library Boost.Extension
     [quickbook 1.4]
- [copyright 2007-2008 Jeremy Pack, Mariano G. Consoni]
- [purpose Run-time reflection]
+ [copyright 2008 Jeremy Pack]
+ [authors [Pack, Jeremy]]
+ [purpose
+ Factory management and facilities for using shared libraries]
     [license
         Distributed under the Boost Software License, Version 1.0.
         (See accompanying file LICENSE_1_0.txt or copy at
         [@http://www.boost.org/LICENSE_1_0.txt http://www.boost.org/LICENSE_1_0.txt])
     ]
     [category Programming Interfaces]
- [last-revision $Date: 2008/2/12 19:24:00 $]
+ [last-revision $Date: 2008/2/12 19:25:00 $]
 ]
-[include introduction.qbk]
-[include extension.qbk]
-[include tutorials.qbk]
-[/ [include performance_analysis.qbk]
-[/ [include appendices.qbk]
 
+
+[include appendices.qbk]

Modified: sandbox/libs/reflection/test/Jamfile.v2
==============================================================================
--- sandbox/libs/reflection/test/Jamfile.v2 (original)
+++ sandbox/libs/reflection/test/Jamfile.v2 2008-07-19 22:37:02 EDT (Sat, 19 Jul 2008)
@@ -23,7 +23,6 @@
     :
     ;
 
-
 test-suite reflection_tests_all
 :
   [ run parameter_map_test.cpp ]

Modified: sandbox/libs/reflection/test/parameter_map_test.cpp
==============================================================================
--- sandbox/libs/reflection/test/parameter_map_test.cpp (original)
+++ sandbox/libs/reflection/test/parameter_map_test.cpp 2008-07-19 22:37:02 EDT (Sat, 19 Jul 2008)
@@ -71,6 +71,24 @@
   BOOST_CHECK_EQUAL(5, g->cast<int>());
   parameter_map m;
   m.insert(std::make_pair("some_integer", p));
+ m.insert(std::make_pair("some_other_integer",
+ new parameter<int>(12)));
+ g = m.get_first<int>("some_integer");
+
+ BOOST_CHECK(g->can_cast<float>());
+ BOOST_CHECK(g->can_cast<double>());
+ BOOST_CHECK(!g->can_cast<char>());
+ BOOST_CHECK(!g->can_cast<short>());
+
+ BOOST_CHECK_EQUAL(5.0f, g->cast<float>());
+ BOOST_CHECK_EQUAL(5.0, g->cast<double>());
+ BOOST_CHECK_EQUAL(5, g->cast<int>());
+
+ g = m.get_first<int>("some_other_integer");
+
+ BOOST_CHECK(g->can_cast<int>());
+
+ BOOST_CHECK_EQUAL(12, g->cast<int>());
 }
 
 class base {


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