|
Boost-Commit : |
From: chochlik_at_[hidden]
Date: 2008-05-02 14:50:15
Author: matus.chochlik
Date: 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
New Revision: 45031
URL: http://svn.boost.org/trac/boost/changeset/45031
Log:
Changed the template argument name to comply with the boost naming convention,
bar some examples, that will be fixed soon.
Text files modified:
sandbox/mirror/boost/mirror/algorithm/at.hpp | 42 ++++++++--------
sandbox/mirror/boost/mirror/algorithm/detail/attribute_at.hpp | 8 +-
sandbox/mirror/boost/mirror/algorithm/detail/base_class_at.hpp | 6 +-
sandbox/mirror/boost/mirror/algorithm/detail/for_each.hpp | 22 ++++----
sandbox/mirror/boost/mirror/algorithm/detail/iterative.hpp | 38 +++++++-------
sandbox/mirror/boost/mirror/algorithm/detail/no_op.hpp | 4
sandbox/mirror/boost/mirror/algorithm/detail/reverse_for_each.hpp | 22 ++++----
sandbox/mirror/boost/mirror/algorithm/for_each.hpp | 24 ++++----
sandbox/mirror/boost/mirror/algorithm/reverse_for_each.hpp | 24 ++++----
sandbox/mirror/boost/mirror/algorithm/size.hpp | 36 +++++++-------
sandbox/mirror/boost/mirror/class_kind_spec.hpp | 4
sandbox/mirror/boost/mirror/detail/array_type_name.hpp | 16 +++---
sandbox/mirror/boost/mirror/detail/const_type_name.hpp | 8 +-
sandbox/mirror/boost/mirror/detail/cv_type_name.hpp | 8 +-
sandbox/mirror/boost/mirror/detail/meta_attribs_base.hpp | 30 ++++++------
sandbox/mirror/boost/mirror/detail/meta_attribs_getset.hpp | 32 ++++++------
sandbox/mirror/boost/mirror/detail/nontrivial_type_name.hpp | 34 ++++++------
sandbox/mirror/boost/mirror/detail/pointer_type_name.hpp | 4
sandbox/mirror/boost/mirror/detail/ptr_ref_type_name.hpp | 20 ++++----
sandbox/mirror/boost/mirror/detail/reference_type_name.hpp | 4
sandbox/mirror/boost/mirror/detail/static_int_to_str.hpp | 4
sandbox/mirror/boost/mirror/detail/template_name.hpp | 40 ++++++++--------
sandbox/mirror/boost/mirror/detail/volatile_type_name.hpp | 8 +-
sandbox/mirror/boost/mirror/function/identity_op.hpp | 4
sandbox/mirror/boost/mirror/function/select_base_name.hpp | 6 +-
sandbox/mirror/boost/mirror/function/select_full_name.hpp | 6 +-
sandbox/mirror/boost/mirror/meta_attributes.hpp | 83 ++++++++++++++++++---------------
sandbox/mirror/boost/mirror/meta_class.hpp | 13 ++--
sandbox/mirror/boost/mirror/meta_classes/boost_tuple.hpp | 8 +-
sandbox/mirror/boost/mirror/meta_data_fwd.hpp | 8 +-
sandbox/mirror/boost/mirror/meta_inheritance.hpp | 76 +++++++++++++++---------------
sandbox/mirror/boost/mirror/meta_type.hpp | 98 ++++++++++++++++++++--------------------
sandbox/mirror/boost/mirror/meta_types/std_pair.hpp | 12 ++--
sandbox/mirror/boost/mirror/traits/reflects_class.hpp | 6 +-
sandbox/mirror/boost/mirror/traits/reflects_global_scope.hpp | 2
sandbox/mirror/boost/mirror/traits/reflects_namespace.hpp | 6 +-
sandbox/mirror/boost/mirror/traits/reflects_type.hpp | 10 ++--
sandbox/mirror/boost/mirror/traits/reflects_virtual_inheritance.hpp | 26 +++++-----
sandbox/mirror/boost/mirror/traversal.hpp | 62 +++++++++++++-----------
sandbox/mirror/boost/mirror/utils/name_to_stream/class.hpp | 6 +-
sandbox/mirror/boost/mirror/utils/name_to_stream/common.hpp | 16 +++---
sandbox/mirror/boost/mirror/utils/name_to_stream/namespace.hpp | 14 ++--
sandbox/mirror/boost/mirror/utils/name_to_stream/type.hpp | 86 +++++++++++++++++-----------------
sandbox/mirror/boost/mirror/visitors/fallback.hpp | 8 +-
sandbox/mirror/boost/mirror/visitors/sample.hpp | 18 +++---
45 files changed, 511 insertions(+), 501 deletions(-)
Modified: sandbox/mirror/boost/mirror/algorithm/at.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/at.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/at.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -20,48 +20,48 @@
/** Declaration of the default at_impl
* helper template.
*/
- template <class meta_object_sequence, class position>
+ template <class MetaObjectSequence, class Position>
struct at_impl { };
- /** Specialization of at_impl<meta_object_sequence>
+ /** Specialization of at_impl<MetaObjectSequence>
* for meta_class_attributes<>
*/
- template <class reflected_class, class variant_tag, class position>
- struct at_impl<meta_class_attributes<reflected_class, variant_tag>, position >
+ template <class Class, class VariantTag, class Position>
+ struct at_impl<meta_class_attributes<Class, VariantTag>, Position >
: meta_attribute_at<
- reflected_class, variant_tag,
- meta_class_attributes<reflected_class, variant_tag>,
- position
+ Class, VariantTag,
+ meta_class_attributes<Class, VariantTag>,
+ Position
>{ };
- /** Specialization of for_each_impl<meta_object_sequence>
+ /** Specialization of for_each_impl<MetaObjectSequence>
* for meta_class_all_attributes<>
*/
- template <class reflected_class, class variant_tag, class position>
- struct at_impl<meta_class_all_attributes<reflected_class, variant_tag>, position >
+ template <class Class, class VariantTag, class Position>
+ struct at_impl<meta_class_all_attributes<Class, VariantTag>, Position >
: meta_attribute_at<
- reflected_class, variant_tag,
- meta_class_all_attributes<reflected_class, variant_tag>,
- position
+ Class, VariantTag,
+ meta_class_all_attributes<Class, VariantTag>,
+ Position
>{ };
- /** Specialization of for_each_impl<meta_object_sequence>
+ /** Specialization of for_each_impl<MetaObjectSequence>
* for meta_base_classes<>
*/
- template <class reflected_class, class variant_tag, class position>
- struct at_impl<meta_base_classes<reflected_class, variant_tag>, position >
+ template <class Class, class VariantTag, class Position>
+ struct at_impl<meta_base_classes<Class, VariantTag>, Position >
: meta_inheritance_at<
- meta_base_classes<reflected_class, variant_tag>,
- position
+ meta_base_classes<Class, VariantTag>,
+ Position
>{ };
} // namespace detail
template <
- class meta_object_sequence,
- class position
+ class MetaObjectSequence,
+ class Position
>
-struct at : detail::at_impl<meta_object_sequence, position>
+struct at : detail::at_impl<MetaObjectSequence, Position>
{ };
} // namespace mirror
Modified: sandbox/mirror/boost/mirror/algorithm/detail/attribute_at.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/detail/attribute_at.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/detail/attribute_at.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -25,13 +25,13 @@
/** Implementation of the for_each function on meta_attributes
*/
-template <class reflected_class, class variant_tag, class meta_attributes, class position>
+template <class Class, class VariantTag, class MetaAttributes, class Position>
struct meta_attribute_at
{
typedef meta_class_attribute<
- reflected_class, variant_tag,
- meta_attributes,
- position
+ Class, VariantTag,
+ MetaAttributes,
+ Position
> type;
};
Modified: sandbox/mirror/boost/mirror/algorithm/detail/base_class_at.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/detail/base_class_at.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/detail/base_class_at.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -25,12 +25,12 @@
/** Implementation of the for_each function on meta_attributes
*/
-template <class meta_base_classes, class position>
+template <class MetaBaseClasses, class Position>
struct meta_inheritance_at
{
typedef typename mpl::at<
- typename meta_base_classes::list,
- position
+ typename MetaBaseClasses::list,
+ Position
>::type type;
};
Modified: sandbox/mirror/boost/mirror/algorithm/detail/for_each.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/detail/for_each.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/detail/for_each.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -24,35 +24,35 @@
/** Implementation of the for_each function
*/
-template <class meta_object_sequence, class sequence_size>
+template <class MetaObjectSequence, class Size>
struct for_each_meta_object
{
protected:
- template <class meta_object_op, class transform_op, int I>
- static inline void do_apply_to(meta_object_op op, transform_op transf, mpl::int_<I> pos)
+ template <class MetaObjectOp, class TransformOp, int I>
+ static inline void do_apply_to(MetaObjectOp op, TransformOp transf, mpl::int_<I> pos)
{
typedef typename boost::mirror::at<
- meta_object_sequence, mpl::int_<I>
+ MetaObjectSequence, mpl::int_<I>
>:: type meta_object;
op(transf(meta_object()));
}
typedef mpl::int_< -1 > begin;
- template <class meta_object_op, class transform_op>
- static inline void apply_to(meta_object_op op, transform_op transf, begin){ }
+ template <class MetaObjectOp, class TransformOp>
+ static inline void apply_to(MetaObjectOp op, TransformOp transf, begin){ }
- template <class meta_object_op, class transform_op, int I>
- static inline void apply_to(meta_object_op op, transform_op transf, mpl::int_<I> pos)
+ template <class MetaObjectOp, class TransformOp, int I>
+ static inline void apply_to(MetaObjectOp op, TransformOp transf, mpl::int_<I> pos)
{
apply_to(op, transf, mpl::int_<I - 1>()),
do_apply_to(op, transf, pos);
}
public:
- template <class meta_object_op, class transform_op>
- static inline meta_object_op perform(meta_object_op op, transform_op transf)
+ template <class MetaObjectOp, class TransformOp>
+ static inline MetaObjectOp perform(MetaObjectOp op, TransformOp transf)
{
- typedef mpl::int_<sequence_size::value - 1> last;
+ typedef mpl::int_<Size::value - 1> last;
apply_to(op, transf, last());
return op;
}
Modified: sandbox/mirror/boost/mirror/algorithm/detail/iterative.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/detail/iterative.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/detail/iterative.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -24,38 +24,38 @@
/** Declaration of the default iterative_algorithm
* helper template.
*/
- template <class meta_object_sequence, template <class, class> class algo_impl >
+ template <class MetaObjectSequence, template <class, class> class AlgoImpl >
struct iterative_algorithm { };
- /** Specialization of iterative_algorithm<meta_object_sequence,algo_impl>
+ /** Specialization of iterative_algorithm<MetaObjectSequence,AlgoImpl>
* for meta_class_attributes<>
*/
- template <class reflected_class, class variant_tag, template <class, class> class algo_impl>
- struct iterative_algorithm<meta_class_attributes<reflected_class, variant_tag>, algo_impl >
- : algo_impl<
- meta_class_attributes<reflected_class, variant_tag>,
- size<meta_class_attributes<reflected_class, variant_tag> >
+ template <class Class, class VariantTag, template <class, class> class AlgoImpl>
+ struct iterative_algorithm<meta_class_attributes<Class, VariantTag>, AlgoImpl >
+ : AlgoImpl<
+ meta_class_attributes<Class, VariantTag>,
+ size<meta_class_attributes<Class, VariantTag> >
>{ };
- /** Specialization of iterative_algorithm<meta_object_sequence,algo_impl>
+ /** Specialization of iterative_algorithm<MetaObjectSequence,AlgoImpl>
* for meta_class_all_attributes<>
*/
- template <class reflected_class, class variant_tag, template <class, class> class algo_impl>
- struct iterative_algorithm<meta_class_all_attributes<reflected_class, variant_tag>, algo_impl >
- : algo_impl<
- meta_class_all_attributes<reflected_class, variant_tag>,
- size<meta_class_all_attributes<reflected_class, variant_tag> >
+ template <class Class, class VariantTag, template <class, class> class AlgoImpl>
+ struct iterative_algorithm<meta_class_all_attributes<Class, VariantTag>, AlgoImpl >
+ : AlgoImpl<
+ meta_class_all_attributes<Class, VariantTag>,
+ size<meta_class_all_attributes<Class, VariantTag> >
>{ };
- /** Specialization of iterative_algorithm<meta_object_sequence,algo_impl>
+ /** Specialization of iterative_algorithm<MetaObjectSequence,AlgoImpl>
* for meta_base_classes<>
*/
- template <class reflected_class, class variant_tag, template <class, class> class algo_impl>
- struct iterative_algorithm<meta_base_classes<reflected_class, variant_tag>, algo_impl >
- : algo_impl<
- meta_base_classes<reflected_class, variant_tag>,
- size<meta_base_classes<reflected_class, variant_tag> >
+ template <class Class, class VariantTag, template <class, class> class AlgoImpl>
+ struct iterative_algorithm<meta_base_classes<Class, VariantTag>, AlgoImpl >
+ : AlgoImpl<
+ meta_base_classes<Class, VariantTag>,
+ size<meta_base_classes<Class, VariantTag> >
>{ };
} // namespace detail
Modified: sandbox/mirror/boost/mirror/algorithm/detail/no_op.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/detail/no_op.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/detail/no_op.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,8 +17,8 @@
struct no_op
{
- template <typename arg_type>
- inline arg_type operator()(arg_type arg){return arg;}
+ template <typename ArgType>
+ inline ArgType operator()(ArgType arg){return arg;}
};
} // namespace detail
Modified: sandbox/mirror/boost/mirror/algorithm/detail/reverse_for_each.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/detail/reverse_for_each.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/detail/reverse_for_each.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -23,33 +23,33 @@
/** Implementation of the for_each function
*/
-template <class meta_object_sequence, class sequence_size>
+template <class MetaObjectSequence, class Size>
struct reverse_for_each_meta_object
{
protected:
- template <class meta_object_op, class transform_op, int I>
- static void do_apply_to(meta_object_op op, transform_op transf, mpl::int_<I> pos)
+ template <class MetaObjectOp, class TransformOp, int I>
+ static void do_apply_to(MetaObjectOp op, TransformOp transf, mpl::int_<I> pos)
{
typedef typename boost::mirror::at<
- meta_object_sequence, mpl::int_<I>
+ MetaObjectSequence, mpl::int_<I>
>:: type meta_object;
op(transf(meta_object()));
}
- typedef typename mpl::int_<sequence_size::value> end;
+ typedef typename mpl::int_<Size::value> end;
- template <class meta_object_op, class transform_op>
- static void apply_to(meta_object_op op, transform_op transf, end){ }
+ template <class MetaObjectOp, class TransformOp>
+ static void apply_to(MetaObjectOp op, TransformOp transf, end){ }
- template <class meta_object_op, class transform_op, int I>
- static void apply_to(meta_object_op op, transform_op transf, mpl::int_<I> pos)
+ template <class MetaObjectOp, class TransformOp, int I>
+ static void apply_to(MetaObjectOp op, TransformOp transf, mpl::int_<I> pos)
{
apply_to(op, transf, mpl::int_<I + 1>()),
do_apply_to(op, transf, pos);
}
public:
- template <class meta_object_op, class transform_op>
- static meta_object_op perform(meta_object_op op, transform_op transf)
+ template <class MetaObjectOp, class TransformOp>
+ static MetaObjectOp perform(MetaObjectOp op, TransformOp transf)
{
typedef mpl::int_<0> first;
apply_to(op, transf, first());
Modified: sandbox/mirror/boost/mirror/algorithm/for_each.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/for_each.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/for_each.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -1,6 +1,6 @@
/**
* \file boost/mirror/algorithm/for_each.hpp
- * Run-time application of a functor to all base_classes/attributes/etc.
+ * Run-time application of a Functor to all base_classes/attributes/etc.
*
* Copyright 2008 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
@@ -21,30 +21,30 @@
/** Declaration of the default for_each_impl
* helper template.
*/
- template <class meta_object_sequence>
+ template <class MetaObjectSequence>
struct for_each_impl
- : iterative_algorithm<meta_object_sequence, for_each_meta_object>
+ : iterative_algorithm<MetaObjectSequence, for_each_meta_object>
{ };
} // namespace detail
template <
- class meta_object_sequence,
- class functor
+ class MetaObjectSequence,
+ class Functor
>
-static inline functor for_each(functor fn)
+static inline Functor for_each(Functor fn)
{
- return detail::for_each_impl<meta_object_sequence> ::perform(fn, detail::no_op());
+ return detail::for_each_impl<MetaObjectSequence> ::perform(fn, detail::no_op());
}
template <
- class meta_object_sequence,
- class transform_op,
- class functor
+ class MetaObjectSequence,
+ class TransformOp,
+ class Functor
>
-static inline functor for_each(transform_op transf, functor fn)
+static inline Functor for_each(TransformOp transf, Functor fn)
{
- return detail::for_each_impl<meta_object_sequence> ::perform(fn, transf);
+ return detail::for_each_impl<MetaObjectSequence> ::perform(fn, transf);
}
} // namespace mirror
Modified: sandbox/mirror/boost/mirror/algorithm/reverse_for_each.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/reverse_for_each.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/reverse_for_each.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -1,6 +1,6 @@
/**
* \file boost/mirror/algorithm/reverse_for_each.hpp
- * Run-time application of a functor to all base_classes/attributes/etc.
+ * Run-time application of a Functor to all base_classes/attributes/etc.
*
* Copyright 2008 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
@@ -21,30 +21,30 @@
/** Declaration of the default for_each_impl
* helper template.
*/
- template <class meta_object_sequence>
+ template <class MetaObjectSequence>
struct reverse_for_each_impl
- : iterative_algorithm<meta_object_sequence, reverse_for_each_meta_object>
+ : iterative_algorithm<MetaObjectSequence, reverse_for_each_meta_object>
{ };
} // namespace detail
template <
- class meta_object_sequence,
- class functor
+ class MetaObjectSequence,
+ class Functor
>
-static functor reverse_for_each(functor fn)
+static Functor reverse_for_each(Functor fn)
{
- return detail::reverse_for_each_impl<meta_object_sequence> ::perform(fn, detail::no_op());
+ return detail::reverse_for_each_impl<MetaObjectSequence> ::perform(fn, detail::no_op());
}
template <
- class meta_object_sequence,
- class transform_op,
- class functor
+ class MetaObjectSequence,
+ class TransformOp,
+ class Functor
>
-static functor reverse_for_each(transform_op transf, functor fn)
+static Functor reverse_for_each(TransformOp transf, Functor fn)
{
- return detail::reverse_for_each_impl<meta_object_sequence> ::perform(fn, transf);
+ return detail::reverse_for_each_impl<MetaObjectSequence> ::perform(fn, transf);
}
} // namespace mirror
Modified: sandbox/mirror/boost/mirror/algorithm/size.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/algorithm/size.hpp (original)
+++ sandbox/mirror/boost/mirror/algorithm/size.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,49 +17,49 @@
/** Declaration of the default at_impl
* helper template.
*/
- template <class meta_object_sequence>
+ template <class MetaObjectSequence>
struct size_impl { };
- /** Specialization of at_impl<meta_object_sequence>
+ /** Specialization of at_impl<MetaObjectSequence>
* for meta_class_attributes<>
*/
- template <class reflected_class, class variant_tag>
- struct size_impl<meta_class_attributes<reflected_class, variant_tag> >
+ template <class Class, class VariantTag>
+ struct size_impl<meta_class_attributes<Class, VariantTag> >
: mpl::size<
typename meta_class_attributes<
- reflected_class,
- variant_tag
+ Class,
+ VariantTag
>::type_list
>{ };
- /** Specialization of for_each_impl<meta_object_sequence>
+ /** Specialization of for_each_impl<MetaObjectSequence>
* for meta_class_all_attributes<>
*/
- template <class reflected_class, class variant_tag>
- struct size_impl<meta_class_all_attributes<reflected_class, variant_tag> >
+ template <class Class, class VariantTag>
+ struct size_impl<meta_class_all_attributes<Class, VariantTag> >
: mpl::size<
typename meta_class_all_attributes<
- reflected_class,
- variant_tag
+ Class,
+ VariantTag
>::type_list
>{ };
- /** Specialization of for_each_impl<meta_object_sequence>
+ /** Specialization of for_each_impl<MetaObjectSequence>
* for meta_base_classes<>
*/
- template <class reflected_class, class variant_tag>
- struct size_impl<meta_base_classes<reflected_class, variant_tag> >
+ template <class Class, class VariantTag>
+ struct size_impl<meta_base_classes<Class, VariantTag> >
: mpl::size<
typename meta_base_classes<
- reflected_class,
- variant_tag
+ Class,
+ VariantTag
>::list
>{ };
} // namespace detail
-template <class meta_object_sequence>
-struct size : detail::size_impl<meta_object_sequence> { };
+template <class MetaObjectSequence>
+struct size : detail::size_impl<MetaObjectSequence> { };
} // namespace mirror
} // namespace boost
Modified: sandbox/mirror/boost/mirror/class_kind_spec.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/class_kind_spec.hpp (original)
+++ sandbox/mirror/boost/mirror/class_kind_spec.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -25,7 +25,7 @@
struct struct_ : class_kind_specifier { };
struct union_ : class_kind_specifier { };
-template <class a_class>
+template <class C>
struct meta_class_kind
{
typedef class_ result;
@@ -33,7 +33,7 @@
/** Default inheritance access specifier for the given class kind
*/
-template <class a_class_kind>
+template <class K>
struct class_kind_default_access
{
typedef public_ specifier;
Modified: sandbox/mirror/boost/mirror/detail/array_type_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/array_type_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/array_type_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -19,14 +19,14 @@
namespace detail {
-template <class meta_type, class array_size, bool base_name>
+template <class MetaType, class ArraySize, bool BaseName>
struct static_array_type_name_base
{
protected:
- typedef typename detail::static_int_to_str<array_size::value>
+ typedef typename detail::static_int_to_str<ArraySize::value>
size_as_string;
- typedef nontrivial_type_base_or_full_name<meta_type, base_name>
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseName>
name_info;
BOOST_STATIC_CONSTANT(size_t, difference = 3 + size_as_string::length::value);
@@ -60,11 +60,11 @@
}
};
-template <class meta_type, bool base_name>
-struct static_array_type_name_base<meta_type, mpl::int_<-1>, base_name>
+template <class MetaType, bool BaseName>
+struct static_array_type_name_base<MetaType, mpl::int_<-1>, BaseName>
{
protected:
- typedef nontrivial_type_base_or_full_name<meta_type, base_name>
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseName>
name_info;
BOOST_STATIC_CONSTANT(
@@ -93,9 +93,9 @@
};
-template <class meta_type, int array_size>
+template <class MetaType, int ArraySize>
struct static_array_type_name : static_nontrivial_type_name<
- meta_type, mpl::int_<array_size>, static_array_type_name_base
+ MetaType, mpl::int_<ArraySize>, static_array_type_name_base
>{ };
} // namespace detail
Modified: sandbox/mirror/boost/mirror/detail/const_type_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/const_type_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/const_type_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,11 +17,11 @@
namespace mirror {
namespace detail {
-template <class meta_type, typename dummy, bool base_type>
+template <class MetaType, typename Dummy, bool BaseName>
struct static_const_type_name_base
{
protected:
- typedef nontrivial_type_base_or_full_name<meta_type, base_type>
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseName>
name_info;
BOOST_STATIC_CONSTANT(int, difference = 6);
@@ -50,9 +50,9 @@
}
};
-template <class meta_type>
+template <class MetaType>
struct static_const_type_name : static_nontrivial_type_name<
- meta_type, void, static_const_type_name_base
+ MetaType, void, static_const_type_name_base
>{ };
Modified: sandbox/mirror/boost/mirror/detail/cv_type_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/cv_type_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/cv_type_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,11 +17,11 @@
namespace mirror {
namespace detail {
-template <class meta_type, typename dummy, bool base_type>
+template <class MetaType, typename Dummy, bool BaseName>
struct static_cv_type_name_base
{
protected:
- typedef nontrivial_type_base_or_full_name<meta_type, base_type>
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseName>
name_info;
BOOST_STATIC_CONSTANT(int, difference = 15);
@@ -50,9 +50,9 @@
}
};
-template <class meta_type>
+template <class MetaType>
struct static_cv_type_name : static_nontrivial_type_name<
- meta_type, void, static_cv_type_name_base
+ MetaType, void, static_cv_type_name_base
>{ };
Modified: sandbox/mirror/boost/mirror/detail/meta_attribs_base.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/meta_attribs_base.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/meta_attribs_base.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -25,12 +25,12 @@
/** Forward declaration of the meta_class_attributes<> template
*/
-template <class the_class, class variant_tag = detail::default_meta_class_variant>
+template <class Class, class VariantTag = detail::default_meta_class_variant>
struct meta_class_attributes;
/** Defaut (empty) list of base attributes of a meta class
*/
-template <class the_class, class variant_tag>
+template <class Class, class VariantTag>
struct meta_class_attributes
{
typedef mpl::vector<> type_list;
@@ -42,7 +42,7 @@
#define BOOST_MIRROR_REG_CLASS_ATTRIBS_BEGIN(THE_CLASS) \
template <> struct meta_class_attributes< THE_CLASS , detail::default_meta_class_variant> \
{ \
- typedef THE_CLASS the_class; \
+ typedef THE_CLASS Class; \
typedef mpl::vector<>
/** This macro starts the declaration of member attributes
@@ -56,7 +56,7 @@
> \
{ \
typedef THE_TEMPLATE < BOOST_PP_ENUM_PARAMS(TEMPL_ARG_COUNT, T) > \
- the_class; \
+ Class; \
typedef typename mpl::vector<>
@@ -106,14 +106,14 @@
* querying scheme
*/
#define BOOST_MIRROR_REG_CLASS_OR_TEMPL_ATTRIB_DECL_SIMPLE_GET(NUMBER, TYPE, NAME, TYPENAME_KW) \
- static TYPENAME_KW call_traits<TYPE>::param_type get(const the_class& context, mpl::int_<NUMBER>)\
+ static TYPENAME_KW call_traits<TYPE>::param_type get(const Class& context, mpl::int_<NUMBER>)\
{\
return context.NAME;\
}\
- template <typename dest_type>\
- static dest_type& query(const the_class& context, mpl::int_<NUMBER>, dest_type& dest)\
+ template <typename DestType>\
+ static DestType& query(const Class& context, mpl::int_<NUMBER>, DestType& dest)\
{\
- dest = dest_type(context.NAME);\
+ dest = DestType(context.NAME);\
return dest;\
}
@@ -127,9 +127,9 @@
/** Helper macro for implementing no-op query meta-class function
*/
#define BOOST_MIRROR_REG_CLASS_ATTRIB_DECL_NO_GETTER(NUMBER, TYPE) \
- static void get(const the_class& context, mpl::int_<NUMBER>){ }\
- template <typename dest_type>\
- static void query(const the_class& context, mpl::int_<NUMBER>, dest_type& dest){ }
+ static void get(const Class& context, mpl::int_<NUMBER>){ }\
+ template <typename DestType>\
+ static void query(const Class& context, mpl::int_<NUMBER>, DestType& dest){ }
#define BOOST_MIRROR_REG_TEMPLATE_ATTRIB_DECL_NO_GETTER(NUMBER, TYPE) \
@@ -137,11 +137,11 @@
/** Helper macros
*/
#define BOOST_MIRROR_REG_CLASS_OR_TEMPL_ATTRIB_DECL_SIMPLE_SET(NUMBER, TYPE, NAME, TYPENAME_KW) \
- static void set(the_class& context, mpl::int_<NUMBER>, TYPENAME_KW call_traits<TYPE>::param_type val)\
+ static void set(Class& context, mpl::int_<NUMBER>, TYPENAME_KW call_traits<TYPE>::param_type val)\
{\
context.NAME = val;\
} \
- static void set(const the_class& context, mpl::int_<NUMBER>, TYPENAME_KW call_traits<TYPE>::param_type val)\
+ static void set(const Class& context, mpl::int_<NUMBER>, TYPENAME_KW call_traits<TYPE>::param_type val)\
{\
}
@@ -155,8 +155,8 @@
/** Helper macro for implementing no-op set meta-class function
*/
#define BOOST_MIRROR_REG_CLASS_OR_TEMPL_ATTRIB_DECL_NO_SETTER(NUMBER, TYPE, TYPENAME_KW) \
- static void set(the_class& context, mpl::int_<NUMBER>, call_traits<TYPE>::param_type val){ }\
- static void set(const the_class& context, mpl::int_<NUMBER>, call_traits<TYPE>::param_type val){ }
+ static void set(Class& context, mpl::int_<NUMBER>, call_traits<TYPE>::param_type val){ }\
+ static void set(const Class& context, mpl::int_<NUMBER>, call_traits<TYPE>::param_type val){ }
#define BOOST_MIRROR_REG_CLASS_ATTRIB_DECL_NO_SETTER(NUMBER, TYPE) \
BOOST_MIRROR_REG_CLASS_OR_TEMPL_ATTRIB_DECL_NO_SETTER(NUMBER, TYPE, BOOST_PP_EMPTY())
Modified: sandbox/mirror/boost/mirror/detail/meta_attribs_getset.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/meta_attribs_getset.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/meta_attribs_getset.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -32,42 +32,42 @@
* TODO: This is a rather unfortunate implementation ...
* It would be great is we could get rid of the do_* helpers.
* Anyway there should be two overloads of get and two for query
- * one having 'const the_class&' and the other 'the_class&' as the first param
+ * one having 'const Class&' and the other 'Class&' as the first param
* if the provided getter IS const qualified.
* Otherwise, if the getter IS NOT const qualified there should be only one
- * version of get and one version of query, both having a 'the_class&'
+ * version of get and one version of query, both having a 'Class&'
* as the first argument.
*
- * Now, both overloads get always compiled, but if the one with const the_class&
+ * Now, both overloads get always compiled, but if the one with const Class&
* gets never used it is (hopefully) culled out of the final binary.
*/
#define BOOST_MIRROR_REG_CLASS_ATTRIB_DECL_GETTER_ARGS(NUMBER, TYPE, GETTER_NAME, GETTER_ARGS_TUPLE, ARG_COUNT) \
- static call_traits<TYPE>::param_type do_get(the_class& context, mpl::int_<NUMBER>, mpl::bool_<true>)\
+ static call_traits<TYPE>::param_type do_get(Class& context, mpl::int_<NUMBER>, mpl::bool_<true>)\
{\
return context.GETTER_NAME(BOOST_PP_LIST_ENUM(BOOST_PP_TUPLE_TO_LIST(ARG_COUNT, GETTER_ARGS_TUPLE)));\
} \
- static call_traits<TYPE>::param_type do_get(const the_class& context, mpl::int_<NUMBER>, mpl::bool_<function_types::is_member_function_pointer<BOOST_TYPEOF(&the_class::GETTER_NAME), function_types::const_qualified>::value>)\
+ static call_traits<TYPE>::param_type do_get(const Class& context, mpl::int_<NUMBER>, mpl::bool_<function_types::is_member_function_pointer<BOOST_TYPEOF(&Class::GETTER_NAME), function_types::const_qualified>::value>)\
{\
- return const_cast<the_class&>(context).GETTER_NAME(BOOST_PP_LIST_ENUM(BOOST_PP_TUPLE_TO_LIST(ARG_COUNT, GETTER_ARGS_TUPLE)));\
+ return const_cast<Class&>(context).GETTER_NAME(BOOST_PP_LIST_ENUM(BOOST_PP_TUPLE_TO_LIST(ARG_COUNT, GETTER_ARGS_TUPLE)));\
} \
- template <typename dest_type>\
- static dest_type& do_query(the_class& context, mpl::int_<NUMBER>, dest_type& dest, mpl::bool_<true>)\
+ template <typename DestType>\
+ static DestType& do_query(Class& context, mpl::int_<NUMBER>, DestType& dest, mpl::bool_<true>)\
{\
- dest = dest_type(context.GETTER_NAME(BOOST_PP_LIST_ENUM(BOOST_PP_TUPLE_TO_LIST(ARG_COUNT, GETTER_ARGS_TUPLE))));\
+ dest = DestType(context.GETTER_NAME(BOOST_PP_LIST_ENUM(BOOST_PP_TUPLE_TO_LIST(ARG_COUNT, GETTER_ARGS_TUPLE))));\
return dest;\
} \
- template <typename dest_type>\
- static dest_type& do_query(const the_class& context, mpl::int_<NUMBER>, dest_type& dest, mpl::bool_<function_types::is_member_function_pointer<BOOST_TYPEOF(&the_class::GETTER_NAME), function_types::const_qualified>::value>)\
+ template <typename DestType>\
+ static DestType& do_query(const Class& context, mpl::int_<NUMBER>, DestType& dest, mpl::bool_<function_types::is_member_function_pointer<BOOST_TYPEOF(&Class::GETTER_NAME), function_types::const_qualified>::value>)\
{\
- dest = dest_type(const_cast<the_class&>(context).GETTER_NAME(BOOST_PP_LIST_ENUM(BOOST_PP_TUPLE_TO_LIST(ARG_COUNT, GETTER_ARGS_TUPLE))));\
+ dest = DestType(const_cast<Class&>(context).GETTER_NAME(BOOST_PP_LIST_ENUM(BOOST_PP_TUPLE_TO_LIST(ARG_COUNT, GETTER_ARGS_TUPLE))));\
return dest;\
} \
- template <class a_class> static call_traits<TYPE>::param_type get(a_class& context, mpl::int_<NUMBER>)\
+ template <class SomeClass> static call_traits<TYPE>::param_type get(SomeClass& context, mpl::int_<NUMBER>)\
{\
return do_get(context, mpl::int_<NUMBER>(), mpl::bool_<true>());\
}\
- template <class a_class, typename dest_type> \
- static dest_type& query(a_class& context, mpl::int_<NUMBER>, dest_type& dest)\
+ template <class SomeClass, typename DestType> \
+ static DestType& query(SomeClass& context, mpl::int_<NUMBER>, DestType& dest)\
{\
return do_query(context, mpl::int_<NUMBER>(), dest, mpl::bool_<true>());\
}
@@ -78,7 +78,7 @@
/** Helper macro for implementing setter based set meta-class function
*/
#define BOOST_MIRROR_REG_CLASS_ATTRIB_DECL_SETTER_ARGS(NUMBER, TYPE, SETTER_NAME, SETTER_ARGS_TUPLE, ARG_COUNT) \
- static void set(the_class& context, mpl::int_<NUMBER>, call_traits<TYPE>::param_type val)\
+ static void set(Class& context, mpl::int_<NUMBER>, call_traits<TYPE>::param_type val)\
{\
context.SETTER_NAME(BOOST_PP_LIST_ENUM(BOOST_PP_TUPLE_TO_LIST(ARG_COUNT, SETTER_ARGS_TUPLE)));\
}
Modified: sandbox/mirror/boost/mirror/detail/nontrivial_type_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/nontrivial_type_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/nontrivial_type_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,49 +17,49 @@
namespace mirror {
namespace detail {
-template <class meta_type, bool true_or_false>
+template <class MetaType, bool BaseOrFull>
struct nontrivial_type_base_or_full_name;
/** Base name
*/
-template <class meta_type>
-struct nontrivial_type_base_or_full_name<meta_type, true>
+template <class MetaType>
+struct nontrivial_type_base_or_full_name<MetaType, true>
{
BOOST_STATIC_CONSTANT(
int,
name_length =
- meta_type::base_name_length
+ MetaType::base_name_length
);
inline static const bchar* name(void)
{
- return meta_type::base_name();
+ return MetaType::base_name();
}
};
/** Full name
*/
-template <class meta_type>
-struct nontrivial_type_base_or_full_name<meta_type, false>
+template <class MetaType>
+struct nontrivial_type_base_or_full_name<MetaType, false>
{
BOOST_STATIC_CONSTANT(
int,
name_length =
- meta_type::full_name_length
+ MetaType::full_name_length
);
inline static const bchar* name(void)
{
- return meta_type::full_name();
+ return MetaType::full_name();
}
};
-template <class meta_type, typename meta_data, template <class, typename, bool> class implementation>
+template <class MetaType, typename MetaData, template <class, typename, bool> class Implementation>
struct static_nontrivial_type_name
-: implementation<meta_type, meta_data, true>
-, implementation<meta_type, meta_data, false>
+: Implementation<MetaType, MetaData, true>
+, Implementation<MetaType, MetaData, false>
{
private:
- typedef implementation<meta_type, meta_data, true> implementation_base_name;
- typedef implementation<meta_type, meta_data, false> implementation_full_name;
+ typedef Implementation<MetaType, MetaData, true> implementation_base_name;
+ typedef Implementation<MetaType, MetaData, false> implementation_full_name;
inline static bchar* new_string(const size_t size)
{
@@ -74,10 +74,10 @@
return !str[0];
}
- template <bool format_base_name>
- static const bchar* get_name(mpl::bool_<format_base_name>)
+ template <bool FormatBaseName>
+ static const bchar* get_name(mpl::bool_<FormatBaseName>)
{
- typedef implementation<meta_type, meta_data, format_base_name>
+ typedef Implementation<MetaType, MetaData, FormatBaseName>
impl;
const int name_len(impl::name_length);
#ifndef BOOST_MIRROR_USE_DYNAMIC_NAME_STRINGS
Modified: sandbox/mirror/boost/mirror/detail/pointer_type_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/pointer_type_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/pointer_type_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,9 +17,9 @@
namespace mirror {
namespace detail {
-template <class meta_type>
+template <class MetaType>
struct static_pointer_type_name : static_nontrivial_type_name<
- meta_type, void, static_pointer_type_name_base
+ MetaType, void, static_pointer_type_name_base
>{ };
Modified: sandbox/mirror/boost/mirror/detail/ptr_ref_type_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/ptr_ref_type_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/ptr_ref_type_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,11 +17,11 @@
namespace mirror {
namespace detail {
-template <class meta_type, bool base_name, bchar token, bchar token2>
+template <class MetaType, bool BaseName, bchar Token, bchar Token2>
struct static_ptr_ref_type_name_base
{
protected:
- typedef nontrivial_type_base_or_full_name<meta_type, base_name>
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseName>
name_info;
BOOST_STATIC_CONSTANT(int, difference = 3);
@@ -43,8 +43,8 @@
// append the " * " or " & "
assert(cur_pos == (the_name + name_info::name_length));
*(cur_pos++) = BOOST_STR_LIT(' ');
- *(cur_pos++) = token;
- *(cur_pos++) = token2;
+ *(cur_pos++) = Token;
+ *(cur_pos++) = Token2;
//
// finalize the string
assert(cur_pos == (the_name + name_length));
@@ -52,20 +52,20 @@
}
};
-template <class meta_type, typename dummy, bool base_name>
+template <class MetaType, typename Dummy, bool BaseName>
struct static_pointer_type_name_base
: static_ptr_ref_type_name_base<
- meta_type,
- base_name,
+ MetaType,
+ BaseName,
BOOST_STR_LIT(' '),
BOOST_STR_LIT('*')
>{ };
-template <class meta_type, typename dummy, bool base_name>
+template <class MetaType, typename Dummy, bool BaseName>
struct static_reference_type_name_base
: static_ptr_ref_type_name_base<
- meta_type,
- base_name,
+ MetaType,
+ BaseName,
BOOST_STR_LIT(' '),
BOOST_STR_LIT('&')
>{ };
Modified: sandbox/mirror/boost/mirror/detail/reference_type_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/reference_type_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/reference_type_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -18,9 +18,9 @@
namespace detail {
-template <class meta_type>
+template <class MetaType>
struct static_reference_type_name : static_nontrivial_type_name<
- meta_type, void, static_reference_type_name_base
+ MetaType, void, static_reference_type_name_base
>{ };
Modified: sandbox/mirror/boost/mirror/detail/static_int_to_str.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/static_int_to_str.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/static_int_to_str.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -77,10 +77,10 @@
}
};
-template <class mpl_vector_c, int I>
+template <class Vector, int I>
struct static_int_to_str_w_prefix
{
- typedef mpl_vector_c prefix;
+ typedef Vector prefix;
typedef mpl::int_<mpl::size<prefix>::value> prefix_length;
typedef typename static_int_to_str<I>::length number_length;
// the length of the string needed to hold the given integer with the prefix
Modified: sandbox/mirror/boost/mirror/detail/template_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/template_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/template_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -29,15 +29,15 @@
* template_name|< |T1|, |T2|, |...|Tn| > (without the
* delimiting '|'s.
*/
-template <class typelist, bool base_name>
+template <class TypeList, bool BaseName>
struct static_template_name_length
{
- template <typename a_type>
+ template <typename Type>
struct get_type_name_length_type
{
- typedef BOOST_MIRROR_REFLECT_TYPE(a_type) meta_type;
+ typedef BOOST_MIRROR_REFLECT_TYPE(Type) MetaType;
- typedef nontrivial_type_base_or_full_name<meta_type, base_name>
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseName>
name_info;
typedef typename mpl::int_<
@@ -46,7 +46,7 @@
};
typedef typename mpl::accumulate<
- typelist,
+ TypeList,
mpl::int_<2>,
mpl::plus<
mpl::_1,
@@ -61,42 +61,42 @@
/** Specializations of this template
*/
-template <typename a_type>
+template <typename Type>
struct is_typelist_null_type : ::boost::false_type { };
-template <class full_typelist>
+template <class FullTypeList>
struct template_with_null_args_type_list
{
- /** A typelist that contains all types from full_type_list
+ /** A TypeList that contains all types from full_type_list
* except those that are typelist_null_types
*/
typedef typename mpl::remove_if<
- full_typelist,
+ FullTypeList,
is_typelist_null_type<mpl::_1>
>::type type;
};
-template <class meta_type, class full_typelist, bool base_name>
+template <class MetaType, class FullTypeList, bool BaseName>
struct static_template_name_base
{
protected:
typedef typename template_with_null_args_type_list<
- full_typelist
- >::type typelist;
+ FullTypeList
+ >::type TypeList;
/** The 'position' of the last type in the template
* type list.
*/
typedef typename mpl::int_<
- mpl::size< typelist >::value - 1
+ mpl::size< TypeList >::value - 1
> last_type_pos;
template <int I>
static bchar* do_append_type_name(bchar* cur_pos, mpl::int_<I>)
{
- typedef typename mpl::at<typelist, mpl::int_<I> >::type type;
- typedef BOOST_MIRROR_REFLECT_TYPE(type) meta_type;
- typedef nontrivial_type_base_or_full_name<meta_type, base_name>
+ typedef typename mpl::at<TypeList, mpl::int_<I> >::type type;
+ typedef BOOST_MIRROR_REFLECT_TYPE(type) MetaType;
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseName>
local_name_info;
bstrcpy(cur_pos, local_name_info::name());
cur_pos += local_name_info::name_length;
@@ -117,10 +117,10 @@
return do_append_type_name(cur_pos, type_pos);
}
- typedef nontrivial_type_base_or_full_name<meta_type, base_name>
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseName>
name_info;
- typedef typename static_template_name_length<typelist, base_name>::type
+ typedef typename static_template_name_length<TypeList, BaseName>::type
template_param_list_length_type;
BOOST_STATIC_CONSTANT(
@@ -161,9 +161,9 @@
}
};
-template <class meta_type, class typelist>
+template <class MetaType, class TypeList>
struct static_template_name : static_nontrivial_type_name<
- meta_type, typelist, static_template_name_base
+ MetaType, TypeList, static_template_name_base
>{ };
Modified: sandbox/mirror/boost/mirror/detail/volatile_type_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/volatile_type_name.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/volatile_type_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,11 +17,11 @@
namespace mirror {
namespace detail {
-template <class meta_type, typename dummy, bool base_type>
+template <class MetaType, typename Dummy, bool BaseType>
struct static_volatile_type_name_base
{
protected:
- typedef nontrivial_type_base_or_full_name<meta_type, base_type>
+ typedef nontrivial_type_base_or_full_name<MetaType, BaseType>
name_info;
BOOST_STATIC_CONSTANT(int, difference = 9);
@@ -50,9 +50,9 @@
}
};
-template <class meta_type>
+template <class MetaType>
struct static_volatile_type_name : static_nontrivial_type_name<
- meta_type, void, static_volatile_type_name_base
+ MetaType, void, static_volatile_type_name_base
>{ };
Modified: sandbox/mirror/boost/mirror/function/identity_op.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/function/identity_op.hpp (original)
+++ sandbox/mirror/boost/mirror/function/identity_op.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -16,8 +16,8 @@
struct identity_op
{
- template <class argument_type>
- inline argument_type operator()(argument_type arg)
+ template <class ArgumentType>
+ inline ArgumentType operator()(ArgumentType arg)
{
return arg;
}
Modified: sandbox/mirror/boost/mirror/function/select_base_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/function/select_base_name.hpp (original)
+++ sandbox/mirror/boost/mirror/function/select_base_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -16,10 +16,10 @@
struct select_base_name
{
- template <class meta_object>
- inline const bchar* operator()(meta_object)
+ template <class MetaObject>
+ inline const bchar* operator()(MetaObject)
{
- return meta_object::base_name();
+ return MetaObject::base_name();
}
};
Modified: sandbox/mirror/boost/mirror/function/select_full_name.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/function/select_full_name.hpp (original)
+++ sandbox/mirror/boost/mirror/function/select_full_name.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -16,10 +16,10 @@
struct select_full_name
{
- template <class meta_object>
- inline const bchar* operator()(meta_object)
+ template <class MetaObject>
+ inline const bchar* operator()(MetaObject)
{
- return meta_object::full_name();
+ return MetaObject::full_name();
}
};
Modified: sandbox/mirror/boost/mirror/meta_attributes.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_attributes.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_attributes.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -24,12 +24,12 @@
* the inherited ones.
*/
template <
- class _reflected_type,
- class _variant_tag
+ class ReflectedType,
+ class VariantTag
>
struct meta_class_all_attributes
{
- typedef boost::mirror::meta_class<_reflected_type, _variant_tag>
+ typedef boost::mirror::meta_class<ReflectedType, VariantTag>
meta_class;
/** This struct "hides" the internal helpers
*/
@@ -58,9 +58,10 @@
* of a base class when given a meta_inheritance
* specialization for this base class.
*/
- template <class meta_inheritance>
+ template <class MetaInheritance>
struct get_base_class_regular_layout
{
+ typedef MetaInheritance meta_inheritance;
typedef typename
meta_inheritance::
meta_base_class::
@@ -92,9 +93,10 @@
* of a base class when given a meta_inheritance
* specialization for this base class.
*/
- template <class meta_inheritance>
+ template <class MetaInheritance>
struct get_base_class_virtual_layout
{
+ typedef MetaInheritance meta_inheritance;
typedef typename
meta_inheritance::
meta_base_class::
@@ -107,9 +109,10 @@
* of a base class when given a meta_inheritance
* specialization for this base class.
*/
- template <class meta_inheritance>
+ template <class MetaInheritance>
struct get_base_class_layout
{
+ typedef MetaInheritance meta_inheritance;
typedef typename
meta_inheritance::
meta_base_class::
@@ -173,9 +176,10 @@
* attrbute types of a base class when
* given a meta_inheritance<> specialization
*/
- template <class meta_inheritance>
+ template <class MetaInheritance>
struct get_base_class_attrib_type_list
{
+ typedef MetaInheritance meta_inheritance;
typedef typename meta_inheritance::
meta_base_class::
attributes::
@@ -217,9 +221,12 @@
/** This template gets the list of the owner classes
* for the inherited attributes.
*/
- template <class current_list, class meta_inheritance>
+ template <class CurrentList, class MetaInheritance>
struct get_base_class_attrib_owner_and_offs
{
+ typedef CurrentList current_list;
+ typedef MetaInheritance meta_inheritance;
+
typedef typename meta_inheritance::
meta_base_class meta_base_class;
@@ -328,9 +335,9 @@
/** This function is used to get the member attributes
* from the base classes.
*/
- template <class a_class, int I>
+ template <class Class, int I>
static typename result_of_get<I>::type
- get(a_class context, mpl::int_<I> pos, mpl::bool_<true>)
+ get(Class context, mpl::int_<I> pos, mpl::bool_<true>)
{
typedef typename inherited_attrib_meta_class_and_pos<I>
::meta_class meta_class;
@@ -340,9 +347,9 @@
return meta_class::attributes::get(context, new_pos_type());
}
- template <class a_class, int I>
+ template <class Class, int I>
static typename result_of_get<I>::type
- get(a_class context, mpl::int_<I> pos, mpl::bool_<false>)
+ get(Class context, mpl::int_<I> pos, mpl::bool_<false>)
{
typedef typename own_attrib_meta_class_and_pos<I>
::position new_pos_type;
@@ -353,9 +360,9 @@
/** This function is used to query the member attributes
* from the base classes.
*/
- template <class a_class, int I, typename dest_type>
- static dest_type&
- query(a_class context, mpl::int_<I> pos, dest_type& dest, mpl::bool_<true>)
+ template <class Class, int I, typename DestType>
+ static DestType&
+ query(Class context, mpl::int_<I> pos, DestType& dest, mpl::bool_<true>)
{
typedef typename inherited_attrib_meta_class_and_pos<I>
::meta_class meta_class;
@@ -366,9 +373,9 @@
}
- template <class a_class, int I, typename dest_type>
- static dest_type&
- query(a_class context, mpl::int_<I> pos, dest_type& dest, mpl::bool_<false>)
+ template <class Class, int I, typename DestType>
+ static DestType&
+ query(Class context, mpl::int_<I> pos, DestType& dest, mpl::bool_<false>)
{
typedef typename own_attrib_meta_class_and_pos<I>
::position new_pos_type;
@@ -379,9 +386,9 @@
/** This function is used to query the member attributes
* from the base classes.
*/
- template <class a_class, int I, typename value_type>
+ template <class Class, int I, typename ValueType>
static void
- set(a_class& context, mpl::int_<I> pos, value_type value, mpl::bool_<true>)
+ set(Class& context, mpl::int_<I> pos, ValueType value, mpl::bool_<true>)
{
typedef typename inherited_attrib_meta_class_and_pos<I>
::meta_class meta_class;
@@ -391,9 +398,9 @@
meta_class::attributes::set(context, new_pos_type(), value);
}
- template <class a_class, int I, typename value_type>
+ template <class Class, int I, typename ValueType>
static void
- set(a_class& context, mpl::int_<I> pos, value_type value, mpl::bool_<false>)
+ set(Class& context, mpl::int_<I> pos, ValueType value, mpl::bool_<false>)
{
typedef typename own_attrib_meta_class_and_pos<I>
::position new_pos_type;
@@ -437,9 +444,9 @@
/** Gets the value of the I-th member (including
* the inherited ones)
*/
- template <class a_class, int I>
+ template <class Class, int I>
static typename detail::template result_of_get<I>::type
- get(a_class context, mpl::int_<I> pos)
+ get(Class context, mpl::int_<I> pos)
{
typedef typename mpl::less<
mpl::int_<I>,
@@ -452,9 +459,9 @@
/** Queries the value of the I-th member (including
* the inherited ones)
*/
- template <class a_class, int I, typename dest_type>
- static dest_type&
- query(a_class context, mpl::int_<I> pos, dest_type& dest)
+ template <class Class, int I, typename DestType>
+ static DestType&
+ query(Class context, mpl::int_<I> pos, DestType& dest)
{
typedef typename mpl::less<
mpl::int_<I>,
@@ -467,9 +474,9 @@
/** Sets the value of the I-th member (including
* the inherited ones)
*/
- template <class a_class, int I, typename value_type>
+ template <class Class, int I, typename ValueType>
static void
- set(a_class& context, mpl::int_<I> pos, value_type value)
+ set(Class& context, mpl::int_<I> pos, ValueType value)
{
typedef typename mpl::less<
mpl::int_<I>,
@@ -485,25 +492,25 @@
* in the algorithms.
*/
template <
- class _reflected_type,
- class _variant_tag,
- class _meta_attributes,
- class _attrib_pos
+ class ReflectedType,
+ class VariantTag,
+ class MetaAttributes,
+ class AttribPos
>
struct meta_class_attribute
{
// the meta-class for the class to which
// the attribute belongs
- typedef ::boost::mirror::meta_class<_reflected_type, _variant_tag>
+ typedef ::boost::mirror::meta_class<ReflectedType, VariantTag>
meta_class;
// the meta-attributes list (own/all)
// into which the attribute belongs
// in this context
- typedef _meta_attributes meta_attributes;
+ typedef MetaAttributes meta_attributes;
// the position of the meta-attribute in the context
- typedef _attrib_pos position;
+ typedef AttribPos position;
// the type of the attribute
typedef typename mpl::at<
@@ -533,8 +540,8 @@
}
// value query
- template <typename dest_type>
- static dest_type& query(const reflected_class& context, dest_type& dest)
+ template <typename DestType>
+ static DestType& query(const reflected_class& context, DestType& dest)
{
return meta_attributes::query(context, position(), dest);
}
Modified: sandbox/mirror/boost/mirror/meta_class.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_class.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_class.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -39,18 +39,17 @@
/** Meta class - specializes the meta_type for classes
*/
template <
- class reflected_class,
- class variant_tag
+ class Class,
+ class VariantTag
>
-struct meta_class : public meta_type<reflected_class>
+struct meta_class : public meta_type<Class>
{
-
/** The base classes of a class.
* The member base_classes::list is a mpl::vector of
* meta_inheritance<> specializations, one for every
* base class.
*/
- typedef meta_base_classes<reflected_class, variant_tag> base_classes;
+ typedef meta_base_classes<Class, VariantTag> base_classes;
/** The member attributes of the class (not including the inherited
* member attribs.
@@ -66,12 +65,12 @@
* 0 <= I < N; N = $mpl::size<attributes::type_list>::value
*
*/
- typedef meta_class_attributes<reflected_class, variant_tag>
+ typedef meta_class_attributes<Class, VariantTag>
attributes;
/** Same as attributes but containing also the inherited attributes
*/
- typedef detail::meta_class_all_attributes<reflected_class, variant_tag >
+ typedef detail::meta_class_all_attributes<Class, VariantTag >
all_attributes;
};
Modified: sandbox/mirror/boost/mirror/meta_classes/boost_tuple.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_classes/boost_tuple.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_classes/boost_tuple.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -51,14 +51,14 @@
// member attrib value get
template <int I>
static typename att_val_pass<I>::type
- get(const the_class& a_tuple, mpl::int_<I>)
+ 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 the_class& a_tuple, mpl::int_<I>, dest_type& dest)
+ 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;
@@ -66,14 +66,14 @@
// member attrib value set
template <int I>
- static void set(the_class& a_tuple, mpl::int_<I>, typename att_val_pass<I>::type val)
+ 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 the_class& a_tuple, mpl::int_<I>, typename att_val_pass<I>::type val)
+ static void set(const Class& a_tuple, mpl::int_<I>, typename att_val_pass<I>::type val)
{
}
//
Modified: sandbox/mirror/boost/mirror/meta_data_fwd.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_data_fwd.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_data_fwd.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -15,7 +15,7 @@
/** Meta-namespace forward template declaration
*/
-template<class namespace_alias>
+template<class NamespaceAlias>
struct meta_namespace;
/** Macro that expands into the meta_namespace for the
@@ -28,7 +28,7 @@
/** Meta-type forward template declaration
*/
-template <class base_type>
+template <class Type>
struct meta_type;
@@ -71,8 +71,8 @@
/** Meta-class template forward declaration
*/
template <
- class a_class,
- class variant_tag = detail::default_meta_class_variant
+ class Class,
+ class VariantTag = detail::default_meta_class_variant
>
struct meta_class;
Modified: sandbox/mirror/boost/mirror/meta_inheritance.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_inheritance.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_inheritance.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -27,88 +27,88 @@
* access specifiers and base class of a meta_class
*/
template <
- class the_base_class,
- typename access_spec,
- typename inheritance_spec
+ class BaseClass,
+ typename AccessSpec,
+ typename InheritanceSpec
> struct meta_inheritance_defs
{
- typedef inheritance_spec inheritance_specifier;
- typedef access_spec access_specifier;
- typedef the_base_class base_class;
- typedef BOOST_MIRROR_REFLECT_CLASS(the_base_class) meta_base_class;
+ typedef InheritanceSpec inheritance_specifier;
+ typedef AccessSpec access_specifier;
+ typedef BaseClass base_class;
+ typedef BOOST_MIRROR_REFLECT_CLASS(BaseClass) meta_base_class;
};
/** This template stores the inheritance type and access specifier
* of a base class for a derived class
*/
template <
- class the_base_class,
- typename access_spec,
- typename inheritance_spec
+ class BaseClass,
+ typename AccessSpec,
+ typename InheritanceSpec
> struct meta_inheritance_spec;
-template <class the_base_class>
+template <class BaseClass>
struct meta_inheritance_spec<
- the_base_class,
+ BaseClass,
private_,
virtual_base_
> : meta_inheritance_defs<
- the_base_class,
+ BaseClass,
private_,
virtual_base_
> { };
-template <class the_base_class>
+template <class BaseClass>
struct meta_inheritance_spec<
- the_base_class,
+ BaseClass,
protected_,
virtual_base_
> : meta_inheritance_defs<
- the_base_class,
+ BaseClass,
protected_,
virtual_base_
> { };
-template <class the_base_class>
+template <class BaseClass>
struct meta_inheritance_spec<
- the_base_class,
+ BaseClass,
public_,
virtual_base_
> : meta_inheritance_defs<
- the_base_class,
+ BaseClass,
public_,
virtual_base_
> { };
-template <class the_base_class>
+template <class BaseClass>
struct meta_inheritance_spec<
- the_base_class,
+ BaseClass,
private_,
nonvirtual_base_
> : meta_inheritance_defs<
- the_base_class,
+ BaseClass,
private_,
nonvirtual_base_
> { };
-template <class the_base_class>
+template <class BaseClass>
struct meta_inheritance_spec<
- the_base_class,
+ BaseClass,
protected_,
nonvirtual_base_
> : meta_inheritance_defs<
- the_base_class,
+ BaseClass,
protected_,
nonvirtual_base_
> { };
-template <class the_base_class>
+template <class BaseClass>
struct meta_inheritance_spec<
- the_base_class,
+ BaseClass,
public_,
nonvirtual_base_
> : meta_inheritance_defs<
- the_base_class,
+ BaseClass,
public_,
nonvirtual_base_
> { };
@@ -117,26 +117,26 @@
* of a base class for a derived class
*/
template <
- class base_class_position,
- class the_base_class,
- typename access_spec,
- typename inheritance_spec = nonvirtual_base_
+ class Position,
+ class BaseClass,
+ typename AccessSpec,
+ typename InheritanceSpec = nonvirtual_base_
>
struct meta_inheritance
: meta_inheritance_spec<
- the_base_class,
- access_spec,
- inheritance_spec
+ BaseClass,
+ AccessSpec,
+ InheritanceSpec
>
{
- typedef base_class_position position;
+ typedef Position position;
};
/** Default (empty) list of base classes of a meta_class
*/
template <
- class reflected_class,
- class variant_tag = detail::default_meta_class_variant
+ class Class,
+ class VariantTag = detail::default_meta_class_variant
>
struct meta_base_classes
{
Modified: sandbox/mirror/boost/mirror/meta_type.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_type.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_type.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -32,7 +32,7 @@
namespace detail {
-template <class type_identifier, typename base_type>
+template <class TypeIdentifier, typename Type>
struct typedefd_type_selector { };
} // namespace detail
@@ -42,10 +42,10 @@
#define BOOST_MIRROR_TYPEDEFD_SELECTOR(IDENTIFIER, BASE_TYPE)\
::boost::mirror::detail::typedefd_type_selector< ::boost::mirror::typedefs::IDENTIFIER, BASE_TYPE >
-template <class type_identifier, typename base_type>
+template <class TypeIdentifier, typename Type>
struct meta_type< ::boost::mirror::detail::typedefd_type_selector<
- type_identifier, base_type
-> > : meta_type<base_type>{ };
+ TypeIdentifier, Type
+> > : meta_type<Type>{ };
/** Helper macro that declared the full_name-related stuff
*/
@@ -189,95 +189,95 @@
/** Meta-types for pointers
*/
-template <class pointee_type>
-struct meta_type<pointee_type*> : detail::static_pointer_type_name<
- meta_type<pointee_type>
+template <class PointeeType>
+struct meta_type<PointeeType*> : detail::static_pointer_type_name<
+ meta_type<PointeeType>
>
{
- typedef typename meta_type<pointee_type>::scope scope;
- typedef pointee_type* reflected_type;
+ typedef typename meta_type<PointeeType>::scope scope;
+ typedef PointeeType* reflected_type;
};
/** Meta-types for arrays
*/
-template <class element_type, size_t size>
-struct meta_type<const element_type[size]> : detail::static_array_type_name<
- meta_type<const element_type>, size
+template <class ElementType, size_t Size>
+struct meta_type<const ElementType[Size]> : detail::static_array_type_name<
+ meta_type<const ElementType>, Size
>
{
- typedef typename meta_type<element_type>::scope scope;
- typedef element_type reflected_type[size];
+ typedef typename meta_type<ElementType>::scope scope;
+ typedef ElementType reflected_type[Size];
};
-template <class element_type, size_t size>
-struct meta_type<element_type[size]> : detail::static_array_type_name<
- meta_type<element_type>, size
+template <class ElementType, size_t Size>
+struct meta_type<ElementType[Size]> : detail::static_array_type_name<
+ meta_type<ElementType>, Size
>
{
- typedef typename meta_type<element_type>::scope scope;
- typedef element_type reflected_type[size];
+ typedef typename meta_type<ElementType>::scope scope;
+ typedef ElementType reflected_type[Size];
};
-template <class element_type>
-struct meta_type<const element_type[]> : detail::static_array_type_name<
- meta_type<const element_type>, -1
+template <class ElementType>
+struct meta_type<const ElementType[]> : detail::static_array_type_name<
+ meta_type<const ElementType>, -1
>
{
- typedef typename meta_type<element_type>::scope scope;
- typedef element_type const reflected_type[];
+ typedef typename meta_type<ElementType>::scope scope;
+ typedef ElementType const reflected_type[];
};
-template <class element_type>
-struct meta_type<element_type[]> : detail::static_array_type_name<
- meta_type<element_type>, -1
+template <class ElementType>
+struct meta_type<ElementType[]> : detail::static_array_type_name<
+ meta_type<ElementType>, -1
>
{
- typedef typename meta_type<element_type>::scope scope;
- typedef element_type reflected_type[];
+ typedef typename meta_type<ElementType>::scope scope;
+ typedef ElementType reflected_type[];
};
/** Meta-types for references
*/
-template <class refered_to_type>
-struct meta_type<refered_to_type&> : detail::static_reference_type_name<
- meta_type<refered_to_type>
+template <class ReferredToType>
+struct meta_type<ReferredToType&> : detail::static_reference_type_name<
+ meta_type<ReferredToType>
>
{
- typedef typename meta_type<refered_to_type>::scope scope;
- typedef refered_to_type& reflected_type;
+ typedef typename meta_type<ReferredToType>::scope scope;
+ typedef ReferredToType& reflected_type;
};
/** Meta-types for const types
*/
-template <class non_const_type>
-struct meta_type<const non_const_type> : detail::static_const_type_name<
- meta_type<non_const_type>
+template <class NonConstType>
+struct meta_type<const NonConstType> : detail::static_const_type_name<
+ meta_type<NonConstType>
>
{
- typedef typename meta_type<non_const_type>::scope scope;
- typedef const non_const_type reflected_type;
+ typedef typename meta_type<NonConstType>::scope scope;
+ typedef const NonConstType reflected_type;
};
/** Meta-types for volatile types
*/
-template <class non_volatile_type>
-struct meta_type<volatile non_volatile_type> : detail::static_volatile_type_name<
- meta_type<non_volatile_type>
+template <class NonVolatileType>
+struct meta_type<volatile NonVolatileType> : detail::static_volatile_type_name<
+ meta_type<NonVolatileType>
>
{
- typedef typename meta_type<non_volatile_type>::scope scope;
- typedef volatile non_volatile_type reflected_type;
+ typedef typename meta_type<NonVolatileType>::scope scope;
+ typedef volatile NonVolatileType reflected_type;
};
/** Meta-types for const volatile types
*/
-template <class non_cv_type>
-struct meta_type<const volatile non_cv_type> : detail::static_cv_type_name<
- meta_type<non_cv_type>
+template <class NonCVType>
+struct meta_type<const volatile NonCVType> : detail::static_cv_type_name<
+ meta_type<NonCVType>
>
{
- typedef typename meta_type<non_cv_type>::scope scope;
- typedef const volatile non_cv_type reflected_type;
+ typedef typename meta_type<NonCVType>::scope scope;
+ typedef const volatile NonCVType reflected_type;
};
Modified: sandbox/mirror/boost/mirror/meta_types/std_pair.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/meta_types/std_pair.hpp (original)
+++ sandbox/mirror/boost/mirror/meta_types/std_pair.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -20,7 +20,7 @@
namespace detail {
-template <typename first_type, typename second_type>
+template <typename FirstType, typename SecondType>
struct meta_type_std_pair
{
@@ -34,15 +34,15 @@
} // namespace detail
-template <typename first_type, typename second_type>
-struct meta_type< ::std::pair<first_type, second_type> >
+template <typename FirstType, typename SecondType>
+struct meta_type< ::std::pair<FirstType, SecondType> >
: detail::static_template_name<
- detail::meta_type_std_pair<first_type, second_type> ,
- mpl::vector2<first_type, second_type>
+ detail::meta_type_std_pair<FirstType, SecondType> ,
+ mpl::vector2<FirstType, SecondType>
>
{
typedef BOOST_MIRROR_REFLECT_NAMESPACE(_std) scope;
- typedef ::std::pair<first_type, second_type> reflected_type;
+ typedef ::std::pair<FirstType, SecondType> reflected_type;
};
Modified: sandbox/mirror/boost/mirror/traits/reflects_class.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/traits/reflects_class.hpp (original)
+++ sandbox/mirror/boost/mirror/traits/reflects_class.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -18,11 +18,11 @@
namespace boost {
namespace mirror {
-template <class meta_object>
+template <class MetaObject>
struct reflects_class : public false_type{ };
-template <class base_class>
-struct reflects_class<meta_class<base_class> > : public true_type{ };
+template <class Class>
+struct reflects_class<meta_class<Class> > : public true_type{ };
} // namespace mirror
Modified: sandbox/mirror/boost/mirror/traits/reflects_global_scope.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/traits/reflects_global_scope.hpp (original)
+++ sandbox/mirror/boost/mirror/traits/reflects_global_scope.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -20,7 +20,7 @@
/** Reflects-global-scope trait template for other meta-namespaces
*/
-template <class meta_namespace>
+template <class MetaNamespace>
struct reflects_global_scope : public false_type{ };
/** Reflects-global-scope trait specialization for global scope meta_namespace
Modified: sandbox/mirror/boost/mirror/traits/reflects_namespace.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/traits/reflects_namespace.hpp (original)
+++ sandbox/mirror/boost/mirror/traits/reflects_namespace.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -18,11 +18,11 @@
namespace boost {
namespace mirror {
-template <class meta_object>
+template <class MetaObject>
struct reflects_namespace : public false_type{ };
-template <class namespace_alias>
-struct reflects_namespace<meta_namespace<namespace_alias> > : public true_type{ };
+template <class NamespaceAlias>
+struct reflects_namespace<meta_namespace<NamespaceAlias> > : public true_type{ };
} // namespace mirror
Modified: sandbox/mirror/boost/mirror/traits/reflects_type.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/traits/reflects_type.hpp (original)
+++ sandbox/mirror/boost/mirror/traits/reflects_type.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -18,15 +18,15 @@
namespace boost {
namespace mirror {
-template <class meta_object>
+template <class MetaObject>
struct reflects_type : public false_type{ };
-template <class base_type>
-struct reflects_type<meta_type<base_type> > : public true_type{ };
+template <class Type>
+struct reflects_type<meta_type<Type> > : public true_type{ };
-template <class base_class>
-struct reflects_type<meta_class<base_class> > : public true_type{ };
+template <class Class>
+struct reflects_type<meta_class<Class> > : public true_type{ };
} // namespace mirror
Modified: sandbox/mirror/boost/mirror/traits/reflects_virtual_inheritance.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/traits/reflects_virtual_inheritance.hpp (original)
+++ sandbox/mirror/boost/mirror/traits/reflects_virtual_inheritance.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -18,33 +18,33 @@
namespace boost {
namespace mirror {
-template <class meta_object>
+template <class MetaObject>
struct reflects_virtual_inheritance;
template <
- class position,
- class base_class,
- typename access_spec
+ class Position,
+ class BaseClass,
+ typename AccessSpec
>
struct reflects_virtual_inheritance<
meta_inheritance<
- position,
- base_class,
- access_spec,
+ Position,
+ BaseClass,
+ AccessSpec,
virtual_base_
>
> : public true_type{ };
template <
- class position,
- class base_class,
- typename access_spec
+ class Position,
+ class BaseClass,
+ typename AccessSpec
>
struct reflects_virtual_inheritance<
meta_inheritance<
- position,
- base_class,
- access_spec,
+ Position,
+ BaseClass,
+ AccessSpec,
nonvirtual_base_
>
> : public false_type{ };
Modified: sandbox/mirror/boost/mirror/traversal.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/traversal.hpp (original)
+++ sandbox/mirror/boost/mirror/traversal.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -17,26 +17,27 @@
namespace mirror {
-template <class meta_class> struct deep_traversal_of;
-template <class meta_class> struct flat_traversal_of;
+template <class MetaClass> struct deep_traversal_of;
+template <class MetaClass> struct flat_traversal_of;
namespace detail {
- template <class meta_class>
+ template <class MetaClass>
struct traversal_utils
{
protected:
- template <class visitor_type>
+ template <class VisitorType>
class attribute_traversal
{
public:
- attribute_traversal(visitor_type _visitor)
+ attribute_traversal(VisitorType _visitor)
: visitor(_visitor){ }
- template <class meta_attribute>
- void operator ()(meta_attribute ma)
+ template <class MetaAttribute>
+ void operator ()(MetaAttribute ma)
{
visitor.enter_attribute(ma);
+ typedef MetaAttribute meta_attribute;
typedef typename meta_attribute::type attrib_type;
deep_traversal_of<
BOOST_MIRROR_REFLECT_CLASS(attrib_type)
@@ -44,53 +45,55 @@
visitor.leave_attribute(ma);
}
private:
- visitor_type visitor;
+ VisitorType visitor;
};
- template <class visitor_type>
- static inline attribute_traversal<visitor_type>
- show_attribs_to(visitor_type visitor)
+ template <class VisitorType>
+ static inline attribute_traversal<VisitorType>
+ show_attribs_to(VisitorType visitor)
{
- return attribute_traversal<visitor_type>(visitor);
+ return attribute_traversal<VisitorType>(visitor);
}
- template <class visitor_type>
+ template <class VisitorType>
class base_class_traversal
{
public:
- base_class_traversal(visitor_type _visitor)
+ base_class_traversal(VisitorType _visitor)
: visitor(_visitor){ }
- template <class meta_inheritance>
- void operator ()(meta_inheritance mbc)
+ template <class MetaInheritance>
+ void operator ()(MetaInheritance mbc)
{
visitor.enter_base_class(mbc);
+ typedef MetaInheritance meta_inheritance;
typedef typename meta_inheritance::meta_base_class
meta_base_class;
deep_traversal_of<meta_base_class>::accept(visitor);
visitor.leave_base_class(mbc);
}
private:
- visitor_type visitor;
+ VisitorType visitor;
};
- template <class visitor_type>
- static inline base_class_traversal<visitor_type>
- show_bases_to(visitor_type visitor)
+ template <class VisitorType>
+ static inline base_class_traversal<VisitorType>
+ show_bases_to(VisitorType visitor)
{
- return base_class_traversal<visitor_type>(visitor);
+ return base_class_traversal<VisitorType>(visitor);
}
};
} // namespace detail
-template <class meta_class>
-struct deep_traversal_of : detail::traversal_utils<meta_class>
+template <class MetaClass>
+struct deep_traversal_of : detail::traversal_utils<MetaClass>
{
- template <class visitor_type>
- static void accept(visitor_type visitor)
+ template <class VisitorType>
+ static void accept(VisitorType visitor)
{
+ typedef MetaClass meta_class;
meta_class mc;
visitor.enter_type(mc);
for_each<typename meta_class::base_classes>(show_bases_to(visitor));
@@ -99,12 +102,13 @@
}
};
-template <class meta_class>
-struct flat_traversal_of : detail::traversal_utils<meta_class>
+template <class MetaClass>
+struct flat_traversal_of : detail::traversal_utils<MetaClass>
{
- template <class visitor_type>
- static void accept(visitor_type visitor)
+ template <class VisitorType>
+ static void accept(VisitorType visitor)
{
+ typedef MetaClass meta_class;
meta_class mc;
visitor.enter_type(mc);
for_each<typename meta_class::all_attributes>(show_attribs_to(visitor));
Modified: sandbox/mirror/boost/mirror/utils/name_to_stream/class.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/utils/name_to_stream/class.hpp (original)
+++ sandbox/mirror/boost/mirror/utils/name_to_stream/class.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -21,9 +21,9 @@
/** Specialization for meta-classes
*/
-template <typename base_type>
-struct name_to_stream_helper<meta_class<base_type> > :
-public name_to_stream_helper<meta_type<base_type> > { };
+template <typename Type>
+struct name_to_stream_helper<meta_class<Type> > :
+public name_to_stream_helper<meta_type<Type> > { };
} // namespace mirror
Modified: sandbox/mirror/boost/mirror/utils/name_to_stream/common.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/utils/name_to_stream/common.hpp (original)
+++ sandbox/mirror/boost/mirror/utils/name_to_stream/common.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -15,17 +15,17 @@
/** name_to_stream_helper function object
*/
-template <class meta_object>
+template <class MetaObject>
struct name_to_stream_helper;
/** name_to_stream function object
* Puts the whole name of the meta object into the given stream.
*/
-template <typename meta_object>
-class name_to_stream : public name_to_stream_helper<meta_object>
+template <typename MetaObject>
+class name_to_stream : public name_to_stream_helper<MetaObject>
{
private:
- typedef name_to_stream_helper<meta_object> _helper;
+ typedef name_to_stream_helper<MetaObject> _helper;
bool put_leading_dbl_cln;
public:
// default constructor
@@ -37,8 +37,8 @@
using _helper::put;
//
//! This version of put uses the stored flag put_leading_dbl_cln
- template <class out_stream>
- out_stream& put(out_stream& s) const
+ template <class OutStream>
+ OutStream& put(OutStream& s) const
{
return _helper::put(s, put_leading_dbl_cln);
}
@@ -46,8 +46,8 @@
/** << operator overload for meta-namespaces
*/
-template <class ostream, class meta_object>
-ostream& operator << (ostream& dst, const name_to_stream< meta_object >& mns)
+template <class OutStream, class MetaObject>
+OutStream& operator << (OutStream& dst, const name_to_stream< MetaObject >& mns)
{
return mns.put(dst);
}
Modified: sandbox/mirror/boost/mirror/utils/name_to_stream/namespace.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/utils/name_to_stream/namespace.hpp (original)
+++ sandbox/mirror/boost/mirror/utils/name_to_stream/namespace.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -24,8 +24,8 @@
template <>
struct name_to_stream_helper< BOOST_MIRROR_REFLECT_NAMESPACE(_) >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
return ldng_dbl_cln? s << BOOST_STR_LIT("::") : s;
}
@@ -33,12 +33,12 @@
/** Specialization of name_to_stream_helper for the top level namespaces
*/
-template <class namespace_alias>
-struct name_to_stream_helper<meta_namespace<namespace_alias> >
+template <class NamespaceAlias>
+struct name_to_stream_helper<meta_namespace<NamespaceAlias> >
{
- typedef meta_namespace<namespace_alias> meta_ns;
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ typedef meta_namespace<NamespaceAlias> meta_ns;
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
typedef typename meta_ns::parent parent_ns;
// let the printer print out the base name of the parent namespace
Modified: sandbox/mirror/boost/mirror/utils/name_to_stream/type.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/utils/name_to_stream/type.hpp (original)
+++ sandbox/mirror/boost/mirror/utils/name_to_stream/type.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -20,112 +20,112 @@
/** Specialization for meta-types
*/
-template <typename base_type>
-struct name_to_stream_helper<meta_type<base_type> >
+template <typename Type>
+struct name_to_stream_helper<meta_type<Type> >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
- if(!reflects_global_scope<typename meta_type<base_type>::scope>::value)
+ if(!reflects_global_scope<typename meta_type<Type>::scope>::value)
name_to_stream<
- typename meta_type<base_type>::scope
+ typename meta_type<Type>::scope
>::put(s, ldng_dbl_cln) << BOOST_STR_LIT("::");
else if(ldng_dbl_cln) s << BOOST_STR_LIT("::");
- return s << meta_type<base_type>::base_name();
+ return s << meta_type<Type>::base_name();
}
};
/** Specialization for meta-types for pointers
*/
-template <typename pointee_type>
-struct name_to_stream_helper<meta_type<pointee_type*> >
+template <typename PointeeType>
+struct name_to_stream_helper<meta_type<PointeeType*> >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
- return name_to_stream_helper<meta_type<pointee_type> >::put(s,ldng_dbl_cln) << BOOST_STR_LIT("*");
+ return name_to_stream_helper<meta_type<PointeeType> >::put(s,ldng_dbl_cln) << BOOST_STR_LIT("*");
}
};
/** Specialization for meta-types for non-cv element arrays
*/
-template <typename element_type, size_t size>
-struct name_to_stream_helper<meta_type<element_type[size]> >
+template <typename ElementType, size_t Size>
+struct name_to_stream_helper<meta_type<ElementType[Size]> >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
- return name_to_stream_helper<meta_type<element_type> >::put(s,ldng_dbl_cln) <<
+ return name_to_stream_helper<meta_type<ElementType> >::put(s,ldng_dbl_cln) <<
BOOST_STR_LIT("[") <<
- size <<
+ Size <<
BOOST_STR_LIT("]");
}
};
/** Specialization for meta-types for const element arrays
*/
-template <typename element_type, size_t size>
-struct name_to_stream_helper<meta_type<const element_type[size]> >
+template <typename ElementType, size_t Size>
+struct name_to_stream_helper<meta_type<const ElementType[Size]> >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
s << BOOST_STR_LIT("const ");
return name_to_stream_helper<
- meta_type<element_type[size]>
+ meta_type<ElementType[Size]>
>::put(s, ldng_dbl_cln);
}
};
/** Specialization for meta-types for references
*/
-template <typename refered_to_type>
-struct name_to_stream_helper<meta_type<refered_to_type&> >
+template <typename ReferredToType>
+struct name_to_stream_helper<meta_type<ReferredToType&> >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
- return name_to_stream_helper<meta_type<refered_to_type> >::put(s,ldng_dbl_cln) << BOOST_STR_LIT("&");
+ return name_to_stream_helper<meta_type<ReferredToType> >::put(s,ldng_dbl_cln) << BOOST_STR_LIT("&");
}
};
/** Specialization for meta-types for const types
*/
-template <typename non_const_type>
-struct name_to_stream_helper<meta_type<const non_const_type> >
+template <typename NonConstType>
+struct name_to_stream_helper<meta_type<const NonConstType> >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
s << BOOST_STR_LIT("const ");
- return name_to_stream_helper<meta_type<non_const_type> >::put(s,ldng_dbl_cln);
+ return name_to_stream_helper<meta_type<NonConstType> >::put(s,ldng_dbl_cln);
}
};
/** Specialization for meta-types for volatile types
*/
-template <typename non_volatile_type>
-struct name_to_stream_helper<meta_type<volatile non_volatile_type> >
+template <typename NonVolatileType>
+struct name_to_stream_helper<meta_type<volatile NonVolatileType> >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
s << BOOST_STR_LIT("volatile ");
- return name_to_stream_helper<meta_type<non_volatile_type> >::put(s,ldng_dbl_cln);
+ return name_to_stream_helper<meta_type<NonVolatileType> >::put(s,ldng_dbl_cln);
}
};
/** Specialization for meta-types for const volatile types
*/
-template <typename non_cv_type>
-struct name_to_stream_helper<meta_type<const volatile non_cv_type> >
+template <typename NonCVType>
+struct name_to_stream_helper<meta_type<const volatile NonCVType> >
{
- template <class out_stream>
- static out_stream& put(out_stream& s, bool ldng_dbl_cln)
+ template <class OutStream>
+ static OutStream& put(OutStream& s, bool ldng_dbl_cln)
{
s << BOOST_STR_LIT("const volatile ");
- return name_to_stream_helper<meta_type<non_cv_type> >::put(s,ldng_dbl_cln);
+ return name_to_stream_helper<meta_type<NonCVType> >::put(s,ldng_dbl_cln);
}
};
Modified: sandbox/mirror/boost/mirror/visitors/fallback.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/visitors/fallback.hpp (original)
+++ sandbox/mirror/boost/mirror/visitors/fallback.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -20,11 +20,11 @@
struct fallback_visitor
{
- template <class meta_class>
- void enter_type(meta_class){ }
+ template <class MetaClass>
+ void enter_type(MetaClass){ }
- template <class meta_class>
- void leave_type(meta_class){ }
+ template <class MetaClass>
+ void leave_type(MetaClass){ }
};
} // namespace mirror
Modified: sandbox/mirror/boost/mirror/visitors/sample.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/visitors/sample.hpp (original)
+++ sandbox/mirror/boost/mirror/visitors/sample.hpp 2008-05-02 14:50:12 EDT (Fri, 02 May 2008)
@@ -29,8 +29,8 @@
sample_visitor(void):indent(0){ }
// enter a class/type
- template <class meta_class>
- void enter_type(meta_class)
+ template <class MetaClass>
+ void enter_type(MetaClass)
{
using namespace ::std;
using namespace ::boost;
@@ -38,12 +38,12 @@
++indent;
bcout <<
"<type name='" <<
- meta_class::base_name();
- if(!reflects_global_scope<typename meta_class::scope>::value)
+ MetaClass::base_name();
+ if(!reflects_global_scope<typename MetaClass::scope>::value)
{
bcout <<
"' scope='" <<
- meta_class::scope::full_name();
+ MetaClass::scope::full_name();
}
bcout <<
"'>" <<
@@ -51,8 +51,8 @@
}
// leave the class/type
- template <class meta_class>
- void leave_type(meta_class)
+ template <class MetaClass>
+ void leave_type(MetaClass)
{
using namespace ::std;
using namespace ::boost;
@@ -79,8 +79,8 @@
}
// leave base class
- template <class meta_class>
- void leave_base_class(meta_class)
+ template <class MetaClass>
+ void leave_base_class(MetaClass)
{
using namespace ::std;
using namespace ::boost;
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