Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49404 - in sandbox/mirror/boost/mirror: meta_classes/boost/fusion meta_classes/boost/tuples meta_types/boost/cts meta_types/boost/fusion meta_types/boost/tuples
From: chochlik_at_[hidden]
Date: 2008-10-20 12:44:13


Author: matus.chochlik
Date: 2008-10-20 12:44:12 EDT (Mon, 20 Oct 2008)
New Revision: 49404
URL: http://svn.boost.org/trac/boost/changeset/49404

Log:
[mirror 0.2.x]
- reorganization of the header directory structure
Added:
   sandbox/mirror/boost/mirror/meta_classes/boost/fusion/vector.hpp
      - copied unchanged from r49403, /sandbox/mirror/boost/mirror/meta_classes/boost/fusion/boost_fusion_vector.hpp
   sandbox/mirror/boost/mirror/meta_classes/boost/tuples/tuple.hpp
      - copied unchanged from r49403, /sandbox/mirror/boost/mirror/meta_classes/boost/tuples/boost_tuple.hpp
   sandbox/mirror/boost/mirror/meta_types/boost/cts/bstring.hpp
      - copied unchanged from r49403, /sandbox/mirror/boost/mirror/meta_types/boost/cts/boost_bstring.hpp
   sandbox/mirror/boost/mirror/meta_types/boost/fusion/vector.hpp
      - copied unchanged from r49403, /sandbox/mirror/boost/mirror/meta_types/boost/fusion/boost_fusion_vector.hpp
   sandbox/mirror/boost/mirror/meta_types/boost/tuples/tuple.hpp
      - copied unchanged from r49403, /sandbox/mirror/boost/mirror/meta_types/boost/tuples/boost_tuple.hpp
Removed:
   sandbox/mirror/boost/mirror/meta_classes/boost/fusion/boost_fusion_vector.hpp
   sandbox/mirror/boost/mirror/meta_classes/boost/tuples/boost_tuple.hpp
   sandbox/mirror/boost/mirror/meta_types/boost/cts/boost_bstring.hpp
   sandbox/mirror/boost/mirror/meta_types/boost/fusion/boost_fusion_vector.hpp
   sandbox/mirror/boost/mirror/meta_types/boost/tuples/boost_tuple.hpp

Deleted: sandbox/mirror/boost/mirror/meta_classes/boost/fusion/boost_fusion_vector.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_classes/boost/fusion/boost_fusion_vector.hpp 2008-10-20 12:44:12 EDT (Mon, 20 Oct 2008)
+++ (empty file)
@@ -1,119 +0,0 @@
-/**
- * \file boost/mirror/meta_classes/boost_fusion_vector.hpp
- * Meta-class for boost::fusion::vector<T0, T1, ..., Tn>
- *
- * Copyright 2008 Matus Chochlik. 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)
- */
-
-#ifndef BOOST_MIRROR_META_CLASSES_BOOST_FUSION_VECTOR_HPP
-#define BOOST_MIRROR_META_CLASSES_BOOST_FUSION_VECTOR_HPP
-
-#include <boost/mirror/meta_class.hpp>
-#include <boost/mirror/meta_types/boost_fusion_vector.hpp>
-#include <boost/mirror/detail/static_int_to_str.hpp>
-#include <boost/mirror/detail/unnamed_attribs.hpp>
-#include <boost/fusion/sequence/intrinsic/at.hpp>
-
-
-namespace boost {
-namespace mirror {
-
-
-BOOST_MIRROR_REG_TEMPLATE_ATTRIBS_BEGIN(
- ::boost::fusion::vector,
- FUSION_MAX_VECTOR_SIZE
-)
- __dummy_list;
- //
- //
- // the full list vectors template arguments
- typedef typename mpl::vector<
- BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)
- > all_template_params;
- //
- // the list of member attributes without the null types
- typedef typename detail::template_args_type_list_wo_nulls<
- all_template_params
- >::type template_params;
- //
- template <int I>
- struct att_val_pass
- {
- typedef typename call_traits<
- typename mpl::at<template_params, mpl::int_<I> >::type
- >::param_type type;
- };
- //
- // member attribute base name getter
- template <int I, typename CharT>
- inline static const ::std::basic_string<CharT>& get_name(
- mpl::int_<I> pos,
- mpl::false_ full_name,
- ::std::char_traits<CharT> cht
- )
- {
- // get the prefix 'static string'
- typedef typename detail::meta_class_tuple_attrib_name_prefix<
- CharT
- >::type prefix;
- // get a prefixed name builder
- typedef typename boost::mirror::detail::static_int_to_str_w_prefix<
- prefix,
- CharT,
- I
- >::holder name_builder;
- // build the name and assing it to the static name
- static ::std::basic_string<CharT> name(name_builder::get());
- // return the built name
- return name;
- }
-
- // traits getter
- template <int I>
- static meta_class_attribute_traits<
- ::boost::mirror::attrib_storage_specifiers::__,
- typename att_val_pass<I>::type
- > get_traits(mpl::int_<I>);
-
-
- // member attrib value get
- template <int I>
- static typename att_val_pass<I>::type
- get(const Class& an_inst, mpl::int_<I>)
- {
- return ::boost::fusion::at_c<I>(an_inst);
- }
-
- // member attrib value query
- template <typename dest_type, int I>
- static dest_type& query(const Class& an_inst, mpl::int_<I>, dest_type& dest)
- {
- dest = dest_type(::boost::fusion::at_c<I>(an_inst));
- return dest;
- }
-
- // member attrib value set
- template <int I>
- static void set(Class& an_inst, mpl::int_<I>, typename att_val_pass<I>::type val)
- {
- ::boost::fusion::at_c<I>(an_inst) = val;
- }
-
- // const member attrib value set
- template <int I>
- static void set(const Class& an_inst, mpl::int_<I>, typename att_val_pass<I>::type val)
- {
- }
-
- //
- typedef template_params
-BOOST_MIRROR_REG_TEMPLATE_ATTRIBS_END
-
-
-} // namespace mirror
-} // namespace boost
-
-#endif //include guard
-

Deleted: sandbox/mirror/boost/mirror/meta_classes/boost/tuples/boost_tuple.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_classes/boost/tuples/boost_tuple.hpp 2008-10-20 12:44:12 EDT (Mon, 20 Oct 2008)
+++ (empty file)
@@ -1,112 +0,0 @@
-/**
- * \file boost/mirror/meta_classes/boost_tuple.hpp
- * Meta-class for boost::tuple<T0, T1, ..., Tn>
- *
- * Copyright 2008 Matus Chochlik. 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)
- */
-
-#ifndef BOOST_MIRROR_META_CLASSES_BOOST_TUPLE_HPP
-#define BOOST_MIRROR_META_CLASSES_BOOST_TUPLE_HPP
-
-#include <boost/mirror/meta_class.hpp>
-#include <boost/mirror/meta_types/boost_tuple.hpp>
-#include <boost/mirror/detail/static_int_to_str.hpp>
-#include <boost/mirror/detail/unnamed_attribs.hpp>
-
-namespace boost {
-namespace mirror {
-
-BOOST_MIRROR_REG_TEMPLATE_ATTRIBS_BEGIN(::boost::tuples::tuple, 10)
- __dummy_list;
- //
- //
- // the full list tuple template arguments
- // which is the list of types of it's member attributes
- typedef typename mpl::vector10< BOOST_PP_ENUM_PARAMS(10, T) > all_template_params;
- //
- // the list of member attributes without the null types
- typedef typename detail::template_args_type_list_wo_nulls<
- all_template_params
- >::type template_params;
- //
- // member attribute base name getter
- template <int I, typename CharT>
- inline static const ::std::basic_string<CharT>& get_name(
- mpl::int_<I> pos,
- mpl::false_ full_name,
- ::std::char_traits<CharT> cht
- )
- {
- // get the prefix 'static string'
- typedef typename detail::meta_class_tuple_attrib_name_prefix<
- CharT
- >::type prefix;
- // get a prefixed name builder
- typedef typename boost::mirror::detail::static_int_to_str_w_prefix<
- prefix,
- CharT,
- I
- >::holder name_builder;
- // build the name and assing it to the static name
- static ::std::basic_string<CharT> name(name_builder::get());
- // return the built name
- return name;
- }
-
- template <int I>
- struct att_val_pass
- {
- typedef typename call_traits<
- typename mpl::at<template_params, mpl::int_<I> >::type
- >::param_type type;
- };
-
- // member attrib value get
- template <int I>
- static typename att_val_pass<I>::type
- get(const Class& a_tuple, mpl::int_<I>)
- {
- return ::boost::tuples::get<I>(a_tuple);
- }
-
- // member attrib value query
- template <typename dest_type, int I>
- static dest_type& query(const Class& a_tuple, mpl::int_<I>, dest_type& dest)
- {
- dest = dest_type(::boost::tuples::get<I>(a_tuple));
- return dest;
- }
-
- // member attrib value set
- template <int I>
- static void set(Class& a_tuple, mpl::int_<I>, typename att_val_pass<I>::type val)
- {
- ::boost::tuples::get<I>(a_tuple) = val;
- }
-
- // member attrib value set
- template <int I>
- static void set(const Class& a_tuple, mpl::int_<I>, typename att_val_pass<I>::type val)
- {
- }
- //
-
- // traits getter
- template <int I>
- static meta_class_attribute_traits<
- ::boost::mirror::attrib_storage_specifiers::__,
- typename att_val_pass<I>::type
- > get_traits(mpl::int_<I>);
-
- //
- typedef template_params
-BOOST_MIRROR_REG_TEMPLATE_ATTRIBS_END
-
-
-} // namespace mirror
-} // namespace boost
-
-#endif //include guard
-

Deleted: sandbox/mirror/boost/mirror/meta_types/boost/cts/boost_bstring.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_types/boost/cts/boost_bstring.hpp 2008-10-20 12:44:12 EDT (Mon, 20 Oct 2008)
+++ (empty file)
@@ -1,32 +0,0 @@
-/**
- * \file boost/mirror/meta_types/std_string.hpp
- *
- * Registering of native C++ string types
- *
- * Copyright 2008 Matus Chochlik. 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)
- */
-
-#ifndef BOOST_MIRROR_META_TYPES_BOOST_BSTRING_HPP
-#define BOOST_MIRROR_META_TYPES_BOOST_BSTRING_HPP
-
-// register string types
-#include <boost/mirror/meta_types/std_string.hpp>
-#include <boost/char_type_switch/string.hpp>
-#include <boost/mirror/meta_namespaces/boost_cts.hpp>
-
-namespace boost {
-namespace mirror {
-
-/** Register the bchar and bstring
- */
-BOOST_MIRROR_REG_TYPEDEF(::boost::cts, bchar)
-BOOST_MIRROR_REG_TYPEDEF(::boost::cts, bstring)
-
-
-} // namespace mirror
-} // namespace boost
-
-#endif //include guard
-

Deleted: sandbox/mirror/boost/mirror/meta_types/boost/fusion/boost_fusion_vector.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_types/boost/fusion/boost_fusion_vector.hpp 2008-10-20 12:44:12 EDT (Mon, 20 Oct 2008)
+++ (empty file)
@@ -1,76 +0,0 @@
-/**
- * \file boost/mirror/meta_types/boost_fusion_vector.hpp
- * Meta-type for boost::fusion::vector<>
- *
- * Copyright 2008 Matus Chochlik. 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)
- */
-
-#ifndef BOOST_MIRROR_META_TYPES_BOOST_FUSION_VECTOR_HPP
-#define BOOST_MIRROR_META_TYPES_BOOST_FUSION_VECTOR_HPP
-
-#include <boost/mirror/meta_type.hpp>
-#include <boost/mirror/detail/template_name.hpp>
-#include <boost/mirror/meta_namespaces/boost_fusion.hpp>
-//
-#include <boost/fusion/container/vector.hpp>
-#include <boost/preprocessor/repetition/enum_params.hpp>
-
-namespace boost {
-namespace mirror {
-
-#define BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_DECL() \
-template < \
- BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, class T) \
->
-
-#define BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_ARG_NAMES() \
- BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)
-
-namespace detail {
-
-BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_DECL()
-struct meta_type_boost_fusion_vector
-{
- BOOST_MIRROR_REG_TYPE_DECLARE_BASE_NAME("vector")
-};
-
-
-// designate fusion::void_ type as a typelist null type
-template <>
-struct is_typelist_null_type< ::boost::fusion::void_ >
- : ::boost::true_type { };
-
-
-} // namespace detail
-
-BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_DECL()
-struct meta_type<
- ::boost::fusion::vector< BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_ARG_NAMES() >
->
-: detail::static_template_name<
- BOOST_MIRRORED_NAMESPACE(::boost::fusion),
- detail::meta_type_boost_fusion_vector<
- BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_ARG_NAMES()
- >,
- mpl::vector<
- BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_ARG_NAMES()
- >
->
-{
- typedef ::boost::fusion::vector<
- BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_ARG_NAMES()
- > reflected_type;
-};
-
-// undefine the helper macros
-#undef BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_DECL
-#undef BOOST_MIRROR_TMP_BOOST_FUSION_VECTOR_TEMPL_ARG_NAMES
-
-
-} // namespace mirror
-} // namespace boost
-
-#endif //include guard
-

Deleted: sandbox/mirror/boost/mirror/meta_types/boost/tuples/boost_tuple.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_types/boost/tuples/boost_tuple.hpp 2008-10-20 12:44:12 EDT (Mon, 20 Oct 2008)
+++ (empty file)
@@ -1,78 +0,0 @@
-/**
- * \file boost/mirror/meta_types/boost_tuple.hpp
- * Meta-type for boost::tuple<>
- *
- * Copyright 2008 Matus Chochlik. 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)
- */
-
-#ifndef BOOST_MIRROR_META_TYPES_BOOST_TUPLE_HPP
-#define BOOST_MIRROR_META_TYPES_BOOST_TUPLE_HPP
-
-#include <boost/mirror/meta_type.hpp>
-#include <boost/mirror/detail/template_name.hpp>
-#include <boost/mirror/meta_namespaces/boost_tuples.hpp>
-//
-#include <boost/tuple/tuple.hpp>
-#include <boost/preprocessor/repetition/enum_params.hpp>
-
-namespace boost {
-namespace mirror {
-
-#define BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_DECL() \
-template < \
- BOOST_PP_ENUM_PARAMS(10, class T) \
->
-
-#define BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_ARG_NAMES() \
- BOOST_PP_ENUM_PARAMS(10, T)
-
-
-namespace detail {
-
-BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_DECL()
-struct meta_type_boost_tuple
-{
- BOOST_MIRROR_REG_TYPE_DECLARE_BASE_NAME("tuple")
-};
-
-
-// designate tuples::null_type as typelist null type
-template <>
-struct is_typelist_null_type< ::boost::tuples::null_type>
- : ::boost::true_type { };
-
-
-} // namespace detail
-
-
-BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_DECL()
-struct meta_type<
- ::boost::tuples::tuple< BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_ARG_NAMES() >
->
-: detail::static_template_name<
- BOOST_MIRRORED_NAMESPACE(::boost::tuples),
- detail::meta_type_boost_tuple<
- BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_ARG_NAMES()
- >,
- mpl::vector<
- BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_ARG_NAMES()
- >
->
-{
- typedef ::boost::tuples::tuple<
- BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_ARG_NAMES()
- > reflected_type;
-};
-
-// undefine the helper macros
-#undef BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_DECL
-#undef BOOST_MIRROR_TMP_BOOST_TUPLE_TEMPL_ARG_NAMES
-
-
-} // namespace mirror
-} // namespace boost
-
-#endif //include guard
-


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