|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68796 - in sandbox/tti: boost/tti boost/tti/detail libs/tti/doc libs/tti/test
From: eldiener_at_[hidden]
Date: 2011-02-11 21:26:42
Author: eldiener
Date: 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
New Revision: 68796
URL: http://svn.boost.org/trac/boost/changeset/68796
Log:
Change to boost::tti and BOOST_TTI
Added:
sandbox/tti/libs/tti/doc/tti_acknowledgements.qbk
- copied, changed from r68720, /sandbox/tti/libs/tti/doc/TTIAcknowledgements.qbk
sandbox/tti/libs/tti/doc/tti_detail.qbk
- copied, changed from r68768, /sandbox/tti/libs/tti/doc/TTIDetail.qbk
sandbox/tti/libs/tti/doc/tti_functionality.qbk
- copied, changed from r68610, /sandbox/tti/libs/tti/doc/TTIFunctionality.qbk
sandbox/tti/libs/tti/doc/tti_history.qbk
- copied, changed from r68768, /sandbox/tti/libs/tti/doc/TTIHistory.qbk
sandbox/tti/libs/tti/doc/tti_index.qbk
- copied unchanged from r68448, /sandbox/tti/libs/tti/doc/TTIIndex.qbk
sandbox/tti/libs/tti/doc/tti_introduction.qbk
- copied, changed from r68768, /sandbox/tti/libs/tti/doc/TTIIntroduction.qbk
sandbox/tti/libs/tti/doc/tti_meta_classes.qbk
- copied, changed from r68757, /sandbox/tti/libs/tti/doc/TTIMetaClasses.qbk
sandbox/tti/libs/tti/doc/tti_metafunctions.qbk
- copied, changed from r68768, /sandbox/tti/libs/tti/doc/TTIMetafunctions.qbk
sandbox/tti/libs/tti/doc/tti_nested_type.qbk
- copied, changed from r68757, /sandbox/tti/libs/tti/doc/TTINestedType.qbk
sandbox/tti/libs/tti/doc/tti_reference.qbk
- copied unchanged from r67467, /sandbox/tti/libs/tti/doc/TTIReference.qbk
sandbox/tti/libs/tti/doc/tti_terminology.qbk
- copied unchanged from r67521, /sandbox/tti/libs/tti/doc/TTITerminology.qbk
sandbox/tti/libs/tti/doc/tti_tests.qbk
- copied, changed from r68448, /sandbox/tti/libs/tti/doc/TTITests.qbk
sandbox/tti/libs/tti/doc/tti_to_do.qbk
- copied unchanged from r68669, /sandbox/tti/libs/tti/doc/TTIToDo.qbk
sandbox/tti/libs/tti/doc/tti_using_mm.qbk
- copied, changed from r68768, /sandbox/tti/libs/tti/doc/TTIUsingMM.qbk
sandbox/tti/libs/tti/doc/tti_using_ntm.qbk
- copied, changed from r68768, /sandbox/tti/libs/tti/doc/TTIUsingNTM.qbk
sandbox/tti/libs/tti/doc/tti_why.qbk
- copied unchanged from r67521, /sandbox/tti/libs/tti/doc/TTIWhy.qbk
sandbox/tti/libs/tti/doc/type_traits_introspection.qbk
- copied, changed from r68768, /sandbox/tti/libs/tti/doc/TypeTraitsIntrospection.qbk
Removed:
sandbox/tti/libs/tti/doc/TTIAcknowledgements.qbk
sandbox/tti/libs/tti/doc/TTIDetail.qbk
sandbox/tti/libs/tti/doc/TTIFunctionality.qbk
sandbox/tti/libs/tti/doc/TTIHistory.qbk
sandbox/tti/libs/tti/doc/TTIIndex.qbk
sandbox/tti/libs/tti/doc/TTIIntroduction.qbk
sandbox/tti/libs/tti/doc/TTIMetaClasses.qbk
sandbox/tti/libs/tti/doc/TTIMetafunctions.qbk
sandbox/tti/libs/tti/doc/TTINestedType.qbk
sandbox/tti/libs/tti/doc/TTIReference.qbk
sandbox/tti/libs/tti/doc/TTITerminology.qbk
sandbox/tti/libs/tti/doc/TTITests.qbk
sandbox/tti/libs/tti/doc/TTIToDo.qbk
sandbox/tti/libs/tti/doc/TTIUsingMM.qbk
sandbox/tti/libs/tti/doc/TTIUsingNTM.qbk
sandbox/tti/libs/tti/doc/TTIWhy.qbk
sandbox/tti/libs/tti/doc/TypeTraitsIntrospection.qbk
Text files modified:
sandbox/tti/boost/tti/detail/dtti.hpp | 89 +-
sandbox/tti/boost/tti/mf_template_params.hpp | 53
sandbox/tti/boost/tti/tti.hpp | 1127 +++++++++++++++++++++------------------
sandbox/tti/boost/tti/tti_vm.hpp | 70 +-
sandbox/tti/libs/tti/doc/Jamfile.v2 | 2
sandbox/tti/libs/tti/doc/tti_acknowledgements.qbk | 2
sandbox/tti/libs/tti/doc/tti_detail.qbk | 62 +-
sandbox/tti/libs/tti/doc/tti_functionality.qbk | 12
sandbox/tti/libs/tti/doc/tti_history.qbk | 29
sandbox/tti/libs/tti/doc/tti_introduction.qbk | 6
sandbox/tti/libs/tti/doc/tti_meta_classes.qbk | 110 +-
sandbox/tti/libs/tti/doc/tti_metafunctions.qbk | 98 +-
sandbox/tti/libs/tti/doc/tti_nested_type.qbk | 62 +-
sandbox/tti/libs/tti/doc/tti_tests.qbk | 4
sandbox/tti/libs/tti/doc/tti_using_mm.qbk | 68 +-
sandbox/tti/libs/tti/doc/tti_using_ntm.qbk | 78 +-
sandbox/tti/libs/tti/doc/type_traits_introspection.qbk | 32
sandbox/tti/libs/tti/test/test_has_member.cpp | 34
sandbox/tti/libs/tti/test/test_has_member.hpp | 28
sandbox/tti/libs/tti/test/test_has_member_compile.cpp | 34
sandbox/tti/libs/tti/test/test_has_member_data.cpp | 20
sandbox/tti/libs/tti/test/test_has_member_data.hpp | 16
sandbox/tti/libs/tti/test/test_has_member_data_compile.cpp | 20
sandbox/tti/libs/tti/test/test_has_member_data_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_data_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_data_fail3.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_fail3.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_fail4.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_fail5.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_function.cpp | 14
sandbox/tti/libs/tti/test/test_has_member_function.hpp | 12
sandbox/tti/libs/tti/test/test_has_member_function_compile.cpp | 14
sandbox/tti/libs/tti/test/test_has_member_function_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_member_function_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_static_member.cpp | 14
sandbox/tti/libs/tti/test/test_has_static_member.hpp | 12
sandbox/tti/libs/tti/test/test_has_static_member_compile.cpp | 14
sandbox/tti/libs/tti/test/test_has_static_member_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_static_member_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_static_member_fail3.cpp | 2
sandbox/tti/libs/tti/test/test_has_static_member_fail4.cpp | 2
sandbox/tti/libs/tti/test/test_has_static_member_fail5.cpp | 2
sandbox/tti/libs/tti/test/test_has_static_member_function.cpp | 10
sandbox/tti/libs/tti/test/test_has_static_member_function.hpp | 8
sandbox/tti/libs/tti/test/test_has_static_member_function_compile.cpp | 10
sandbox/tti/libs/tti/test/test_has_static_member_function_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_static_member_function_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_template.cpp | 14
sandbox/tti/libs/tti/test/test_has_template.hpp | 16
sandbox/tti/libs/tti/test/test_has_template_check_params.cpp | 16
sandbox/tti/libs/tti/test/test_has_template_check_params.hpp | 20
sandbox/tti/libs/tti/test/test_has_template_check_params_compile.cpp | 16
sandbox/tti/libs/tti/test/test_has_template_check_params_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_template_check_params_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_template_check_params_fail3.cpp | 2
sandbox/tti/libs/tti/test/test_has_template_check_params_fail4.cpp | 2
sandbox/tti/libs/tti/test/test_has_template_compile.cpp | 14
sandbox/tti/libs/tti/test/test_has_template_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_template_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_template_fail3.cpp | 2
sandbox/tti/libs/tti/test/test_has_template_fail4.cpp | 2
sandbox/tti/libs/tti/test/test_has_type.cpp | 18
sandbox/tti/libs/tti/test/test_has_type.hpp | 18
sandbox/tti/libs/tti/test/test_has_type_check_typedef.cpp | 18
sandbox/tti/libs/tti/test/test_has_type_check_typedef.hpp | 18
sandbox/tti/libs/tti/test/test_has_type_check_typedef_compile.cpp | 20
sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail3.cpp | 2
sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail4.cpp | 2
sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail5.cpp | 2
sandbox/tti/libs/tti/test/test_has_type_compile.cpp | 20
sandbox/tti/libs/tti/test/test_has_type_fail.cpp | 2
sandbox/tti/libs/tti/test/test_has_type_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_has_type_fail3.cpp | 2
sandbox/tti/libs/tti/test/test_member_type.cpp | 16
sandbox/tti/libs/tti/test/test_member_type.hpp | 16
sandbox/tti/libs/tti/test/test_member_type_compile.cpp | 16
sandbox/tti/libs/tti/test/test_mf_has_member_data.cpp | 84 +-
sandbox/tti/libs/tti/test/test_mf_has_member_data.hpp | 40
sandbox/tti/libs/tti/test/test_mf_has_member_data_compile.cpp | 84 +-
sandbox/tti/libs/tti/test/test_mf_has_member_data_fail.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_member_data_fail2.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_member_data_fail3.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_member_function.cpp | 52
sandbox/tti/libs/tti/test/test_mf_has_member_function.hpp | 26
sandbox/tti/libs/tti/test/test_mf_has_member_function_compile.cpp | 66 +-
sandbox/tti/libs/tti/test/test_mf_has_member_function_fail.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_member_function_fail2.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_member_function_fail3.cpp | 6
sandbox/tti/libs/tti/test/test_mf_has_static_data.cpp | 8
sandbox/tti/libs/tti/test/test_mf_has_static_data.hpp | 8
sandbox/tti/libs/tti/test/test_mf_has_static_data_compile.cpp | 12
sandbox/tti/libs/tti/test/test_mf_has_static_data_fail.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_static_data_fail2.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_static_data_fail3.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_static_function.cpp | 32
sandbox/tti/libs/tti/test/test_mf_has_static_function.hpp | 20
sandbox/tti/libs/tti/test/test_mf_has_static_function_compile.cpp | 40
sandbox/tti/libs/tti/test/test_mf_has_static_function_fail.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_static_function_fail2.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_static_function_fail3.cpp | 8
sandbox/tti/libs/tti/test/test_mf_has_template.cpp | 48
sandbox/tti/libs/tti/test/test_mf_has_template.hpp | 32
sandbox/tti/libs/tti/test/test_mf_has_template_check_params.cpp | 68 +-
sandbox/tti/libs/tti/test/test_mf_has_template_check_params.hpp | 28
sandbox/tti/libs/tti/test/test_mf_has_template_check_params_compile.cpp | 50
sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail.cpp | 10
sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail2.cpp | 8
sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail3.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_template_compile.cpp | 46
sandbox/tti/libs/tti/test/test_mf_has_template_fail.cpp | 6
sandbox/tti/libs/tti/test/test_mf_has_template_fail2.cpp | 6
sandbox/tti/libs/tti/test/test_mf_has_template_fail3.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_template_fail4.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_type.cpp | 84 +-
sandbox/tti/libs/tti/test/test_mf_has_type.hpp | 46
sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef.cpp | 116 ++--
sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef.hpp | 46
sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_compile.cpp | 118 ++--
sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail2.cpp | 6
sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail3.cpp | 6
sandbox/tti/libs/tti/test/test_mf_has_type_compile.cpp | 92 +-
sandbox/tti/libs/tti/test/test_mf_has_type_fail.cpp | 4
sandbox/tti/libs/tti/test/test_mf_has_type_fail2.cpp | 4
sandbox/tti/libs/tti/test/test_mf_member_type.cpp | 116 ++--
sandbox/tti/libs/tti/test/test_mf_member_type.hpp | 32
sandbox/tti/libs/tti/test/test_mf_member_type_compile.cpp | 116 ++--
sandbox/tti/libs/tti/test/test_vm_has_template_check_params.cpp | 16
sandbox/tti/libs/tti/test/test_vm_has_template_check_params.hpp | 20
sandbox/tti/libs/tti/test/test_vm_has_template_check_params_compile.cpp | 16
sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail.cpp | 2
sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail2.cpp | 2
sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail3.cpp | 2
sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail4.cpp | 2
sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params.cpp | 68 +-
sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params.hpp | 32
sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_compile.cpp | 50
sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail.cpp | 10
sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail2.cpp | 8
sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail3.cpp | 4
144 files changed, 2210 insertions(+), 2138 deletions(-)
Modified: sandbox/tti/boost/tti/detail/dtti.hpp
==============================================================================
--- sandbox/tti/boost/tti/detail/dtti.hpp (original)
+++ sandbox/tti/boost/tti/detail/dtti.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -276,7 +276,7 @@
}; \
\
template<class T> \
-struct trait<T,tti::detail::notype,boost::mpl::true_::type> \
+struct trait<T,notype,boost::mpl::true_::type> \
{ \
typedef boost::mpl::true_::type type; \
BOOST_STATIC_CONSTANT(bool,value=type::value); \
@@ -949,54 +949,57 @@
#endif // defined(BOOST_NO_NULLPTR)
-namespace tti
+namespace boost
{
- namespace detail
+ namespace tti
{
- struct notype
+ namespace detail
{
- };
+ struct notype
+ {
+ };
- template <class T>
- struct tself : T
- {
- };
+ template <class T>
+ struct tself : T
+ {
+ };
- template
- <
- class T,
- class R,
- class FS,
- class TAG
- >
- struct ptmf_seq
- {
- typedef typename boost::mpl::push_front<FS,T>::type tfs1;
- typedef typename boost::mpl::push_front<tfs1,R>::type tfs2;
- typedef typename boost::function_types::member_function_pointer<tfs2,TAG>::type type;
- };
-
- template
- <
- class T,
- class R
- >
- struct ptmd
- {
- typedef R T::* type;
- };
+ template
+ <
+ class T,
+ class R,
+ class FS,
+ class TAG
+ >
+ struct ptmf_seq
+ {
+ typedef typename boost::mpl::push_front<FS,T>::type tfs1;
+ typedef typename boost::mpl::push_front<tfs1,R>::type tfs2;
+ typedef typename boost::function_types::member_function_pointer<tfs2,TAG>::type type;
+ };
+
+ template
+ <
+ class T,
+ class R
+ >
+ struct ptmd
+ {
+ typedef R T::* type;
+ };
- template
- <
- class R,
- class FS,
- class TAG
- >
- struct tfunction_seq
- {
- typedef typename boost::mpl::push_front<FS,R>::type ftseq;
- typedef typename boost::function_types::function_type<ftseq,TAG>::type type;
- };
+ template
+ <
+ class R,
+ class FS,
+ class TAG
+ >
+ struct tfunction_seq
+ {
+ typedef typename boost::mpl::push_front<FS,R>::type ftseq;
+ typedef typename boost::function_types::function_type<ftseq,TAG>::type type;
+ };
+ }
}
}
Modified: sandbox/tti/boost/tti/mf_template_params.hpp
==============================================================================
--- sandbox/tti/boost/tti/mf_template_params.hpp (original)
+++ sandbox/tti/boost/tti/mf_template_params.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -15,39 +15,42 @@
/** \file
*/
-namespace tti
+namespace boost
{
+ namespace tti
+ {
-/// A metafunction which checks whether a class template with its parameters exists within an enclosing type.
-/**
+ /// A metafunction which checks whether a class template with its parameters exists within an enclosing type.
+ /**
- This metafunction takes its enclosing type as nullary metafunctions whose typedef 'type' member is the actual type used.
+ This metafunction takes its enclosing type as nullary metafunctions whose typedef 'type' member is the actual type used.
- The metafunction types and return:
+ The metafunction types and return:
- HasTemplateCheckParams = a Boost MPL lambda expression using the metafunction generated from either the TTI_HAS_TEMPLATE_CHECK_PARAMS ( TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS )
- or TTI_VM_HAS_TEMPLATE_CHECK_PARAMS ( TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS ) macros.<br />
- The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_\>'.
- You can also use the metafunction class generated by either the TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS ( TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS ) macro or the TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS ( TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS ) macro.<br />
- T = The enclosing type as a nullary metafunction.
+ HasTemplateCheckParams = a Boost MPL lambda expression using the metafunction generated from either the TTI_HAS_TEMPLATE_CHECK_PARAMS ( TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS )
+ or TTI_VM_HAS_TEMPLATE_CHECK_PARAMS ( TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS ) macros.<br />
+ The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_\>'.
+ You can also use the metafunction class generated by either the TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS ( TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS ) macro or the TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS ( TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS ) macro.<br />
+ T = The enclosing type as a nullary metafunction.
- returns = 'value' is true if the template exists within the enclosing type,
- otherwise 'value' is false.
+ returns = 'value' is true if the template exists within the enclosing type,
+ otherwise 'value' is false.
-*/
- template
- <
- class HasTemplateCheckParams,
- class T
- >
- struct mf_has_template_check_params :
- boost::mpl::apply
+ */
+ template
<
- HasTemplateCheckParams,
- typename T::type
- >::type
- {
- };
+ class HasTemplateCheckParams,
+ class T
+ >
+ struct mf_has_template_check_params :
+ boost::mpl::apply
+ <
+ HasTemplateCheckParams,
+ typename T::type
+ >::type
+ {
+ };
+ }
}
#endif // TT_INTROSPECTION_TEMPLATE_HPP
Modified: sandbox/tti/boost/tti/tti.hpp
==============================================================================
--- sandbox/tti/boost/tti/tti.hpp (original)
+++ sandbox/tti/boost/tti/tti.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -32,7 +32,7 @@
trait = the name of the metafunction within the tti namespace.<br />
name = the name of the inner type.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction types and return:
@@ -43,23 +43,26 @@
otherwise 'value' is false.
*/
-#define TTI_TRAIT_HAS_TYPE(trait,name) \
-namespace tti \
+#define BOOST_TTI_TRAIT_HAS_TYPE(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_TYPE(trait,name) \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_TYPE(trait,name) \
+ } \
+ template<class T,class U = detail::notype> \
+ struct trait : \
+ detail::trait \
+ < \
+ T, \
+ U, \
+ typename detail::mpl::trait<T>::type \
+ > \
+ { \
+ }; \
} \
- template<class T,class U = tti::detail::notype> \
- struct trait : \
- detail::trait \
- < \
- T, \
- U, \
- typename detail::mpl::trait<T>::type \
- > \
- { \
- }; \
} \
/**/
@@ -69,7 +72,7 @@
trait = the name of the metafunction class within the tti namespace.<br />
name = the name of the inner type.
- returns = a metfunction class called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metfunction class called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -80,26 +83,29 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_TRAIT_HAS_TYPE(trait,name) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_HAS_TYPE(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_TYPE(trait,name) \
- } \
- struct trait \
- { \
- template<class T,class U = tti::detail::notype> \
- struct apply : \
- detail::trait \
- < \
- T, \
- U, \
- typename detail::mpl::trait<T>::type \
- > \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_TYPE(trait,name) \
+ } \
+ struct trait \
{ \
+ template<class T,class U = detail::notype> \
+ struct apply : \
+ detail::trait \
+ < \
+ T, \
+ U, \
+ typename detail::mpl::trait<T>::type \
+ > \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -108,7 +114,7 @@
name = the name of the inner type.
- returns = a metafunction called "tti::has_type_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::has_type_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -119,8 +125,8 @@
otherwise 'value' is false.
*/
-#define TTI_HAS_TYPE(name) \
- TTI_TRAIT_HAS_TYPE \
+#define BOOST_TTI_HAS_TYPE(name) \
+ BOOST_TTI_TRAIT_HAS_TYPE \
( \
BOOST_PP_CAT(has_type_,name), \
name \
@@ -132,7 +138,7 @@
name = the name of the inner type.
- returns = a metafunction class called "tti::mtfc_has_type_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_has_type_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -143,8 +149,8 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_HAS_TYPE(name) \
- TTI_MTFC_TRAIT_HAS_TYPE \
+#define BOOST_TTI_MTFC_HAS_TYPE(name) \
+ BOOST_TTI_MTFC_TRAIT_HAS_TYPE \
( \
BOOST_PP_CAT(mtfc_has_type_,name), \
name \
@@ -157,7 +163,7 @@
trait = the name of the metafunction within the tti namespace.<br />
name = the name of the inner type.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction types and return:
@@ -171,24 +177,27 @@
in this library.
*/
-#define TTI_TRAIT_MEMBER_TYPE(trait,name) \
-namespace tti \
+#define BOOST_TTI_TRAIT_MEMBER_TYPE(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_TYPE_MEMBER_TYPE(trait,name) \
- TTI_DETAIL_TRAIT_MEMBER_TYPE(trait,name) \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_TYPE_MEMBER_TYPE(trait,name) \
+ TTI_DETAIL_TRAIT_MEMBER_TYPE(trait,name) \
+ } \
+ template<class T> \
+ struct trait : \
+ boost::mpl::eval_if \
+ < \
+ detail::trait<T>, \
+ detail::member_type::trait<T>, \
+ boost::mpl::identity<detail::notype> \
+ > \
+ { \
+ }; \
} \
- template<class T> \
- struct trait : \
- boost::mpl::eval_if \
- < \
- tti::detail::trait<T>, \
- tti::detail::member_type::trait<T>, \
- boost::mpl::identity<tti::detail::notype> \
- > \
- { \
- }; \
} \
/**/
@@ -198,7 +207,7 @@
trait = the name of the metafunction class within the tti namespace.<br />
name = the name of the inner type.
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -212,27 +221,30 @@
in this library.
*/
-#define TTI_MTFC_TRAIT_MEMBER_TYPE(trait,name) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_MEMBER_TYPE(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_TYPE_MEMBER_TYPE(trait,name) \
- TTI_DETAIL_TRAIT_MEMBER_TYPE(trait,name) \
- } \
- struct trait \
- { \
- template<class T> \
- struct apply : \
- boost::mpl::eval_if \
- < \
- tti::detail::trait<T>, \
- tti::detail::member_type::trait<T>, \
- boost::mpl::identity<tti::detail::notype> \
- > \
+ namespace detail \
{ \
+ TTI_DETAIL_TRAIT_HAS_TYPE_MEMBER_TYPE(trait,name) \
+ TTI_DETAIL_TRAIT_MEMBER_TYPE(trait,name) \
+ } \
+ struct trait \
+ { \
+ template<class T> \
+ struct apply : \
+ boost::mpl::eval_if \
+ < \
+ detail::trait<T>, \
+ detail::member_type::trait<T>, \
+ boost::mpl::identity<detail::notype> \
+ > \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -241,7 +253,7 @@
name = the name of the inner type.
- returns = a metafunction called "tti::member_type_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::member_type_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -255,8 +267,8 @@
in this library.
*/
-#define TTI_MEMBER_TYPE(name) \
- TTI_TRAIT_MEMBER_TYPE \
+#define BOOST_TTI_MEMBER_TYPE(name) \
+ BOOST_TTI_TRAIT_MEMBER_TYPE \
( \
BOOST_PP_CAT(member_type_,name), \
name \
@@ -268,7 +280,7 @@
name = the name of the inner type.
- returns = a metafunction class called "tti::mtfc_member_type_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_member_type_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -282,8 +294,8 @@
in this library.
*/
-#define TTI_MTFC_MEMBER_TYPE(name) \
- TTI_MTFC_TRAIT_MEMBER_TYPE \
+#define BOOST_TTI_MTFC_MEMBER_TYPE(name) \
+ BOOST_TTI_MTFC_TRAIT_MEMBER_TYPE \
( \
BOOST_PP_CAT(mtfc_member_type_,name), \
name \
@@ -296,7 +308,7 @@
trait = the name of the metafunction within the tti namespace.<br />
name = the name of the inner template.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction types and return:
@@ -307,18 +319,21 @@
The template must have all 'class' ( or 'typename' ) parameters types.
*/
-#define TTI_TRAIT_HAS_TEMPLATE(trait,name) \
-namespace tti \
+#define BOOST_TTI_TRAIT_HAS_TEMPLATE(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- BOOST_MPL_HAS_XXX_TEMPLATE_NAMED_DEF(trait, name, false) \
+ namespace detail \
+ { \
+ BOOST_MPL_HAS_XXX_TEMPLATE_NAMED_DEF(trait, name, false) \
+ } \
+ template<class T> \
+ struct trait : \
+ detail::trait<T> \
+ { \
+ }; \
} \
- template<class T> \
- struct trait : \
- tti::detail::trait<T> \
- { \
- }; \
} \
/**/
@@ -328,7 +343,7 @@
trait = the name of the metafunction class within the tti namespace.<br />
name = the name of the inner template.
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -339,21 +354,24 @@
The template must have all 'class' ( or 'typename' ) parameters types.
*/
-#define TTI_MTFC_TRAIT_HAS_TEMPLATE(trait,name) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE(trait,name) \
+namespace boost \
{ \
- namespace detail \
- { \
- BOOST_MPL_HAS_XXX_TEMPLATE_NAMED_DEF(trait, name, false) \
- } \
- struct trait \
+ namespace tti \
{ \
- template<class T> \
- struct apply : \
- tti::detail::trait<T> \
+ namespace detail \
+ { \
+ BOOST_MPL_HAS_XXX_TEMPLATE_NAMED_DEF(trait, name, false) \
+ } \
+ struct trait \
{ \
+ template<class T> \
+ struct apply : \
+ detail::trait<T> \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -362,7 +380,7 @@
name = the name of the inner template.
- returns = a metafunction called "tti::has_template_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::has_template_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -373,8 +391,8 @@
The template must have all 'class' ( or 'typename' ) parameters types.
*/
-#define TTI_HAS_TEMPLATE(name) \
- TTI_TRAIT_HAS_TEMPLATE \
+#define BOOST_TTI_HAS_TEMPLATE(name) \
+ BOOST_TTI_TRAIT_HAS_TEMPLATE \
( \
BOOST_PP_CAT(has_template_,name), \
name \
@@ -386,7 +404,7 @@
name = the name of the inner template.
- returns = a metafunction class called "tti::mtfc_has_template_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_has_template_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -397,8 +415,8 @@
The template must have all 'class' ( or 'typename' ) parameters types.
*/
-#define TTI_MTFC_HAS_TEMPLATE(name) \
- TTI_MTFC_TRAIT_HAS_TEMPLATE \
+#define BOOST_TTI_MTFC_HAS_TEMPLATE(name) \
+ BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE \
( \
BOOST_PP_CAT(mtfc_has_template_,name), \
name \
@@ -414,7 +432,7 @@
Each part of the template parameters separated by a comma ( , )
is put in a separate sequence element.<br />
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction types and return:
@@ -424,18 +442,21 @@
otherwise 'value' is false.
*/
-#define TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
-namespace tti \
+#define BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
+ } \
+ template<class T> \
+ struct trait : \
+ detail::trait<T> \
+ { \
+ }; \
} \
- template<class T> \
- struct trait : \
- detail::trait<T> \
- { \
- }; \
} \
/**/
@@ -448,7 +469,7 @@
Each part of the template parameters separated by a comma ( , )
is put in a separate sequence element.<br />
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -458,21 +479,24 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
+namespace boost \
{ \
- namespace detail \
- { \
- TTI_DETAIL_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
- } \
- struct trait \
+ namespace tti \
{ \
- template<class T> \
- struct apply : \
- detail::trait::apply<T> \
+ namespace detail \
+ { \
+ TTI_DETAIL_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,tpSeq) \
+ } \
+ struct trait \
{ \
+ template<class T> \
+ struct apply : \
+ detail::trait::apply<T> \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -484,7 +508,7 @@
Each part of the template parameters separated by a comma ( , )
is put in a separate sequence element.
- returns = a metafunction called "tti::has_template_check_params_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::has_template_check_params_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -494,8 +518,8 @@
otherwise 'value' is false.
*/
-#define TTI_HAS_TEMPLATE_CHECK_PARAMS(name,tpSeq) \
- TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
+#define BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(name,tpSeq) \
+ BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
( \
BOOST_PP_CAT(has_template_check_params_,name), \
name, \
@@ -511,7 +535,7 @@
Each part of the template parameters separated by a comma ( , )
is put in a separate sequence element.
- returns = a metafunction class called "tti::mtfc_has_template_check_params_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_has_template_check_params_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -521,8 +545,8 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS(name,tpSeq) \
- TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
+#define BOOST_TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS(name,tpSeq) \
+ BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
( \
BOOST_PP_CAT(mtfc_has_template_check_params_,name), \
name, \
@@ -536,7 +560,7 @@
trait = the name of the metafunction within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction types and return:
@@ -546,18 +570,21 @@
otherwise 'value' is false.
*/
-#define TTI_TRAIT_HAS_MEMBER(trait,name) \
-namespace tti \
+#define BOOST_TTI_TRAIT_HAS_MEMBER(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_MEMBER(trait,name) \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_MEMBER(trait,name) \
+ } \
+ template<class T> \
+ struct trait : \
+ detail::trait<T> \
+ { \
+ }; \
} \
- template<class T> \
- struct trait : \
- detail::trait<T> \
- { \
- }; \
} \
/**/
@@ -567,7 +594,7 @@
trait = the name of the metafunction class within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction class's 'apply' metafunction types and return:
@@ -577,21 +604,24 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_TRAIT_HAS_MEMBER(trait,name) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_HAS_MEMBER(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_MEMBER(trait,name) \
- } \
- struct trait \
- { \
- template<class T> \
- struct apply : \
- detail::trait<T> \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_MEMBER(trait,name) \
+ } \
+ struct trait \
{ \
+ template<class T> \
+ struct apply : \
+ detail::trait<T> \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -600,7 +630,7 @@
name = the name of the inner member.
- returns = a metafunction called "tti::has_member_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::has_member_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -610,8 +640,8 @@
otherwise 'value' is false.
*/
-#define TTI_HAS_MEMBER(name) \
- TTI_TRAIT_HAS_MEMBER \
+#define BOOST_TTI_HAS_MEMBER(name) \
+ BOOST_TTI_TRAIT_HAS_MEMBER \
( \
BOOST_PP_CAT(has_member_,name), \
name \
@@ -623,7 +653,7 @@
name = the name of the inner member.
- returns = a metafunction class called "tti::mtfc_has_member_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_has_member_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -633,8 +663,8 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_HAS_MEMBER(name) \
- TTI_MTFC_TRAIT_HAS_MEMBER \
+#define BOOST_TTI_MTFC_HAS_MEMBER(name) \
+ BOOST_TTI_MTFC_TRAIT_HAS_MEMBER \
( \
BOOST_PP_CAT(mtfc_has_member_,name), \
name \
@@ -647,7 +677,7 @@
trait = the name of the metafunction within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction types and return:
@@ -659,18 +689,21 @@
otherwise 'value' is false.
*/
-#define TTI_TRAIT_HAS_MEMBER_FUNCTION(trait,name) \
-namespace tti \
+#define BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_MEMBER_FUNCTION(trait,name) \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_MEMBER_FUNCTION(trait,name) \
+ } \
+ template<class T,class R,class FS = boost::mpl::vector<>,class TAG = boost::function_types::null_tag> \
+ struct trait : \
+ detail::trait<typename detail::ptmf_seq<T,R,FS,TAG>::type,typename boost::remove_const<T>::type> \
+ { \
+ }; \
} \
- template<class T,class R,class FS = boost::mpl::vector<>,class TAG = boost::function_types::null_tag> \
- struct trait : \
- detail::trait<typename detail::ptmf_seq<T,R,FS,TAG>::type,typename boost::remove_const<T>::type> \
- { \
- }; \
} \
/**/
@@ -680,7 +713,7 @@
trait = the name of the metafunction class within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction class's 'apply' metafunction types and return:
@@ -692,21 +725,24 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION(trait,name) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_MEMBER_FUNCTION(trait,name) \
- } \
- struct trait \
- { \
- template<class T,class R,class FS = boost::mpl::vector<>,class TAG = boost::function_types::null_tag> \
- struct apply : \
- detail::trait<typename detail::ptmf_seq<T,R,FS,TAG>::type,typename boost::remove_const<T>::type> \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_MEMBER_FUNCTION(trait,name) \
+ } \
+ struct trait \
{ \
+ template<class T,class R,class FS = boost::mpl::vector<>,class TAG = boost::function_types::null_tag> \
+ struct apply : \
+ detail::trait<typename detail::ptmf_seq<T,R,FS,TAG>::type,typename boost::remove_const<T>::type> \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -715,7 +751,7 @@
name = the name of the inner member.
- returns = a metafunction called "tti::has_member_function_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::has_member_function_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -727,8 +763,8 @@
otherwise 'value' is false.
*/
-#define TTI_HAS_MEMBER_FUNCTION(name) \
- TTI_TRAIT_HAS_MEMBER_FUNCTION \
+#define BOOST_TTI_HAS_MEMBER_FUNCTION(name) \
+ BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION \
( \
BOOST_PP_CAT(has_member_function_,name), \
name \
@@ -740,7 +776,7 @@
name = the name of the inner member.
- returns = a metafunction class called "tti::mtfc_has_member_function_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_has_member_function_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -752,8 +788,8 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_HAS_MEMBER_FUNCTION(name) \
- TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION \
+#define BOOST_TTI_MTFC_HAS_MEMBER_FUNCTION(name) \
+ BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION \
( \
BOOST_PP_CAT(mtfc_has_member_function_,name), \
name \
@@ -766,7 +802,7 @@
trait = the name of the metafunction within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction types and return:
@@ -776,18 +812,21 @@
otherwise 'value' is false.
*/
-#define TTI_TRAIT_HAS_MEMBER_DATA(trait,name) \
-namespace tti \
+#define BOOST_TTI_TRAIT_HAS_MEMBER_DATA(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_MEMBER_DATA(trait,name) \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_MEMBER_DATA(trait,name) \
+ } \
+ template<class T,class R> \
+ struct trait : \
+ detail::trait<typename detail::ptmd<T,R>::type,typename boost::remove_const<T>::type> \
+ { \
+ }; \
} \
- template<class T,class R> \
- struct trait : \
- detail::trait<typename detail::ptmd<T,R>::type,typename boost::remove_const<T>::type> \
- { \
- }; \
} \
/**/
@@ -797,7 +836,7 @@
trait = the name of the metafunction class within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction class's 'apply' metafunction types and return:
@@ -807,21 +846,24 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_TRAIT_HAS_MEMBER_DATA(trait,name) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_DATA(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_MEMBER_DATA(trait,name) \
- } \
- struct trait \
- { \
- template<class T,class R> \
- struct apply : \
- detail::trait<typename detail::ptmd<T,R>::type,typename boost::remove_const<T>::type> \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_MEMBER_DATA(trait,name) \
+ } \
+ struct trait \
{ \
+ template<class T,class R> \
+ struct apply : \
+ detail::trait<typename detail::ptmd<T,R>::type,typename boost::remove_const<T>::type> \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -830,7 +872,7 @@
name = the name of the inner member.
- returns = a metafunction called "tti::has_member_data_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::has_member_data_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -840,8 +882,8 @@
otherwise 'value' is false.
*/
-#define TTI_HAS_MEMBER_DATA(name) \
- TTI_TRAIT_HAS_MEMBER_DATA \
+#define BOOST_TTI_HAS_MEMBER_DATA(name) \
+ BOOST_TTI_TRAIT_HAS_MEMBER_DATA \
( \
BOOST_PP_CAT(has_member_data_,name), \
name \
@@ -853,7 +895,7 @@
name = the name of the inner member.
- returns = a metafunction class called "tti::mtfc_has_member_data_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_has_member_data_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -863,8 +905,8 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_HAS_MEMBER_DATA(name) \
- TTI_MTFC_TRAIT_HAS_MEMBER_DATA \
+#define BOOST_TTI_MTFC_HAS_MEMBER_DATA(name) \
+ BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_DATA \
( \
BOOST_PP_CAT(mtfc_has_member_data_,name), \
name \
@@ -877,7 +919,7 @@
trait = the name of the metafunction within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction types and return:
@@ -890,18 +932,21 @@
otherwise 'value' is false.
*/
-#define TTI_TRAIT_HAS_STATIC_MEMBER(trait,name) \
-namespace tti \
+#define BOOST_TTI_TRAIT_HAS_STATIC_MEMBER(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_STATIC_MEMBER(trait,name) \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_STATIC_MEMBER(trait,name) \
+ } \
+ template<class T,class Type> \
+ struct trait : \
+ detail::trait<T,Type> \
+ { \
+ }; \
} \
- template<class T,class Type> \
- struct trait : \
- detail::trait<T,Type> \
- { \
- }; \
} \
/**/
@@ -911,7 +956,7 @@
trait = the name of the metafunction class within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction class's 'apply' metafunction types and return:
@@ -924,21 +969,24 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_TRAIT_HAS_STATIC_MEMBER(trait,name) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER(trait,name) \
+namespace boost \
{ \
- namespace detail \
- { \
- TTI_DETAIL_MTFC_TRAIT_HAS_STATIC_MEMBER(trait,name) \
- } \
- struct trait \
+ namespace tti \
{ \
- template<class T,class Type> \
- struct apply : \
- detail::trait::apply<T,Type> \
+ namespace detail \
+ { \
+ TTI_DETAIL_MTFC_TRAIT_HAS_STATIC_MEMBER(trait,name) \
+ } \
+ struct trait \
{ \
+ template<class T,class Type> \
+ struct apply : \
+ detail::trait::apply<T,Type> \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -948,7 +996,7 @@
name = the name of the inner member.
- returns = a metafunction called "tti::has_static_member_name" where 'name' is the macro parameter.<br />
+ returns = a metafunction called "boost::tti::has_static_member_name" where 'name' is the macro parameter.<br />
The metafunction types and return:
@@ -961,8 +1009,8 @@
otherwise 'value' is false.
*/
-#define TTI_HAS_STATIC_MEMBER(name) \
- TTI_TRAIT_HAS_STATIC_MEMBER \
+#define BOOST_TTI_HAS_STATIC_MEMBER(name) \
+ BOOST_TTI_TRAIT_HAS_STATIC_MEMBER \
( \
BOOST_PP_CAT(has_static_member_,name), \
name \
@@ -974,7 +1022,7 @@
name = the name of the inner member.
- returns = a metafunction class called "tti::mtfc_has_static_member_name" where 'name' is the macro parameter.<br />
+ returns = a metafunction class called "boost::tti::mtfc_has_static_member_name" where 'name' is the macro parameter.<br />
The metafunction class's 'apply' metafunction types and return:
@@ -987,8 +1035,8 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_HAS_STATIC_MEMBER(name) \
- TTI_MTFC_TRAIT_HAS_STATIC_MEMBER \
+#define BOOST_TTI_MTFC_HAS_STATIC_MEMBER(name) \
+ BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER \
( \
BOOST_PP_CAT(mtfc_has_static_member_,name), \
name \
@@ -1001,7 +1049,7 @@
trait = the name of the metafunction within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction types and return:
@@ -1013,18 +1061,21 @@
otherwise 'value' is false.
*/
-#define TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(trait,name) \
-namespace tti \
+#define BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_STATIC_MEMBER_FUNCTION(trait,name) \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_STATIC_MEMBER_FUNCTION(trait,name) \
+ } \
+ template<class T,class R,class FS = boost::mpl::vector<>,class TAG = boost::function_types::null_tag> \
+ struct trait : \
+ detail::trait<T,typename detail::tfunction_seq<R,FS,TAG>::type> \
+ { \
+ }; \
} \
- template<class T,class R,class FS = boost::mpl::vector<>,class TAG = boost::function_types::null_tag> \
- struct trait : \
- detail::trait<T,typename detail::tfunction_seq<R,FS,TAG>::type> \
- { \
- }; \
} \
/**/
@@ -1034,7 +1085,7 @@
trait = the name of the metafunction class within the tti namespace.<br />
name = the name of the inner member.
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.<br />
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.<br />
The metafunction class's 'apply' metafunction types and return:
@@ -1046,21 +1097,24 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION(trait,name) \
-namespace tti \
+#define BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION(trait,name) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_DETAIL_TRAIT_HAS_STATIC_MEMBER_FUNCTION(trait,name) \
- } \
- struct trait \
- { \
- template<class T,class R,class FS = boost::mpl::vector<>,class TAG = boost::function_types::null_tag> \
- struct apply : \
- detail::trait<T,typename detail::tfunction_seq<R,FS,TAG>::type> \
+ namespace detail \
+ { \
+ TTI_DETAIL_TRAIT_HAS_STATIC_MEMBER_FUNCTION(trait,name) \
+ } \
+ struct trait \
{ \
+ template<class T,class R,class FS = boost::mpl::vector<>,class TAG = boost::function_types::null_tag> \
+ struct apply : \
+ detail::trait<T,typename detail::tfunction_seq<R,FS,TAG>::type> \
+ { \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -1069,7 +1123,7 @@
name = the name of the inner member.
- returns = a metafunction called "tti::has_static_member_function_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::has_static_member_function_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -1081,8 +1135,8 @@
otherwise 'value' is false.
*/
-#define TTI_HAS_STATIC_MEMBER_FUNCTION(name) \
- TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION \
+#define BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION(name) \
+ BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION \
( \
BOOST_PP_CAT(has_static_member_function_,name), \
name \
@@ -1094,7 +1148,7 @@
name = the name of the inner member.
- returns = a metafunction class called "tti::mtfc_has_static_member_function_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_has_static_member_function_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -1106,321 +1160,324 @@
otherwise 'value' is false.
*/
-#define TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION(name) \
- TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION \
+#define BOOST_TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION(name) \
+ BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION \
( \
BOOST_PP_CAT(mtfc_has_static_member_function_,name), \
name \
) \
/**/
-namespace tti
+namespace boost
{
+ namespace tti
+ {
-/// A metafunction which checks whether the member 'type' returned from invoking the macro metafunction generated by TTI_MEMBER_TYPE ( TTI_TRAIT_MEMBER_TYPE ) or from invoking tti::mf_member_type is a valid type.
-/**
+ /// A metafunction which checks whether the member 'type' returned from invoking the macro metafunction generated by TTI_MEMBER_TYPE ( TTI_TRAIT_MEMBER_TYPE ) or from invoking boost::tti::mf_member_type is a valid type.
+ /**
- The metafunction types and return:
+ The metafunction types and return:
- T = returned inner 'type' from invoking the macro metafunction generated by TTI_MEMBER_TYPE ( TTI_TRAIT_MEMBER_TYPE ) or from invoking tti::mf_member_type.
+ T = returned inner 'type' from invoking the macro metafunction generated by TTI_MEMBER_TYPE ( TTI_TRAIT_MEMBER_TYPE ) or from invoking boost::tti::mf_member_type.
- returns = 'value' is true if the type is valid, otherwise 'value' is false.
+ returns = 'value' is true if the type is valid, otherwise 'value' is false.
-*/
- template
- <
- class T
- >
- struct valid_member_type :
- boost::mpl::not_
+ */
+ template
<
- boost::is_same
+ class T
+ >
+ struct valid_member_type :
+ boost::mpl::not_
<
- T,
- detail::notype
+ boost::is_same
+ <
+ T,
+ detail::notype
+ >
>
- >
- {
- };
+ {
+ };
-/// A metafunction which checks whether the member 'type' returned from invoking the macro metafunction generated by TTI_MEMBER_TYPE ( TTI_TRAIT_MEMBER_TYPE ) or from invoking tti::mf_member_type is a valid type.
-/**
+ /// A metafunction which checks whether the member 'type' returned from invoking the macro metafunction generated by TTI_MEMBER_TYPE ( TTI_TRAIT_MEMBER_TYPE ) or from invoking boost::tti::mf_member_type is a valid type.
+ /**
- The metafunction types and return:
+ The metafunction types and return:
- T = the nullary metafunction from invoking the macro metafunction generated by TTI_MEMBER_TYPE ( TTI_TRAIT_MEMBER_TYPE ) or from invoking tti::mf_member_type.
+ T = the nullary metafunction from invoking the macro metafunction generated by TTI_MEMBER_TYPE ( TTI_TRAIT_MEMBER_TYPE ) or from invoking boost::tti::mf_member_type.
- returns = 'value' is true if the type is valid, otherwise 'value' is false.
+ returns = 'value' is true if the type is valid, otherwise 'value' is false.
-*/
- template
- <
- class T
- >
- struct mf_valid_member_type :
- boost::mpl::not_
+ */
+ template
<
- boost::is_same
+ class T
+ >
+ struct mf_valid_member_type :
+ boost::mpl::not_
<
- typename T::type,
- detail::notype
+ boost::is_same
+ <
+ typename T::type,
+ detail::notype
+ >
>
- >
- {
- };
+ {
+ };
-/// A metafunction which checks whether a type exists within an enclosing type and optionally is a particular type.
-/**
+ /// A metafunction which checks whether a type exists within an enclosing type and optionally is a particular type.
+ /**
- This metafunction takes its specific types as nullary metafunctions whose typedef 'type' member is the actual type used.
+ This metafunction takes its specific types as nullary metafunctions whose typedef 'type' member is the actual type used.
- The metafunction types and return:
+ The metafunction types and return:
- HasType = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_TYPE ( or TTI_TRAIT_HAS_TYPE ) macro.<br />
- The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_\>' ( or optionally 'metafunction\<_,_\>' ).
- You can also use the metafunction class generated by the TTI_MTFC_HAS_TYPE ( or TTI_MTFC_TRAIT_HAS_TYPE ) macro.<br />
- T = the enclosing type as a nullary metafunction.<br />
- U = the type of the inner type as a nullary metafunction, as an optional parameter.
+ HasType = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_TYPE ( or TTI_TRAIT_HAS_TYPE ) macro.<br />
+ The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_\>' ( or optionally 'metafunction\<_,_\>' ).
+ You can also use the metafunction class generated by the TTI_MTFC_HAS_TYPE ( or TTI_MTFC_TRAIT_HAS_TYPE ) macro.<br />
+ T = the enclosing type as a nullary metafunction.<br />
+ U = the type of the inner type as a nullary metafunction, as an optional parameter.
- returns = 'value' is true if the type exists within the enclosing type
- and, if type U is specified, the type is the same as the type U,
- otherwise 'value' is false.
+ returns = 'value' is true if the type exists within the enclosing type
+ and, if type U is specified, the type is the same as the type U,
+ otherwise 'value' is false.
-*/
- template
- <
- class HasType,
- class T,
- class U = boost::mpl::identity<tti::detail::notype>
- >
- struct mf_has_type :
- boost::mpl::apply
+ */
+ template
<
- HasType,
- typename T::type,
- typename U::type
- >::type
- {
- };
-
-/// A metafunction whose typedef 'type' is either the internal type or an unspecified type.
-/**
-
- This metafunction takes its enclosing type as nullary metafunctions whose typedef 'type' member is the actual type used.
-
- The metafunction types and return:
-
- MemberType = a Boost MPL lambda expression using the metafunction generated from the TTI_MEMBER_TYPE ( or TTI_TRAIT_MEMBER_TYPE ) macro.<br />
- The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_\>'.
- You can also use the metafunction class generated by the TTI_MTFC_MEMBER_TYPE ( or TTI_MTFC_TRAIT_MEMBER_TYPE ) macro.<br />
- T = the enclosing type as a nullary metafunction.
+ class HasType,
+ class T,
+ class U = boost::mpl::identity<detail::notype>
+ >
+ struct mf_has_type :
+ boost::mpl::apply
+ <
+ HasType,
+ typename T::type,
+ typename U::type
+ >::type
+ {
+ };
+
+ /// A metafunction whose typedef 'type' is either the internal type or an unspecified type.
+ /**
+
+ This metafunction takes its enclosing type as nullary metafunctions whose typedef 'type' member is the actual type used.
+
+ The metafunction types and return:
+
+ MemberType = a Boost MPL lambda expression using the metafunction generated from the TTI_MEMBER_TYPE ( or TTI_TRAIT_MEMBER_TYPE ) macro.<br />
+ The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_\>'.
+ You can also use the metafunction class generated by the TTI_MTFC_MEMBER_TYPE ( or TTI_MTFC_TRAIT_MEMBER_TYPE ) macro.<br />
+ T = the enclosing type as a nullary metafunction.
- returns = 'type' is the inner type of the 'name' in TTI_MEMBER_TYPE ( or TTI_TRAIT_MEMBER_TYPE )
- if the inner type exists within the enclosing type,
- else 'type' is an unspecified type.<br />
- 'valid' is true if the inner type of 'name' exists
- within the enclosing type, else 'valid' is false.
-
- The purpose of this metafunction is to encapsulate the 'name' type
- in TTI_MEMBER_TYPE ( or TTI_TRAIT_MEMBER_TYPE ) as the typedef 'type'
- of a metafunction, but only if it exists within the enclosing type. This allows for
- a lazy evaluation of inner type existence which can be used by other metafunctions
- in this library.
-
- Furthermore this metafunction allows the enclosing type to be return type from either the
- metafunction generated from TTI_MEMBER_TYPE ( or TTI_TRAIT_MEMBER_TYPE ) or from this
- metafunction itself.
+ returns = 'type' is the inner type of the 'name' in TTI_MEMBER_TYPE ( or TTI_TRAIT_MEMBER_TYPE )
+ if the inner type exists within the enclosing type,
+ else 'type' is an unspecified type.<br />
+ 'valid' is true if the inner type of 'name' exists
+ within the enclosing type, else 'valid' is false.
+
+ The purpose of this metafunction is to encapsulate the 'name' type
+ in TTI_MEMBER_TYPE ( or TTI_TRAIT_MEMBER_TYPE ) as the typedef 'type'
+ of a metafunction, but only if it exists within the enclosing type. This allows for
+ a lazy evaluation of inner type existence which can be used by other metafunctions
+ in this library.
+
+ Furthermore this metafunction allows the enclosing type to be return type from either the
+ metafunction generated from TTI_MEMBER_TYPE ( or TTI_TRAIT_MEMBER_TYPE ) or from this
+ metafunction itself.
-*/
- template
- <
- class MemberType,
- class T
- >
- struct mf_member_type :
- boost::mpl::apply
+ */
+ template
<
- MemberType,
- typename T::type
- >
- {
- };
-
-/// A metafunction which checks whether a class template exists within an enclosing type.
-/**
-
- This metafunction takes its enclosing type as nullary metafunctions whose typedef 'type' member is the actual type used.
-
- The metafunction types and return:
-
- HasTemplate = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_TEMPLATE ( TTI_TRAIT_HAS_TEMPLATE ) macro.<br />
- The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_\>'.
- You can also use the metafunction class generated by the TTI_MTFC_HAS_TEMPLATE ( TTI_MTFC_TRAIT_HAS_TEMPLATE ) macro.<br />
- T = the enclosing type as a nullary metafunction.
+ class MemberType,
+ class T
+ >
+ struct mf_member_type :
+ boost::mpl::apply
+ <
+ MemberType,
+ typename T::type
+ >
+ {
+ };
+
+ /// A metafunction which checks whether a class template exists within an enclosing type.
+ /**
+
+ This metafunction takes its enclosing type as nullary metafunctions whose typedef 'type' member is the actual type used.
+
+ The metafunction types and return:
+
+ HasTemplate = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_TEMPLATE ( TTI_TRAIT_HAS_TEMPLATE ) macro.<br />
+ The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_\>'.
+ You can also use the metafunction class generated by the TTI_MTFC_HAS_TEMPLATE ( TTI_MTFC_TRAIT_HAS_TEMPLATE ) macro.<br />
+ T = the enclosing type as a nullary metafunction.
- returns = 'value' is true if the template exists within the enclosing type,
- otherwise 'value' is false.
+ returns = 'value' is true if the template exists within the enclosing type,
+ otherwise 'value' is false.
-*/
- template
- <
- class HasTemplate,
- class T
- >
- struct mf_has_template :
- boost::mpl::apply
+ */
+ template
<
- HasTemplate,
- typename T::type
- >::type
- {
- };
-
-/// A metafunction which checks whether a member function exists within an enclosing type.
-/**
-
- This metafunction takes its specific types, except for the optional parameters, as nullary metafunctions whose typedef 'type' member is the actual type used.
-
- The metafunction types and return:
-
- HasMemberFunction = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_MEMBER_FUNCTION ( or TTI_TRAIT_HAS_MEMBER_FUNCTION ) macro.<br />
- The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_,_\> ( or optionally 'metafunction\<_,_,_\> or ' 'metafunction\<_,_,_,_\> )'.
- You can also use the metafunction class generated by the TTI_MTFC_HAS_MEMBER_FUNCTION ( or TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION ) macro.<br />
- T = the enclosing type as a nullary metafunction.<br />
- R = the return type of the member function as a nullary metafunction.<br />
- FS = an optional parameter which is the parameters of the member function, each as a nullary metafunction, as a boost::mpl forward sequence.<br />
- This parameter defaults to boost::mpl::vector<>.<br />
- TAG = an optional parameter which is a boost::function_types tag to apply to the member function.<br />
- This parameter defaults to boost::function_types::null_tag.
+ class HasTemplate,
+ class T
+ >
+ struct mf_has_template :
+ boost::mpl::apply
+ <
+ HasTemplate,
+ typename T::type
+ >::type
+ {
+ };
+
+ /// A metafunction which checks whether a member function exists within an enclosing type.
+ /**
+
+ This metafunction takes its specific types, except for the optional parameters, as nullary metafunctions whose typedef 'type' member is the actual type used.
+
+ The metafunction types and return:
+
+ HasMemberFunction = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_MEMBER_FUNCTION ( or TTI_TRAIT_HAS_MEMBER_FUNCTION ) macro.<br />
+ The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_,_\> ( or optionally 'metafunction\<_,_,_\> or ' 'metafunction\<_,_,_,_\> )'.
+ You can also use the metafunction class generated by the TTI_MTFC_HAS_MEMBER_FUNCTION ( or TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION ) macro.<br />
+ T = the enclosing type as a nullary metafunction.<br />
+ R = the return type of the member function as a nullary metafunction.<br />
+ FS = an optional parameter which is the parameters of the member function, each as a nullary metafunction, as a boost::mpl forward sequence.<br />
+ This parameter defaults to boost::mpl::vector<>.<br />
+ TAG = an optional parameter which is a boost::function_types tag to apply to the member function.<br />
+ This parameter defaults to boost::function_types::null_tag.
- returns = 'value' is true if the member function exists within the enclosing type,
- otherwise 'value' is false.
+ returns = 'value' is true if the member function exists within the enclosing type,
+ otherwise 'value' is false.
-*/
- template
- <
- class HasMemberFunction,
- class T,
- class R,
- class FS = boost::mpl::vector<>,
- class TAG = boost::function_types::null_tag
- >
- struct mf_has_member_function :
- boost::mpl::apply
+ */
+ template
<
- HasMemberFunction,
- typename T::type,
- typename R::type,
- typename boost::mpl::transform<FS,detail::tself<boost::mpl::_1> >::type,
- TAG
- >::type
- {
- };
+ class HasMemberFunction,
+ class T,
+ class R,
+ class FS = boost::mpl::vector<>,
+ class TAG = boost::function_types::null_tag
+ >
+ struct mf_has_member_function :
+ boost::mpl::apply
+ <
+ HasMemberFunction,
+ typename T::type,
+ typename R::type,
+ typename boost::mpl::transform<FS,detail::tself<boost::mpl::_1> >::type,
+ TAG
+ >::type
+ {
+ };
-/// A metafunction which checks whether a member data exists within an enclosing type.
-/**
+ /// A metafunction which checks whether a member data exists within an enclosing type.
+ /**
- This metafunction takes its specific types as nullary metafunctions whose typedef 'type' member is the actual type used.
+ This metafunction takes its specific types as nullary metafunctions whose typedef 'type' member is the actual type used.
- The metafunction types and return:
+ The metafunction types and return:
- HasMemberData = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_MEMBER_DATA ( or TTI_TRAIT_HAS_MEMBER_DATA ) macro.<br />
- The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_,_\>'.
- You can also use the metafunction class generated by the TTI_MTFC_HAS_MEMBER_DATA ( or TTI_MTFC_TRAIT_HAS_MEMBER_DATA ) macro.<br />
- T = the enclosing type as a nullary metafunction.<br />
- R = the type of the member data as a nullary metafunction.
+ HasMemberData = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_MEMBER_DATA ( or TTI_TRAIT_HAS_MEMBER_DATA ) macro.<br />
+ The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_,_\>'.
+ You can also use the metafunction class generated by the TTI_MTFC_HAS_MEMBER_DATA ( or TTI_MTFC_TRAIT_HAS_MEMBER_DATA ) macro.<br />
+ T = the enclosing type as a nullary metafunction.<br />
+ R = the type of the member data as a nullary metafunction.
- returns = 'value' is true if the member data exists within the enclosing type,
- otherwise 'value' is false.
+ returns = 'value' is true if the member data exists within the enclosing type,
+ otherwise 'value' is false.
-*/
- template
- <
- class HasMemberData,
- class T,
- class R
- >
- struct mf_has_member_data :
- boost::mpl::apply
+ */
+ template
<
- HasMemberData,
- typename T::type,
- typename R::type
- >::type
- {
- };
-
-/// A metafunction which checks whether a static member function exists within an enclosing type.
-/**
-
- This metafunction takes its specific types, except for the optional parameters, as nullary metafunctions whose typedef 'type' member is the actual type used.
-
- The metafunction types and return:
-
- HasStaticMemberFunction = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_STATIC_MEMBER_FUNCTION ( or TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION ) macro.<br />
- The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_,_\> ( or optionally 'metafunction\<_,_,_\> or ' 'metafunction\<_,_,_,_\> )'.
- You can also use the metafunction class generated by the TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION ( or TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION ) macro.<br />
- T = the enclosing type as a nullary metafunction.<br />
- R = the return type of the static member function as a nullary metafunction.<br />
- FS = an optional parameter which is the parameters of the static member function, each as a nullary metafunction, as a boost::mpl forward sequence.<br />
- TAG = an optional parameter which is a boost::function_types tag to apply to the static member function.
+ class HasMemberData,
+ class T,
+ class R
+ >
+ struct mf_has_member_data :
+ boost::mpl::apply
+ <
+ HasMemberData,
+ typename T::type,
+ typename R::type
+ >::type
+ {
+ };
+
+ /// A metafunction which checks whether a static member function exists within an enclosing type.
+ /**
+
+ This metafunction takes its specific types, except for the optional parameters, as nullary metafunctions whose typedef 'type' member is the actual type used.
+
+ The metafunction types and return:
+
+ HasStaticMemberFunction = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_STATIC_MEMBER_FUNCTION ( or TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION ) macro.<br />
+ The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_,_\> ( or optionally 'metafunction\<_,_,_\> or ' 'metafunction\<_,_,_,_\> )'.
+ You can also use the metafunction class generated by the TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION ( or TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION ) macro.<br />
+ T = the enclosing type as a nullary metafunction.<br />
+ R = the return type of the static member function as a nullary metafunction.<br />
+ FS = an optional parameter which is the parameters of the static member function, each as a nullary metafunction, as a boost::mpl forward sequence.<br />
+ TAG = an optional parameter which is a boost::function_types tag to apply to the static member function.
- returns = 'value' is true if the member function exists within the enclosing type,
- otherwise 'value' is false.
+ returns = 'value' is true if the member function exists within the enclosing type,
+ otherwise 'value' is false.
-*/
- template
- <
- class HasStaticMemberFunction,
- class T,
- class R,
- class FS = boost::mpl::vector<>,
- class TAG = boost::function_types::null_tag
- >
- struct mf_has_static_member_function :
- boost::mpl::apply
+ */
+ template
<
- HasStaticMemberFunction,
- typename T::type,
- typename R::type,
- typename boost::mpl::transform<FS,detail::tself<boost::mpl::_1> >::type,
- TAG
- >::type
- {
- };
-
-/// A metafunction which checks whether a static member data exists within an enclosing type.
-/**
-
- This metafunction takes its specific types as nullary metafunctions whose typedef 'type' member is the actual type used.
-
- The metafunction types and return:
-
- HasStaticMember = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_STATIC_MEMBER ( or TTI_TRAIT_HAS_STATIC_MEMBER ) macro.<br />
- The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_,_\>'.
- You can also use the metafunction class generated by the TTI_MTFC_HAS_STATIC_MEMBER ( or TTI_MTFC_TRAIT_HAS_STATIC_MEMBER ) macro.<br />
- T = the enclosing type as a nullary metafunction.<br />
- R = the type of the static member data as a nullary metafunction.
+ class HasStaticMemberFunction,
+ class T,
+ class R,
+ class FS = boost::mpl::vector<>,
+ class TAG = boost::function_types::null_tag
+ >
+ struct mf_has_static_member_function :
+ boost::mpl::apply
+ <
+ HasStaticMemberFunction,
+ typename T::type,
+ typename R::type,
+ typename boost::mpl::transform<FS,detail::tself<boost::mpl::_1> >::type,
+ TAG
+ >::type
+ {
+ };
+
+ /// A metafunction which checks whether a static member data exists within an enclosing type.
+ /**
+
+ This metafunction takes its specific types as nullary metafunctions whose typedef 'type' member is the actual type used.
+
+ The metafunction types and return:
+
+ HasStaticMember = a Boost MPL lambda expression using the metafunction generated from the TTI_HAS_STATIC_MEMBER ( or TTI_TRAIT_HAS_STATIC_MEMBER ) macro.<br />
+ The easiest way to generate the lambda expression is to use a Boost MPL placeholder expression of the form 'metafunction\<_,_\>'.
+ You can also use the metafunction class generated by the TTI_MTFC_HAS_STATIC_MEMBER ( or TTI_MTFC_TRAIT_HAS_STATIC_MEMBER ) macro.<br />
+ T = the enclosing type as a nullary metafunction.<br />
+ R = the type of the static member data as a nullary metafunction.
- returns = 'value' is true if the member data exists within the enclosing type,
- otherwise 'value' is false.
+ returns = 'value' is true if the member data exists within the enclosing type,
+ otherwise 'value' is false.
-*/
- template
- <
- class HasStaticMember,
- class T,
- class R
- >
- struct mf_has_static_data :
- boost::mpl::apply
+ */
+ template
<
- HasStaticMember,
- typename T::type,
- typename R::type
- >::type
- {
- };
+ class HasStaticMember,
+ class T,
+ class R
+ >
+ struct mf_has_static_data :
+ boost::mpl::apply
+ <
+ HasStaticMember,
+ typename T::type,
+ typename R::type
+ >::type
+ {
+ };
+ }
}
#endif // TT_INTROSPECTION_HPP
Modified: sandbox/tti/boost/tti/tti_vm.hpp
==============================================================================
--- sandbox/tti/boost/tti/tti_vm.hpp (original)
+++ sandbox/tti/boost/tti/tti_vm.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -25,7 +25,7 @@
name = the name of the inner class template.<br />
... = variadic macro data which has the class template parameters.
- returns = a metafunction called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction types and return:
@@ -35,20 +35,23 @@
otherwise 'value' is false.
*/
-#define TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
-namespace tti \
+#define BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_VM_DETAIL_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,__VA_ARGS__) \
+ namespace detail \
+ { \
+ TTI_VM_DETAIL_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,__VA_ARGS__) \
+ } \
+ template<class T> \
+ struct trait \
+ { \
+ typedef typename detail::trait<T>::type type; \
+ \
+ BOOST_STATIC_CONSTANT(bool,value=type::value); \
+ }; \
} \
- template<class T> \
- struct trait \
- { \
- typedef typename detail::trait<T>::type type; \
- \
- BOOST_STATIC_CONSTANT(bool,value=type::value); \
- }; \
} \
/**/
@@ -59,7 +62,7 @@
name = the name of the inner class template.<br />
... = variadic macro data which has the class template parameters.
- returns = a metafunction class called "tti::trait" where 'trait' is the macro parameter.
+ returns = a metafunction class called "boost::tti::trait" where 'trait' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -69,23 +72,26 @@
otherwise 'value' is false.
*/
-#define TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
-namespace tti \
+#define BOOST_TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,...) \
+namespace boost \
{ \
- namespace detail \
+ namespace tti \
{ \
- TTI_VM_DETAIL_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,__VA_ARGS__) \
- } \
- struct trait \
- { \
- template<class T> \
- struct apply \
+ namespace detail \
{ \
- typedef typename detail::trait::apply<T>::type type; \
- \
- BOOST_STATIC_CONSTANT(bool,value=type::value); \
+ TTI_VM_DETAIL_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(trait,name,__VA_ARGS__) \
+ } \
+ struct trait \
+ { \
+ template<class T> \
+ struct apply \
+ { \
+ typedef typename detail::trait::apply<T>::type type; \
+ \
+ BOOST_STATIC_CONSTANT(bool,value=type::value); \
+ }; \
}; \
- }; \
+ } \
} \
/**/
@@ -96,7 +102,7 @@
name = the name of the inner class template.<br />
... = variadic macro data which has the class template parameters.
- returns = a metafunction called "tti::has_template_check_params_name" where 'name' is the macro parameter.
+ returns = a metafunction called "boost::tti::has_template_check_params_name" where 'name' is the macro parameter.
The metafunction types and return:
@@ -106,8 +112,8 @@
otherwise 'value' is false.
*/
-#define TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(name,...) \
- TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
+#define BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(name,...) \
+ BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
( \
BOOST_PP_CAT(has_template_check_params_,name), \
name, \
@@ -121,7 +127,7 @@
name = the name of the inner class template.<br />
... = variadic macro data which has the class template parameters.
- returns = a metafunction class called "tti::mtfc_has_template_check_params_name" where 'name' is the macro parameter.
+ returns = a metafunction class called "boost::tti::mtfc_has_template_check_params_name" where 'name' is the macro parameter.
The metafunction class's 'apply' metafunction types and return:
@@ -131,8 +137,8 @@
otherwise 'value' is false.
*/
-#define TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(name,...) \
- TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
+#define BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(name,...) \
+ BOOST_TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS \
( \
BOOST_PP_CAT(mtfc_has_template_check_params_,name), \
name, \
Modified: sandbox/tti/libs/tti/doc/Jamfile.v2
==============================================================================
--- sandbox/tti/libs/tti/doc/Jamfile.v2 (original)
+++ sandbox/tti/libs/tti/doc/Jamfile.v2 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -50,7 +50,7 @@
xml TypeTraitsIntrospection
:
- TypeTraitsIntrospection.qbk
+ type_traits_introspection.qbk
:
<dependency>TypeTraitsIntrospectionReference
;
Deleted: sandbox/tti/libs/tti/doc/TTIAcknowledgements.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIAcknowledgements.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,24 +0,0 @@
-[section:tti_acknowledgments Acknowledgments]
-
-The TTI library came out of my effort to take the
-type_traits_ext part of the unfinished Concept Traits
-Library and expand it. So my first thanks go to
-Terje Slettebo and Tobias Schwinger, the authors of
-the CTL. I have taken, and hopefully improved upon,
-the ideas and implementation in that library, and added
-some needed new functionality.
-
-I would also like to thank Joel Falcou for
-his help and his introspection work.
-
-Two of the introspection templates are taken from the MPL and
-lifted into my library under a different name for the sake
-of completeness, so I would like to thank Aleksey Gurtovoy and
-David Abrahams for that library, and Daniel Walker for work on
-those MPL introspection macros.
-
-Finally thanks to Anthony Williams for supplying a workaround
-for a Visual C++ bug which is needed for introspecting member
-data where the type of the member data is a compound type.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIDetail.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIDetail.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,232 +0,0 @@
-[section:tti_detail Macro Metafunctions]
-
-The TTI library uses macros to create metafunctions, in the top-level 'tti' namespace,
-for introspecting an inner element by name. Each macro for a particular type of inner
-element has two forms, the simple one where the first macro parameter designating the
-'name' of the inner element is used to create the name of the metafunction, and the
-complex one where the first macro parameter, called 'trait', designates
-the name of the metafunction and the second macro parameter designates the 'name' to be
-introspected. Other than that difference, the two forms of the macro produce the exact same
-results.
-
-To use these metafunctions you need to include the main header file 'tti.hpp',
-unless otherwise noted.
-
-A table of these macros is given, with the inner element whose
-existence the metaprogrammer is introspecting. A more detailed explanation can be found
-in the reference section, and examples of usage can be found in the
-[link sectti_usingMM "Using the Macro Metafunctions"] section.
-In the Template column only the name generated by the simple form
-of the template is given since the name generated by the complex form is always tti::trait
-where 'trait' is the first parameter to the corresponding complex form macro. All of the
-introspecting metafunctions in the table below return a boolean constant called 'value', which
-specifies whether or not the inner element exists.
-
-[table:tbmacros TTI Macro Metafunctions
- [
- [Inner Element]
- [Macro]
- [Template]
- ]
- [
- [Type]
- [
- [macroref TTI_HAS_TYPE](name)
- ]
- [
- tti::has\_type\_'name'
-
- class T = enclosing type
- ]
- ]
- [
- [Type with check]
- [
- [macroref TTI_HAS_TYPE](name)
- ]
- [
- tti::has\_type\_'name'
-
- class T = enclosing type
-
- class U = type to check against
- ]
- ]
- [
- [Class Template]
- [
- [macroref TTI_HAS_TEMPLATE](name)
- ]
- [
- tti::has\_template\_'name'
-
- class T = enclosing type
-
- All of the template parameters must be 'class' ( or 'typename' ) parameters
- ]
- ]
- [
- [Class Template with params]
- [
- [macroref TTI_HAS_TEMPLATE_CHECK_PARAMS](name,ppSeq[footnote A Boost PP data sequence with each comma separated portion of the template parameters as its own sequence element.])
- ]
- [
- tti::has\_template\_check\_params\_'name'
-
- class T = enclosing type
- ]
- ]
- [
- [Class Template with params using variadic macros[footnote Header file is tti_vm.hpp.]]
- [
- [macroref TTI_VM_HAS_TEMPLATE_CHECK_PARAMS](name,...[footnote The template parameters as variadic data.])
- ]
- [
- tti::has\_template\_check\_params\_'name'
-
- class T = enclosing type
- ]
- ]
- [
- [Member data or function]
- [
- [macroref TTI_HAS_MEMBER](name)
- ]
- [
- tti::has\_member\_'name'
-
- class T = pointer to data or function member
-
- The form for T is 'Type Class::*' for member data
-
- The form for T is 'ReturnType (Class::*)(Zero or more comma-separated parameter types)' for member function
- ]
- ]
- [
- [Member data as individual types]
- [
- [macroref TTI_HAS_MEMBER_DATA](name)
- ]
- [
- tti::has\_member\_data\_'name'
-
- class T = enclosing type
-
- class R = data type
- ]
- ]
- [
- [Member function as individual types]
- [
- [macroref TTI_HAS_MEMBER_FUNCTION](name)
- ]
- [
- tti::has\_member\_function\_'name'
-
- class T = enclosing type
-
- class R = return type
-
- class FS = (optional) function parameter types as a Boost MPL forward sequence.
- If there are no function parameters this does not have to be specified.
- Defaults to boost::mpl::vector<>.
-
- class TAG = (optional) Boost function_types tag type.
- Defaults to boost::function_types::null_tag.
- ]
- ]
- [
- [Static member data or static member function]
- [
- [macroref TTI_HAS_STATIC_MEMBER](name)
- ]
- [
- tti::has\_static\_member\_'name'
-
- class T = enclosing type
-
- class Type = data or function type
-
- The form for Type is just 'Type' as a data type
-
- The form for Type is 'ReturnType (Zero or more comma-separated parameter types)' as a function type
- ]
- ]
- [
- [Static member function as individual types]
- [
- [macroref TTI_HAS_STATIC_MEMBER_FUNCTION](name)
- ]
- [
- tti::has\_static\_member\_function\_'name'
-
- class T = enclosing type
-
- class R = return type
-
- class FS = (optional) function parameter types as a Boost MPL forward sequence.
- If there are no function parameters this does not have to be specified.
- Defaults to boost::mpl::vector<>.
-
- class TAG = (optional) Boost function_types tag type.
- Defaults to boost::function_types::null_tag.
- ]
- ]
-]
-
-There is one other macro which creates a metafunction which does not introspect
-for the existence of an inner element type, but is very useful nonetheless.
-Instead the macro metafunction created returns the nested type if it exists, else
-it returns an unspecified type.
-
-[table:tbmacronested TTI Nested Type Macro Metafunction
- [
- [Inner Element]
- [Macro]
- [Template]
- ]
- [
- [Type]
- [
- [macroref TTI_MEMBER_TYPE](name)
- ]
- [
- tti::member\_type\_'name'
-
- class T = enclosing type
-
- returns = the type of 'name' if it exists, else an unspecified type, as a typedef 'type'.
- ]
- ]
-]
-
-Along with this macro metafunction we have another metafunction which, when passed a 'type',
-which can be any type but which will generally be used with the type returned by
-invoking the metafunction generated by TTI\_MEMBER\_TYPE, will tell use whether the type exists
-or not as a boolean constant.
-
-[table:existtbmacronested TTI Nested Type Macro Metafunction Existence
- [
- [Inner Element]
- [Macro]
- [Template]
- ]
- [
- [Type]
- [None]
- [
- [classref tti::valid_member_type]
-
- class T = a type
-
- returns = true if the type exists, false if it does not.
- 'Existence' is determined by whether the type does not equal an unspecified type.
- ]
- ]
-]
-
-The usefulness of the TTI\_MEMBER\_TYPE macro metafunction will be shown
-in the next topic when I explain the problem of specifying nested types and how TTI solves
-it.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIFunctionality.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIFunctionality.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,55 +0,0 @@
-[section:tti_functionality General Functionality]
-
-The elements about which a template metaprogrammer might be interested in finding
-out at compile time about a type are:
-
-* Does it have a nested type with a particular name ?
-* Does it have a nested type with a particular name which is a typedef for a particular type ?
-* Does it have a nested class template with a particular name ?
-* Does it have a nested class template with a particular name and a particular signature ?
-* Does it have a member function with a particular name and a particular signature ?
-* Does it have a member data with a particular name and of a particular type ?
-* Does it have a static member function with a particular name and a particular signature ?
-* Does it have a static member data with a particular name and of a particular type ?
-
-These are the compile-time questions which the TTI library answers.
-
-All of the questions above attempt to find an answer about an inner element with
-a particular name. In order to do this using template metaprogramming, macros are used
-so that the name of the inner element can be passed to the macro. The macro will then
-generate an appropriate metafunction, which the template metaprogrammer can then use to
-introspect the information that is needed. The name itself of the inner element is always passed
-to the macro as a macro parameter, but other macro parameters may also be needed in some cases.
-
-All of the macros start with the prefix TTI_, create their metafunctions in a top-level
-namespace called 'tti', and come in two forms:
-
-# In the simplest form the 'name' of the inner element is used directly to generate the name
- of the metafunction as well as serving as the 'name' to introspect. To generate the name of
- the metafunction the 'name' is appended to the name of the macro, with the TTI_ prefix removed,
- a final underscore added, and the macro part of the name in lower case. As an example, for the
- macro TTI_HAS_TYPE(MyType) the name of the metafunction is 'tti::has_type_MyType' and it will
- look for an inner type called 'MyType'.
-# In the slightly more complicated form, which I call the complex form, the macro starts with
- TTI\_TRAIT\_ and a 'trait' name is passed as the first parameter, with the 'name' of the inner
- element as the second parameter. The 'trait' name serves only to completely name the metafunction in
- the tti namespace. As an example, for the macro TTI_TRAIT_HAS_TYPE(MyTrait,MyType) the name of
- the metafunction is 'tti::MyTrait' and it will look for an inner type called 'MyType'. Every
- macro has a corresponding complex form.
-
-[important When introspecting a particular inner element any given macro metafunction generated
-can be reused with any combination of template parameters which involve the same type of inner element.
-Furthermore once a macro metafunction is generated, attempting to generate another macro metafunction of the
-same name will create ODR violations since two C++ constructs with the same name/type in the same namespace
-will have been created. This latter possibility has much less chance of occurence if you use the simple form
-of each macro and just reuse the macro metafunction. You can even do this if you are introspecting for two
-entities of the same name in different enclosing types, or in the same enclosing type but with different
-signatures, as with overloaded member functions.]
-
-Once either of these two macro forms are used for a particular type of inner element, the
-corresponding macro metafunction has the exact same functionality.
-
-In the succeeding documentation all macro metafunctions will be referred by their simple form
-name, but remember that the complex form name can always alternatively be used.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIHistory.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIHistory.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,39 +0,0 @@
-[section:tti_history History]
-
-[heading Version 1.3]
-
-* Changed the filenames to lower case and undescores.
-* The names of the main header files are shortened to 'tti.hpp' and 'tti_vm.hpp'.
-
-[heading Version 1.2]
-
-* Added the set of metafunction class macros for passing the macro metafunctions as metadata.
- This complements passing the macro metafunctions as metadata using placeholder expressions.
-
-[heading Version 1.1]
-
-* Library now also compiles with gcc 3.4.2 and gcc 3.4.5.
-* Examples of use have been added to the documentation.
-* In the documentation the previously mentioned 'nested type metafunctions' are now called "nullary type metafunctions'.
-* TTI_HAS_TYPE and tti::mf_has_type now have optional typedef checking.
-* New macro metafunction functionality which allows composite typed to be treated as individual types has been implemented. These include:
- * TTI_HAS_MEMBER_DATA
- * TTI_HAS_MEMBER_FUNCTION
- * TTI_HAS_STATIC_MEMBER_FUNCTION
-* New nullary type metafunction tti::mf_has_static_member_function uses the new underlying TTI_HAS_STATIC_MEMBER_FUNCTION macro metafunction.
- Its signature uses an optional MPL forward sequence for the parameter types and an optional Boost function_types tag type.
-* New nullary type metafunctions tti::valid_member_type and tti::mf_valid_member_type for checking if the 'type' returned from invoking the TTI_MEMBER_TYPE or tti::mf_member_type metafunctions is valid.
-* Breaking changes
- * TTI_HAS_TYPE_CHECK_TYPEDEF and tti::mf_has_type_check_typedef have been removed, and the functionality in them folded into TTI_HAS_TYPE and tti::mf_has_type.
- * TTI_MEMBER_TYPE and tti::mf_member_type no longer also return a 'valid' boolean constant. Use tti::valid_member_type or tti::mf_valid_member_type metafunctions instead ( see above ).
- * tti::mf_has_static_function has been removed and its functionality moved to tti::mf_has_static_member_function ( see above ).
- * tti::mf_member_data uses the new underlying TTI_HAS_MEMBER_DATA macro metafunction.
- * The signature for tti::mf_has_member_function has changed to use an optional MPL forward sequence for the parameter types and an optional Boost function_types tag type.
- * All nullary type metafunctions take their corresponding macro metafunction parameter as a class in the form of a Boost MPL lambda expression instead of as a template template parameter as previously.
- Using a placeholder expression is the easiest way to pass the corresponding macro metafunction to its nullary type metafunction.
-
-[heading Version 1.0]
-
-Initial version of the library.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIIndex.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIIndex.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,2 +0,0 @@
-'''<index/>'''
-
Deleted: sandbox/tti/libs/tti/doc/TTIIntroduction.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIIntroduction.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,80 +0,0 @@
-[section:tti_intro Introduction]
-
-Welcome to the Type Traits Introspection library version 1.2 .
-
-The Type Traits Introspection library, or TTI for short, is a library
-of macros generating metafunctions, and a set of parallel nullary type
-metafunctions, which provide the ability to introspect by name the
-elements of a type at compile time.
-
-The name of the library is chosen because the library offers
-compile time functionality on a type, as does the Boost Type Traits library,
-and because the functionality the library offers is the ability to introspect
-a type about the existence of a specific element.
-
-I use the word "introspect" in a very broad sense here. Normally language
-introspection means initially asking for information to be returned by name,
-which can then further be used to introspect for more specific information.
-In the TTI library one must always supply the name, and use the functionality
-for the correct type of inner element to find out if the particular named entity exists.
-You may prefer the term "query" instead of "introspection" to denote what this
-library does, but I use terminology based on the word "introspect" throughout
-this documentation.
-
-The functionality of the library may be summed up as:
-
-* Provide the means to introspect a type at compile time
- using a set of macros. Each macro takes the name of the
- type's element and generates a metafunction which can be
- subsequently invoked to determine whether or not the
- element exists within the type. These metafunctions
- will be called "macro metafunctions" in the documentation.
-* Provide corresponding metafunctions which can operate
- on nearly each of the macro metafunctions generated.
- These secondary metafunctions provide nearly
- the same set of introspection as the macro metafunctions but
- allow for an easier to use syntax, where
- the types being passed are in the form of nullary metafunctions
- themselves. They always work with individual types
- when specifying function and data syntax rather than a
- composite type. These metafunctions are called 'nullary type
- metafunctions' in the documentation.
-* Provide a set of macros for all of the macro metafunctions
- which create metafunction classes, so the metafunctions
- generated by the macro metafunctions can be passed as metadata.
- These can be used by the nullary type metafunctions, and may
- find other uses for the template metaprogrammer.
-
-The library is a header only library.
-
-There are two separate headers in the library,
-divided depending on whether or not the library
-functionality supporting variadic macros is to be used.
-
-# The main header, which does not require using the library
-support for variadic macros, is
-[headerref boost/tti/tti.hpp 'tti.hpp'].
-This can be used for the vast majority of functionality in the library.
-# The secondary header, which uses a very small subset of the
-library functionality, providing an alternate use of a particular
-macro with variadic macro support, is
-[headerref boost/tti/tti_vm.hpp 'tti_vm.hpp'].
-
-Furthermore there is a third header file which both of the header
-files above include, called 'mf_template_params.hpp' but
-this should never be included itself but only through either
-of the main header files.
-
-The library is dependent on Boost PP, Boost MPL,
-Boost Type Traits, and Boost Function Types.
-
-If the secondary header is used the library is also dependent
-on the variadic_macro_data library currently in the sandbox.
-If the secondary header is not used there is no need to download
-the variadic_macro_data library and use it in any way.
-
-Since the dependencies of the library are all header only
-libraries, there is no need to build anything in order to use
-the TTI library.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIMetaClasses.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIMetaClasses.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,139 +0,0 @@
-[section:tti_metaclasses Macro Metafunctions as Metadata]
-
-As specified in the Boost MPL library, there are two ways to pass metafunctions
-as metadata, and both ways fall under the Boost MPL terminology of 'lambda expressions':
-
-* As a metafunction class
-* As a placeholder expression
-
-Using a placeholder expression is the easiest way and does not require the programmer to create
-a metafunction class for passing the metadata. The syntax for this is fairly simple. The syntax
-for passing a macro metafunction becomes 'macrometafunction<\_>' etc. depending
-on how many parameters are bring passed. Thus for two parameters we would have
-'macrometafunction<\_,\_>' etc., with another placeholder ('\_') added for each subsequent parameter.
-
-However using a placeholder expression may not be the fastest way when considering compile-time
-speed. Because of this the TTI library provides a set of macros for each of the macro metafunctions
-which generate a corresponding metafunction class. We will call this set of macros
-the 'metafunction class macros'.
-
-These macros take exactly the same macro parameters as their corresponding
-macro metafunctions. They generate a corresponding metafunction class rather
-than a metafunction itself, which allows us to pass our macro metafunctions
-as metadata, just as using placeholder expressions allows us to do.
-
-For these metafunction class macros there is a simple form and a complex form name
-just as there is for the macro metafunctions. For each macro metafunction,
-the name for the corresponding metafunction class macro is the macro
-metafunction name with the sequence 'MTFC\_' ( for "MeTaFunction Class" )
-following the TTI\_ ( or TTI\_VM\_ ) portion of the macro metafunction name.
-The subsequent metafunction class name, using the simple form, is the same name as
-the corresponding macro metafunction name but with 'mtfc\_' prepended to the name.
-
-As with the complex form name of the macro metafunctions,
-the complex form name of the corresponding metafunction class macros is
-completely determined by the first 'trait' parameter.
-
-In the following table I do not specify the macro parameters
-as they are exactly the same as those for their corresponding macro
-metafunction:
-
-[table:tbmetaclasses TTI Metafunction Classes
- [
- [Macro Metafunction]
- [Metafunction Class Macro]
- [Metafunction Class Name]
- ]
- [
- [[macroref TTI_HAS_TYPE]]
- [[macroref TTI_MTFC_HAS_TYPE]]
- [tti::mtfc\_has\_type\_'name']
- ]
- [
- [[macroref TTI_TRAIT_HAS_TYPE]]
- [[macroref TTI_MTFC_TRAIT_HAS_TYPE]]
- [tti::'trait']
- ]
- [
- [[macroref TTI_HAS_TEMPLATE]]
- [[macroref TTI_MTFC_HAS_TEMPLATE]]
- [tti::mtfc\_has\_template\_'name']
- ]
- [
- [[macroref TTI_TRAIT_HAS_TEMPLATE]]
- [[macroref TTI_MTFC_TRAIT_HAS_TEMPLATE]]
- [tti::'trait']
- ]
- [
- [[macroref TTI_HAS_TEMPLATE_CHECK_PARAMS]]
- [[macroref TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS]]
- [tti::mtfc\_has\_template\_check\_params\_'name']
- ]
- [
- [[macroref TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
- [[macroref TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
- [tti::'trait']
- ]
- [
- [[macroref TTI_VM_HAS_TEMPLATE_CHECK_PARAMS]]
- [[macroref TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS]]
- [tti::mtfc\_has\_template\_check\_params\_'name']
- ]
- [
- [[macroref TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
- [[macroref TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
- [tti::'trait']
- ]
- [
- [[macroref TTI_HAS_MEMBER]]
- [[macroref TTI_MTFC_HAS_MEMBER]]
- [tti::mtfc\_has\_member\_'name']
- ]
- [
- [[macroref TTI_TRAIT_HAS_MEMBER]]
- [[macroref TTI_MTFC_TRAIT_HAS_MEMBER]]
- [tti::'trait']
- ]
- [
- [[macroref TTI_HAS_MEMBER_DATA]]
- [[macroref TTI_MTFC_HAS_MEMBER_DATA]]
- [tti::mtfc\_has\_member\_data\_'name']
- ]
- [
- [[macroref TTI_TRAIT_HAS_MEMBER_DATA]]
- [[macroref TTI_MTFC_TRAIT_HAS_MEMBER_DATA]]
- [tti::'trait']
- ]
- [
- [[macroref TTI_HAS_MEMBER_FUNCTION]]
- [[macroref TTI_MTFC_HAS_MEMBER_FUNCTION]]
- [tti::mtfc\_has\_member\_function\_'name']
- ]
- [
- [[macroref TTI_TRAIT_HAS_MEMBER_FUNCTION]]
- [[macroref TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION]]
- [tti::'trait']
- ]
- [
- [[macroref TTI_HAS_STATIC_MEMBER]]
- [[macroref TTI_MTFC_HAS_STATIC_MEMBER]]
- [tti::has\_static\_member\_'name']
- ]
- [
- [[macroref TTI_TRAIT_HAS_STATIC_MEMBER]]
- [[macroref TTI_MTFC_TRAIT_HAS_STATIC_MEMBER]]
- [tti::'trait']
- ]
- [
- [[macroref TTI_HAS_STATIC_MEMBER_FUNCTION]]
- [[macroref TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION]]
- [tti::has\_static\_member\_function\_'name']
- ]
- [
- [[macroref TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION]]
- [[macroref TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION]]
- [tti::'trait']
- ]
-]
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIMetafunctions.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIMetafunctions.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,327 +0,0 @@
-[section:tti_metafunctions Nullary Type Metafunctions]
-
-The macro metafunctions provide a complete set of functionality for
-anything one would like to do using the TTI library. Why then do we
-have another set of parallel functionality as nullary type metafunctions ?
-
-The nullary type metafunctions parallel those macro metafunctions in which types are specified
-individually rather than in a composite manner. The individual types are passed to the nullary
-type metafunctions as nullary metafunctions, hence the name of this group of metafunctions.
-They more easily allow a syntax where nested types can be specified without needing to manually
-reach into the 'type' member of TTI\_MEMBER\_TYPE or the 'type' member of its nullary type
-metafunction equivalent called tti::mf\_member\_type.
-
-In a very real way the nullary type metafunctions exist just to provide syntactic improvements
-over the macro metafunctions and are not needed to use the library, since all of the library
-functionality is already provided with the macro metafunctions. Nonetheless syntactic ease of use
-is a very real goal of the TTI library and therefore these metafunctions are provided to allow
-that syntactic improvement.
-
-The nullary type metafunctions reuse the metafunctions generated by the macro metafunctions.
-To do this the result of a corresponding macro metafunction needs to be passed as metadata to a given
-nullary metafunction.
-
-A lambda expression, in the form of a metafunction class or a placeholder expression, is passed as the
-first parameter to our nullary type metafunctions. We have already seen how the TTI library supplies
-metafunction classes through the use of metafunction class macros for each of the macro metafunctions.
-The end-user can use these metafunction classes directly, or can use placeholder expressions with the
-metafunctions generated by the macro metafunctions.
-
-The remaining parameters are 'types'. These 'types' always consist first of the enclosing type and then
-possibly other types which make up the signature of whatever inner element we are introspecting. Each of these
-'types' is passed as a nullary metafunction whose typedef 'type' is the actual type.
-
-The only exception to this use of nullary type metafunctions when specifying 'types' is when a Boost
-function_types tag type, which is optional, is specified as an addition to the function signature.
-Also when dealing with a function signature and parameter types being passed, while the
-parameter 'types' themselves are in the form of nullary metafunctions, the MPL forward sequence
-which contains the parameter 'types' is a plain type and should not be wrapped as a nullary metafunction.
-
-For a type which is in scope, we can always use
-boost::mpl::identity to create our nullary metafunction, and there can never be a compiler error for
-such known types as long as declarations for them exist or it is a built-in C++ type.
-For nested types, which may or may not exist, we can pass the result of TTI\_MEMBER\_TYPE
-or its equivalent nullary type metafunction tti::mf\_member\_type ( explained later ).
-
-To use these metafunctions you need to include the main header file 'tti.hpp',
-unless otherwise noted.
-
-[tip The header file <boost/mpl/identity.hpp> is included by the TTI header files so you need not
-manually include it in order to use boost::mpl::identity to wrap a known type as a nullary
-metafunction for the nullary type metafunctions. Also the header file <boost/mpl/vector.hpp> is
-included by the main TTI header file 'tti.hpp' so if you use an MPL vector as your
-forward sequence wrapper for parameter types, you need not manually include the header file. Finally
-the header file <boost/mpl/placeholders.hpp> is also included by 'tti.hpp' so you need
-not manually include it yourself in order to use placeholder expressions.]
-
-A table of these metafunctions is given, based on the inner element whose
-existence the metaprogrammer is introspecting. A more detailed explanation can be found
-in the reference section, and examples of usage can be found in the
-[link sectti_usingNTM "Using the Nullary Type Metafunctions"] section.
-All of the metafunctions are in the top-level 'tti' namespace,
-all have a particular name based on the type of its functionality, and all begin with the prefix
-'mf_' so as not to conflict with the macro metafunction names generated by the library.
-
-[table:tbmetafunctions TTI Nullary Type Metafunctions
- [
- [Inner Element]
- [Template]
- [Parameters]
- [Macro Equivalent]
- ]
- [
- [Type]
- [
- [classref tti::mf_has_type]
- ]
- [
- class HasType = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
- ]
- [TTI\_HAS\_TYPE]
- ]
- [
- [Type with check]
- [
- [classref tti::mf_has_type]
- ]
- [
- class HasType = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
-
- class U = type to check against nullary metafunction
- ]
- [TTI\_HAS\_TYPE]
- ]
- [
- [Class Template]
- [
- [classref tti::mf_has_template]
- ]
- [
- class HasTemplate = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
- ]
- [TTI\_HAS\_TEMPLATE]
- ]
- [
- [Class Template with params]
- [
- [classref tti::mf_has_template_check_params]
- ]
- [
- class HasTemplateCheckParams = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
- ]
- [
- TTI\_HAS\_TEMPLATE\_CHECK\_PARAMS
-
- TTI\_VM\_HAS\_TEMPLATE\_CHECK\_PARAMS
- ]
- ]
- [
- [Member data]
- [
- [classref tti::mf_has_member_data]
- ]
- [
- class HasMemberData = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
-
- class R = type of member data nullary Metafunction
- ]
- [TTI\_HAS\_MEMBER\_DATA]
- ]
- [
- [Member function]
- [
- [classref tti::mf_has_member_function]
- ]
- [
- class HasMemberFunction = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
-
- class R = return value nullary metafunction
-
- class FS = (optional) a Boost MPL forward sequence of parameter types as nullary metafunctions.
- The forward sequence as a type is not presented as a nullary metafunction.
- If there are no parameters, this may be omitted.
-
- class TAG = (optional) a Boost function_types tag type.
- ]
- [TTI\_HAS\_MEMBER\_FUNCTION]
- ]
- [
- [Static data]
- [
- [classref tti::mf_has_static_data]
- ]
- [
- class HasStaticMember = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
-
- class R = type of static data nullary metafunction
- ]
- [TTI\_HAS\_STATIC\_MEMBER]
- ]
- [
- [Static function]
- [
- [classref tti::mf_has_static_member_function]
- ]
- [
- class HasStaticMemberFunction = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
-
- class R = return value nullary metafunction
-
- class FS = (optional) a Boost MPL forward sequence of parameter types as nullary metafunctions.
- The forward sequence as a type is not presented as a nullary metafunction.
- If there are no parameters, this may be omitted.
-
- class TAG = (optional) a Boost function_types tag type.
- ]
- [TTI\_HAS\_STATIC\_MEMBER\_FUNCTION]
- ]
-]
-
-Other than the use of nearly all types as nullary metafunctions, one other difference
-in the nullary type metafunctions from their macro metafunction counterparts is
-that the signature for member functions, member data, and static member functions
-always involves individual types rather than the combined type notation which
-some of the macro metafunctions use. This allows us to specify nested types
-in those signatures without using the T::InnerType notation.
-
-[heading Nullary type metafunction member_type equivalent]
-
-Just as there is the macro TTI\_MEMBER\_TYPE for creating
-a macro metafunction which returns a nested type if it exists, else an unspecified
-type, there is also the equivalent nullary type metafunction.
-
-[table:tbmetanested TTI Nested Type Nullary Type Metafunction
- [
- [Inner Element]
- [Template]
- [Parameters]
- [Macro Equivalent]
- ]
- [
- [Type]
- [
- [classref tti::mf_member_type]
- ]
- [
- class MemberType = macro metafunction as lambda expression
-
- class T = enclosing type nullary metafunction
- ]
- [TTI\_MEMBER\_TYPE]
- ]
-]
-
-The difference between the macro metafunction TTI\_MEMBER\_TYPE and
-tti::mf\_member\_type is simply that, like the other nullary type metafunctions,
-the latter takes its enclosing type as a nullary metafunction. Both produce the
-exact same result.
-
-The use of this metafunction allows us to created deeply nested types,
-which may or may not exist, as nullary metafunctions in much the same way
-that TTI\_MEMBER\_TYPE can. The difference is
-the simpler syntax when using tti::mf\_member\_type.
-
-As an example, given the theoretical relationship of types we used before:
-
- struct T
- {
- struct AType
- {
- struct BType
- {
- struct CType
- {
- struct FindType
- {
- };
- }
- };
- };
- };
-
-We can use tti::mf_member_type as follows. First we create our corresponding macro metafunctions:
-
- TTI_MEMBER_TYPE(FindType)
- TTI_MEMBER_TYPE(AType)
- TTI_MEMBER_TYPE(BType)
- TTI_MEMBER_TYPE(CType)
-
-Next we can create a typedef to reflect a nested type called FindType, as a nullary metafunction,
-which has the relationship as specified above by using tti::mf\_member\_type.
-
- typedef
- tti::mf_member_type
- <
- tti::member_type_FindType<_>,
- tti::mf_member_type
- <
- tti::member_type_CType<_>,
- tti::mf_member_type
- <
- tti::member_type_BType<_>,
- tti::member_type_AType
- <
- T
- >
- >
- >
- > MyFindType;
-
-The nested type created can be used with the other nullary type metafunctions above.
-The key information above is that the enclosing type, as in all of the nullary type
-metafunctions, is a nullary metafunction itself,
-which means that the enclosing type can be specified as the result
-of using TTI\_MEMBER\_TYPE as well as the
-result of using mf\_member\_type itself.
-
-Both techniques are shown in the example
-above, and the same technique for creating nested types as nullary metafunctions
-can be used with the other functionality of the nullary type metafunctions when
-nested types are needed as 'types'.
-
-Also similar to the macro metafunctions, we have an easy way of testing whether or not
-our tti::mf_member_type nested type actually exists.
-
-[table:existtbmetanested TTI Nested Type Nullary Type Metafunction Existence
- [
- [Inner Element]
- [Template]
- [Parameters]
- ]
- [
- [Type]
- [
- [classref tti::mf_valid_member_type]
- ]
- [
- class T = a type as a nullary metafunction
-
- returns = true if the nullary metafunction's inner 'type' exists, false if it does not.
- 'Existence' is determined by whether the type does not equal an unspecified type.
- ]
- ]
-]
-
-Again note the difference here from the equivalent macro metafunction tti::valid\_member\_type.
-In the example above the type T is passed as a nullary metafunction holding the actual type,
-where for the macro metafunction equivalent the type T is passed as the actual type being tested.
-
-In our next section we will look at examples of nullary type metafunction use.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTINestedType.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTINestedType.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,193 +0,0 @@
-[section:tti_nested_type Nested Types]
-
-[heading The problem]
-
-The goal of the TTI library is never to produce a compiler error by just
-using the functionality in the library, whether it is invoking its function-like macros
-or instantiating the macro metafunctions created by them, and whether the inner element exists
-or not. In this sense The TTI library macros for introspecting an enclosing type for
-an inner element work very well. But there is one exception to this general case.
-That exception is the crux of the discussion regarding nested types which follows.
-
-The metafunctions generated by the TTI macros all work with types, whether in specifying
-an enclosing type or in specifying the type of some inner element, which may also involve
-types in the signature of that element, such as a parameter or return type of a function. The C++ notation for
-a nested type, given an enclosing type 'T' and an inner type 'InnerType', is 'T::InnerType'. If either
-the enclosing type 'T' does not exist, or the inner type 'InnerType' does not exist within 'T',
-the expression 'T::InnerType' will give a compiler error if we attempt to use it in our template
-instantiation of one of TTI's macro metafunctions.
-
-We want to be able to introspect for the existence of inner elements to an enclosing type
-without producing compiler errors. Of course if we absolutely know what types we have and
-that a nested type exists, and these declarations are within our scope, we can always use
-an expression like T::InnerType without error. But this is often not the case when doing template
-programming since the type being passed to us at compile-time in a class or function template
-is chosen at instantiation time.
-
-One solution to this is afforded by the library itself. Given an enclosing type 'T'
-which we know must exist, either because it is a top-level type we know about or
-it is passed to us in some template as a 'class T' or 'typename T', and given an inner type
-named 'InnerType' whose existence we would like ascertain, we can use a TTI_HAS_TYPE(InnerType) macro and it's related
-tti::has_type_InnerType metafunction to determine if the nested type 'InnerType' exists. This solution is perfectly valid
-and, with Boost MPL's selection metafunctions, we can do compile-time selection to generate the
-correct template code.
-
-However this does not scale that well syntactically if we need to drill down further from a
-top-level enclosing type to a deeply nested type, or even to look for some deeply nested type's
-inner elements. We are going to be generating a great deal of boost::mpl::if_ and/or
-boost::mpl::eval_if type selection statements to get to some final condition where we know we
-can generate the compile-time code which we want.
-
-[heading The solution]
-
-The TTI library offers a better solution in the form of constructs which work with
-nested types without producing a compiler error if the nested type does not exist, but still
-are able to do the introspecting for inner elements that our TTI macro metafunctions do.
-
-We have already seen one of those constructs, the macro TTI\_MEMBER\_TYPE,
-which generates a metafunction based on the name
-of an inner type. But instead of telling us whether that inner type exists it instead returns
-a typedef 'type' which is that inner type if it exists, else it is an unspecified type if it
-does not. In this way we have created a metafunction, very similar in functionality to
-boost::mpl::identity, but which still returns some unspecified marker 'type' if our nested type is invalid.
-
-We can use the functionality of TTI\_MEMBER\_TYPE to construct nested types
-for our other macro metafunctions, without having to use the T::InnerType syntax and produce a compiler
-error if no such type actually exists within our scope. We can even do this in deeply nested contexts
-by stringing together, so to speak, a series of these macro metafunction results.
-
-As an example, given a type T, let us create a metafunction where there is a nested type FindType
-whose enclosing type is eventually T, as represented by the following structure:
-
- struct T
- {
- struct AType
- {
- struct BType
- {
- struct CType
- {
- struct FindType
- {
- };
- }
- };
- };
- };
-
-In our TTI code we first create a series of member type macros for each of our nested
-types:
-
- TTI_MEMBER_TYPE(FindType)
- TTI_MEMBER_TYPE(AType)
- TTI_MEMBER_TYPE(BType)
- TTI_MEMBER_TYPE(CType)
-
-Next we can create a typedef to reflect a nested type called FindType which has the relationship
-as specified above by instantiating our macro metafunctions.
-
- typedef typename
- tti::member_type_FindType
- <
- typename tti::member_type_CType
- <
- typename tti::member_type_BType
- <
- typename tti::member_type_AType
- <
- T
- >::type
- >::type
- >::type
- >::type MyFindType;
-
-We can use the above typedef to pass the type as FindType
-to one of our macro metafunctions. FindType may not actually exist but we will not generate
-a compiler error when we use it.
-
-As one example, let's ask whether FindType has a static member data called MyData of type 'int'. We add:
-
- TTI_HAS_STATIC_MEMBER(MyData)
-
-Next we create our metafunction:
-
- tti::has_static_member_MyData
- <
- MyFindType,
- int
- >
-
-and use this in our metaprogramming code. Our metafunction now tells us whether the nested type
-FindType has a static member data called MyData of type 'int', even if FindType does not actually
-exist as we have specified it as a type.
-
-We can also directly find out whether the deeply nested type 'FindType'
-actually exists in a similar manner. Our metafunction would be:
-
- TTI_HAS_TYPE(FindType)
-
- tti::has_type_FindType
- <
- typename
- tti::member_type_CType
- <
- typename
- tti::member_type_BType
- <
- typename
- tti::member_type_AType
- <
- T
- >::type
- >::type
- >::type
- >
-
-Because this duplicates much of our code for the 'MyFindType' typedef to
-create our nested type, we can instead, and much more easily, pass our type 'MyFindType', since we already
-have it in the form of a type,
-to another metafunction called 'tti::valid_member_type', which returns a boolean constant
-which is 'true' if our nested exists or 'false' if it does not.
-
-Using this functionality with our 'MyFindType' type above
-we could create the nullary metafunction:
-
- tti::valid_member_type
- <
- MyFindType
- >
-
-directly instead of replicating the same functionality with our 'tti::has_type_FindType' metafunction.
-
-The using of TTI\_MEMBER\_TYPE to create a nested type which may or may not exist, and which can
-subsequently be used with our macro metafunctions whenever a nested type is required, without producing
-a compiler error when the type does not actually exist, is the main reason we have separate
-but similar functionality among our macro metafunctions to determine whether a member data, a member function, or a static member
-function exists within an enclosing type.
-
-In the more general case, when using TTI\_HAS\_MEMBER and TTI\_HAS\_STATIC\_MEMBER, the signature for the member
-data, member function, and the function portion of a static member function is a composite type. This makes
-for a syntactical notation which is easy to specify, but because of that composite type notation we
-can not use the nested type functionality in TTI\_MEMBER\_TYPE very easily. But
-when we use the TTI\_HAS\_MEMBER\_DATA, TTI\_HAS\_MEMBER\_FUNCTION, and TTI\_HAS\_STATIC\_MEMBER\_FUNCTION
-the composite types in our signatures are broken down into their individual types so that using
-TTI\_MEMBER\_TYPE, if necessary, for one of the individual types is easy.
-
-[heading A more elegant solution]
-
-Although using TTI\_MEMBER\_TYPE represents a good solution to creating a nested type
-without the possible compile-time error of the T::InnerType syntax, reaching in to
-specify all those ::type expressions, along with their repeated 'typename',
-does get syntactically tedious.
-
-Because of this the TTI library offers a parallel set of
-metafunctions to the macro metafunctions where the 'types' specified are themselves nullary metafunctions.
-This parallel set of metafunctions, using nullary metafunctions to specify individual types,
-rather than the actual types themselves,
-are called 'nullary type metafunctions'. In this group there is also a nullary metafunction
-paralleling our TTI\_MEMBER\_TYPE macro metafunction, and therefore a further construct
-making the specifying of nested types easy and error-free to use.
-
-This group of nullary type metafunctions will be fully explained later.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIReference.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIReference.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1 +0,0 @@
-[xinclude TypeTraitsIntrospectionReference.xml]
Deleted: sandbox/tti/libs/tti/doc/TTITerminology.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTITerminology.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,21 +0,0 @@
-[section:tti_terminology Terminology]
-
-The term "enclosing type" refers to the type which is being introspected.
-This type is always a class, struct, or union.
-
-The term "inner xxx", where xxx is some element of the enclosing type,
-refers to either a type, template, function, or data within the enclosing
-type. The term "inner element" also refers to any one of these entities in general.
-
-I use the term "nested type" to refer to a type within another type.
-I use the term "member function" or "member data" to refer to non-static
-functions or data that are part of the enclosing type.
-I use the term "static member function" or "static member data" to refer to static
-functions or data that are part of the enclosing type.
-I use the term "nested class template" to refer to a class template
-nested within the enclosing type.
-
-Other terminology may be just as valid for the notion of C++ language
-elements within a type, but I have chosen these terms to be consistent.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTITests.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTITests.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,20 +0,0 @@
-[section:tti_tests Testing TTI]
-
-In the libs/tti/test subdirectory there is a jamfile
-which can be used to test TTI functionality.
-
-Executing the jamfile without a target will run tests
-for both basic TTI and for the variadic macro
-portion of TTI. To successfully do that you need to
-get the variadic_macro_data library from the sandbox.
-You can run tests for only the basic TTI, which is the
-vast majority of TTI functionality, by specifying only
-the 'tti' target when executing the jamfile, and therefore
-you would not need the variadic_macro_data library. If you
-just want to run the tests for the variadic macro portion
-of TTI, specify the target as 'ttiVM'.
-
-The TTI library has been tested with VC++ 8, 9, 10 and with
-gcc 3.4.2, 3.4.5, 4.3.0, 4.4.0, 4.5.0-1, and 4.5.2-1.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIToDo.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIToDo.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,7 +0,0 @@
-[section:tti_todo ToDo]
-
-* See if function templates can be introspected.
-* Improve tests
-* Improve documentation
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIUsingMM.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIUsingMM.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,269 +0,0 @@
-[section:tti_usingMM Using the Macro Metafunctions]
-[#sectti_usingMM]
-
-Using the macro metafunctions can be illustrated by first creating some hypothetical
-user-defined type with corresponding nested types and other inner elements.
-With this type we can illustrate the use of the macro metafunctions. This is
-just meant to serve as a model for what a type T might entail from within
-a class or function template.
-
- // An enclosing type
-
- struct AType
- {
-
- // Type
-
- typedef int AnIntType; // as a typedef
-
- struct BType // as a nested type
- {
- struct CType
- {
- };
- };
-
- // Template
-
- template <class> struct AMemberTemplate { };
- template <class,class,int,class,template <class> class InnerTemplate,class,long> struct ManyParameters { };
- template <class,class,int,short,class,template <class,int> class InnerTemplate,class> struct MoreParameters { };
-
- // Data
-
- BType IntBT;
-
- // Function
-
- int IntFunction(short) { return 0; }
-
- // Static Data
-
- static short DSMember;
-
- // Static Function
-
- static int SIntFunction(long,double) { return 2; }
-
- };
-
-I will be using the type above just to illustrate the sort of
-metaprogramming questions we can ask of some type T which is passed
-to the template programmer in a class template. Here is what the
-class template might look like:
-
- #include <boost/tti.hpp>
-
- template<class T>
- struct OurTemplateClass
- {
-
- // compile-time template code regarding T
-
- };
-
-Now let us create and invoke the macro metafunctions for each of our inner element types,
-to see if type T above corresponds to our hypothetical type above. Imagine this being
-within 'OurTemplateClass' above. In the examples below the same macro is invoked just once
-to avoid ODR violations.
-
-[heading Type]
-
-Does T have a nested type called 'AnIntType' ?
-
- TTI_HAS_TYPE(AnIntType)
-
- tti::has_type_AnIntType
- <
- T
- >
-
-Does T have a nested type called 'BType' ?
-
- TTI_HAS_TYPE(BType)
-
- tti::has_type_BType
- <
- T
- >
-
-[heading Type checking the typedef]
-
-Does T have a nested typedef called 'AnIntType' whose type is an 'int' ?
-
- tti::has_type_AnIntType
- <
- T,
- int
- >
-
-[heading Template]
-
-Does T have a nested class template called 'AMemberTemplate' whose template
-parameters are all types ('class' or 'typename') ?
-
- TTI_HAS_TEMPLATE(AMemberTemplate)
-
- tti::has_template_AMemberTemplate
- <
- T
- >
-
-[heading Template with params]
-
-Does T have a nested class template called 'MoreParameters' whose template
-parameters are specified exactly ?
-
- TTI_HAS_TEMPLATE_CHECK_PARAMS(MoreParameters,(class)(class)(int)(short)(class)(template <class)(int> class InnerTemplate)(class))
-
- tti::has_template_check_params_MoreParameters
- <
- T
- >
-
-[heading Template with params using variadic macros]
-
-[note Include the 'tti_vm.hpp' header file
-when using this macro.]
-
-Does T have a nested class template called 'ManyParameters' whose template
-parameters are specified exactly ?
-
- TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,long)
-
- tti::has_template_check_params_ManyParameters
- <
- T
- >
-
-[heading Member data with composite type]
-
-Does T have a member data called 'IntBT' whose type is 'AType::BType' ?
-
- TTI_HAS_MEMBER(IntBT)
-
- tti::has_member_IntBT
- <
- AType::BType T::*
- >
-
-[heading Member data with individual types]
-
-Does T have a member data called 'IntBT' whose type is 'AType::BType' ?
-
- TTI_HAS_MEMBER_DATA(IntBT)
-
- tti::has_member_data_IntBT
- <
- T,
- AType::BType
- >
-
-[heading Member function with composite type]
-
-Does T have a member function called 'IntFunction' whose type is
-'int (short)' ?
-
- TTI_HAS_MEMBER(IntFunction)
-
- tti::has_member_IntFunction
- <
- int (T::*)(short)
- >
-
-[heading Member function with individual types]
-
-Does T have a member function called 'IntFunction' whose type is
-'int (short)' ?
-
- TTI_HAS_MEMBER_FUNCTION(IntFunction)
-
- tti::has_member_function_IntFunction
- <
- T,
- int,
- boost::mpl::vector<short>
- >
-
-[heading Static member data]
-
-Does T have a static member data called 'DSMember' whose type is 'short' ?
-
- TTI_HAS_STATIC_MEMBER(DSMember)
-
- tti::has_static_member_DSMember
- <
- T,
- short
- >
-
-[heading Static member function with composite type]
-
-Does T have a static member function called 'SIntFunction' whose type
-is 'int (long,double)' ?
-
- TTI_HAS_STATIC_MEMBER(SIntFunction)
-
- tti::has_static_member_SIntFunction
- <
- T,
- int (long,double)
- >
-
-[heading Static member function with individual types]
-
-Does T have a static member function called 'SIntFunction' whose type
-is 'int (long,double)' ?
-
- TTI_HAS_STATIC_MEMBER(SIntFunction)
-
- tti::has_static_member_SIntFunction
- <
- T,
- int,
- boost::mpl::vector<long,double>
- >
-
-[heading Member type]
-
-Create a nested type T::BType::CType without creating a compiler error
-if T does not have the nested type BType::CType ?
-
- TTI_MEMBER_TYPE(BType)
- TTI_MEMBER_TYPE(CType)
-
- typename
- tti::member_type_CType
- <
- typename
- tti::member_type_BType
- <
- T
- >::type
- >::type
-
-[heading Member type existence]
-
-Does a nested type T::BType::CType, created without creating a compiler error
-if T does not have the nested type BType::CType, actually exist ?
-
- TTI_MEMBER_TYPE(BType)
- TTI_MEMBER_TYPE(CType)
-
- typedef typename
- tti::member_type_CType
- <
- typename
- tti::member_type_BType
- <
- T
- >::type
- >::type
- AType;
-
- tti::valid_member_type
- <
- AType
- >
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIUsingNTM.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIUsingNTM.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,265 +0,0 @@
-[section:tti_usingNTM Using the Nullary Type Metafunctions]
-[#sectti_usingNTM]
-
-Using the nullary type metafunctions can be illustrated by first creating some hypothetical
-user-defined type with corresponding nested types and other inner elements.
-This user-defined type will be weighted toward showing deeply nested types and elements within
-those nested types. With this type we can illustrate the use of the nullary type metafunctions. This is
-just meant to serve as a model for what a type T might entail from within
-a class or function template.
-
- // An enclosing type
-
- struct T
- {
-
- // Type
-
- struct BType // as a nested type
- {
-
- // Template
-
- template <class,class,int,class,template <class> class InnerTemplate,class,long> struct ManyParameters { };
-
- // Type
-
- struct CType // as a further nested type
- {
-
- // Template
-
- template <class> struct AMemberTemplate { };
-
- // Type
-
- struct DType // as a futher nested type
- {
-
- // Type
-
- typedef double ADoubleType;
-
- // Template
-
- template <class,class,int,short,class,template <class,int> class InnerTemplate,class> struct MoreParameters { };
-
- // Function
-
- int IntFunction(short) const { return 0; }
-
- // Static Data
-
- static short DSMember;
-
- // Static Function
-
- static int SIntFunction(long,double) { return 2; }
-
- };
- };
- };
-
- // Data
-
- BType IntBT;
-
- };
-
-I will be using the type above just to illustrate the sort of
-metaprogramming questions we can ask of some type T which is passed
-to the template programmer in a class template. Here is what the
-class template might look like:
-
- #include <boost/tti.hpp>
-
- template<class T>
- struct OurTemplateClass
- {
-
- // compile-time template code regarding T
-
- };
-
-Now let us create and invoke the nested metafunctions for each of our inner element types,
-to see if type T above corresponds to our hypothetical type above. Imagine this being
-within 'OurTemplateClass' above. In the examples below the same macro is invoked just once
-to avoid ODR violations.
-
-I will also be mixing the way the macro metafunction metadata is passed to our
-nullary type metafunctions, whether as a metafunction class or as a placeholder
-expression. Both will work just fine since our nullary type metafunctions work
-with any lambda expression as the first template parameter.
-
-[heading Member type]
-
-We start off by creating typedef's, as nullary metafunctions, for our
-theoretical inner types in relation to T . None of these typedefs
-will produce a compiler error even if our structure does not correspond
-to T's reality. This also illustrates using 'tti::mf_member_type'.
-
- TTI_MEMBER_TYPE(BType)
- TTI_MTFC_MEMBER_TYPE(CType)
- TTI_MEMBER_TYPE(DType)
-
- typedef
- tti::mf_member_type
- <
- tti::member_type_BType<_>,
- boost::mpl::identity<T>
- >
- BTypeNM;
-
- typedef
- tti::mf_member_type
- <
- tti::mtfc_member_type_CType,
- BTypeNM
- >
- CTypeNM;
-
- typedef
- tti::mf_member_type
- <
- tti::member_type_DType<_>,
- CTypeNM
- >
- DTypeNM;
-
-We will use these typedefs in the ensuing examples.
-
-[heading Type]
-
-Does T have a nested type called 'DType' within 'BType::CType' ?
-
- TTI_HAS_TYPE(DType)
-
- tti::mf_has_type
- <
- tti::has_type_DType<_>,
- CTypeNM
- >
-
-We could just have easily used the tti::mf_valid_member_type
-metafunction to the same effect:
-
- tti::mf_valid_member_type
- <
- DTypeNM
- >
-
-[heading Type checking the typedef]
-
-Does T have a nested typedef called 'ADoubleType'
-within 'BType::CType::DType' whose type is a 'double' ?
-
- TTI_MTFC_HAS_TYPE(ADoubleType)
-
- tti::mf_has_type
- <
- tti::mtfc_has_type_ADoubleType,
- DTypeNM,
- boost::mpl::identity<double>
- >
-
-[heading Template]
-
-Does T have a nested class template called 'AMemberTemplate'
-within 'BType::CType' whose template parameters are all types ('class' or 'typename') ?
-
- TTI_MTFC_HAS_TEMPLATE(AMemberTemplate)
-
- tti::mf_has_template
- <
- tti::mtfc_has_template_AMemberTemplate,
- CTypeNM
- >
-
-[heading Template with params]
-
-Does T have a nested class template called 'ManyParameters'
-within 'BType' whose template parameters are specified exactly ?
-
- TTI_HAS_TEMPLATE_CHECK_PARAMS(ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(long))
-
- tti::mf_has_template_check_params
- <
- tti::has_template_check_params_ManyParameters<_>,
- BTypeNM
- >
-
-[heading Template with params using variadic macros]
-
-Does T have a nested class template called 'MoreParameters'
-within 'BType::CType' whose template parameters are specified exactly ?
-
-[note Include the 'tti_vm.hpp' header file
-when using this macro.]
-
- TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(MoreParameters,class,class,int,short,class,template <class,int> class InnerTemplate,class)
-
- tti::mf_has_template_check_params
- <
- tti::mtfc_has_template_check_params_MoreParameters,
- CTypeNM
- >
-
-[heading Member data]
-
-Does T have a member data called 'IntBT' whose type is 'BType' ?
-
- TTI_MTFC_HAS_MEMBER_DATA(IntBT)
-
- tti::mf_has_member_data
- <
- tti::mtfc_has_member_data_IntBT,
- boost::mpl::identity<T>,
- BTypeNM
- >
-
-[heading Member function]
-
-Does T have a member function called 'IntFunction'
-within 'BType::CType::DType' whose type is 'int (short) const' ?
-
- TTI_HAS_MEMBER_FUNCTION(IntFunction)
-
- tti::mf_has_member_function
- <
- tti::has_member_function_IntFunction<_,_,_,_>,
- DTypeNM,
- boost::mpl::identity<int>,
- boost::mpl::vector<boost::mpl::identity<short> >,
- boost::function_types::const_qualified
- >
-
-[heading Static member data]
-
-Does T have a static member data called 'DSMember'
-within 'BType::CType::DType' whose type is 'short' ?
-
- TTI_MTFC_HAS_STATIC_MEMBER(DSMember)
-
- tti::mf_has_static_data
- <
- tti::mtfc_has_static_member_DSMember,
- DTypeNM,
- boost::mpl::identity<short>
- >
-
-[heading Static member function]
-
-Does T have a static member function called 'SIntFunction'
-within 'BType::CType::DType' whose type is 'int (long,double)' ?
-
- TTI_HAS_STATIC_MEMBER_FUNCTION(SIntFunction)
-
- tti::mf_has_static_member_function
- <
- tti::has_static_member_function_SIntFunction<_,_,_>,
- DTypeNM,
- boost::mpl::identity<int>,
- boost::mpl::vector<boost::mpl::identity<long>,boost::mpl::identity<double> >
- >
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TTIWhy.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TTIWhy.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,31 +0,0 @@
-[section:tti_reason Why the TTI Library ?]
-
-In the Boost Type Traits library there is compile time functionality for
-querying information about a C++ type. This information is very useful
-during template metaprogramming and forms the basis, along with the
-constructs of the Boost MPL library, and some other compile time
-libraries, for much of the template metaprogramming in Boost.
-
-One area which is mostly missing in the Type Traits library is the ability
-to determine what C++ inner elements are part of a type, where the inner
-element may be a nested type, function or data member, static function or
-static data member, or class template.
-
-There has been some of this functionality in Boost, both in already existing
-libraries and in libraries on which others have worked but which were
-never submitted for acceptance into Boost. An example with an existing Boost
-library is Boost MPL, where there is functionality, in the form of macros and metafunctions,
-to determine whether an enclosing type has a particular nested type or nested
-class template. An example with a library which was never submitted to Boost
-is the Concept Traits Library from which much of the functionality of this
-library, related to type traits, was taken and improved upon.
-
-It may also be possible that some other Boost libraries, highly dependent
-on advanced template metaprogramming techniques, also have internal
-functionality to introspect a type's elements at compile time. But to the best
-of my knowledge this sort of functionality has never been incorporated in
-a single Boost library. This library is an attempt to do so, and to bring
-a recognizable set of interfaces to compile-time type introspection to Boost
-so that other metaprogramming libraries can use them for their own needs.
-
-[endsect]
Deleted: sandbox/tti/libs/tti/doc/TypeTraitsIntrospection.qbk
==============================================================================
--- sandbox/tti/libs/tti/doc/TypeTraitsIntrospection.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
+++ (empty file)
@@ -1,28 +0,0 @@
-[library The Type Traits Introspection Library
- [quickbook 1.5]
- [version 1.3]
- [id tti]
- [dirname tti]
- [copyright 2010 Tropic Software East Inc]
- [purpose Compile time introspection of a type]
- [category generic]
- [authors [Diener, Edward]]
- [source-mode c++]
-]
-
-[include TTIIntroduction.qbk]
-[include TTIWhy.qbk]
-[include TTITerminology.qbk]
-[include TTIFunctionality.qbk]
-[include TTIDetail.qbk]
-[include TTINestedType.qbk]
-[include TTIUsingMM.qbk]
-[include TTIMetaClasses.qbk]
-[include TTIMetafunctions.qbk]
-[include TTIUsingNTM.qbk]
-[include TTIReference.qbk]
-[include TTITests.qbk]
-[include TTIHistory.qbk]
-[include TTIToDo.qbk]
-[include TTIAcknowledgements.qbk]
-[include TTIIndex.qbk]
Copied: sandbox/tti/libs/tti/doc/tti_acknowledgements.qbk (from r68720, /sandbox/tti/libs/tti/doc/TTIAcknowledgements.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIAcknowledgements.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_acknowledgements.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -1,7 +1,7 @@
[section:tti_acknowledgments Acknowledgments]
The TTI library came out of my effort to take the
-type_traits_ext part of the unfinished Concept Traits
+type\_traits\_ext part of the unfinished Concept Traits
Library and expand it. So my first thanks go to
Terje Slettebo and Tobias Schwinger, the authors of
the CTL. I have taken, and hopefully improved upon,
Copied: sandbox/tti/libs/tti/doc/tti_detail.qbk (from r68768, /sandbox/tti/libs/tti/doc/TTIDetail.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIDetail.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_detail.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -17,7 +17,7 @@
in the reference section, and examples of usage can be found in the
[link sectti_usingMM "Using the Macro Metafunctions"] section.
In the Template column only the name generated by the simple form
-of the template is given since the name generated by the complex form is always tti::trait
+of the template is given since the name generated by the complex form is always boost::tti::trait
where 'trait' is the first parameter to the corresponding complex form macro. All of the
introspecting metafunctions in the table below return a boolean constant called 'value', which
specifies whether or not the inner element exists.
@@ -31,10 +31,10 @@
[
[Type]
[
- [macroref TTI_HAS_TYPE](name)
+ [macroref BOOST_TTI_HAS_TYPE](name)
]
[
- tti::has\_type\_'name'
+ boost::tti::has\_type\_'name'
class T = enclosing type
]
@@ -42,10 +42,10 @@
[
[Type with check]
[
- [macroref TTI_HAS_TYPE](name)
+ [macroref BOOST_TTI_HAS_TYPE](name)
]
[
- tti::has\_type\_'name'
+ boost::tti::has\_type\_'name'
class T = enclosing type
@@ -55,10 +55,10 @@
[
[Class Template]
[
- [macroref TTI_HAS_TEMPLATE](name)
+ [macroref BOOST_TTI_HAS_TEMPLATE](name)
]
[
- tti::has\_template\_'name'
+ boost::tti::has\_template\_'name'
class T = enclosing type
@@ -68,21 +68,21 @@
[
[Class Template with params]
[
- [macroref TTI_HAS_TEMPLATE_CHECK_PARAMS](name,ppSeq[footnote A Boost PP data sequence with each comma separated portion of the template parameters as its own sequence element.])
+ [macroref BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS](name,ppSeq[footnote A Boost PP data sequence with each comma separated portion of the template parameters as its own sequence element.])
]
[
- tti::has\_template\_check\_params\_'name'
+ boost::tti::has\_template\_check\_params\_'name'
class T = enclosing type
]
]
[
- [Class Template with params using variadic macros[footnote Header file is tti_vm.hpp.]]
+ [Class Template with params using variadic macros[footnote Header file is tti\_vm.hpp.]]
[
- [macroref TTI_VM_HAS_TEMPLATE_CHECK_PARAMS](name,...[footnote The template parameters as variadic data.])
+ [macroref BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS](name,...[footnote The template parameters as variadic data.])
]
[
- tti::has\_template\_check\_params\_'name'
+ boost::tti::has\_template\_check\_params\_'name'
class T = enclosing type
]
@@ -90,10 +90,10 @@
[
[Member data or function]
[
- [macroref TTI_HAS_MEMBER](name)
+ [macroref BOOST_TTI_HAS_MEMBER](name)
]
[
- tti::has\_member\_'name'
+ boost::tti::has\_member\_'name'
class T = pointer to data or function member
@@ -105,10 +105,10 @@
[
[Member data as individual types]
[
- [macroref TTI_HAS_MEMBER_DATA](name)
+ [macroref BOOST_TTI_HAS_MEMBER_DATA](name)
]
[
- tti::has\_member\_data\_'name'
+ boost::tti::has\_member\_data\_'name'
class T = enclosing type
@@ -118,10 +118,10 @@
[
[Member function as individual types]
[
- [macroref TTI_HAS_MEMBER_FUNCTION](name)
+ [macroref BOOST_TTI_HAS_MEMBER_FUNCTION](name)
]
[
- tti::has\_member\_function\_'name'
+ boost::tti::has\_member\_function\_'name'
class T = enclosing type
@@ -131,17 +131,17 @@
If there are no function parameters this does not have to be specified.
Defaults to boost::mpl::vector<>.
- class TAG = (optional) Boost function_types tag type.
- Defaults to boost::function_types::null_tag.
+ class TAG = (optional) Boost function\_types tag type.
+ Defaults to boost::function\_types::null\_tag.
]
]
[
[Static member data or static member function]
[
- [macroref TTI_HAS_STATIC_MEMBER](name)
+ [macroref BOOST_TTI_HAS_STATIC_MEMBER](name)
]
[
- tti::has\_static\_member\_'name'
+ boost::tti::has\_static\_member\_'name'
class T = enclosing type
@@ -155,10 +155,10 @@
[
[Static member function as individual types]
[
- [macroref TTI_HAS_STATIC_MEMBER_FUNCTION](name)
+ [macroref BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION](name)
]
[
- tti::has\_static\_member\_function\_'name'
+ boost::tti::has\_static\_member\_function\_'name'
class T = enclosing type
@@ -168,8 +168,8 @@
If there are no function parameters this does not have to be specified.
Defaults to boost::mpl::vector<>.
- class TAG = (optional) Boost function_types tag type.
- Defaults to boost::function_types::null_tag.
+ class TAG = (optional) Boost function\_types tag type.
+ Defaults to boost::function\_types::null\_tag.
]
]
]
@@ -188,10 +188,10 @@
[
[Type]
[
- [macroref TTI_MEMBER_TYPE](name)
+ [macroref BOOST_TTI_MEMBER_TYPE](name)
]
[
- tti::member\_type\_'name'
+ boost::tti::member\_type\_'name'
class T = enclosing type
@@ -202,7 +202,7 @@
Along with this macro metafunction we have another metafunction which, when passed a 'type',
which can be any type but which will generally be used with the type returned by
-invoking the metafunction generated by TTI\_MEMBER\_TYPE, will tell use whether the type exists
+invoking the metafunction generated by BOOST\_TTI\_MEMBER\_TYPE, will tell use whether the type exists
or not as a boolean constant.
[table:existtbmacronested TTI Nested Type Macro Metafunction Existence
@@ -215,7 +215,7 @@
[Type]
[None]
[
- [classref tti::valid_member_type]
+ [classref boost::tti::valid_member_type]
class T = a type
@@ -225,7 +225,7 @@
]
]
-The usefulness of the TTI\_MEMBER\_TYPE macro metafunction will be shown
+The usefulness of the BOOST\_TTI\_MEMBER\_TYPE macro metafunction will be shown
in the next topic when I explain the problem of specifying nested types and how TTI solves
it.
Copied: sandbox/tti/libs/tti/doc/tti_functionality.qbk (from r68610, /sandbox/tti/libs/tti/doc/TTIFunctionality.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIFunctionality.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_functionality.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -21,20 +21,20 @@
introspect the information that is needed. The name itself of the inner element is always passed
to the macro as a macro parameter, but other macro parameters may also be needed in some cases.
-All of the macros start with the prefix TTI_, create their metafunctions in a top-level
+All of the macros start with the prefix BOOST\_TTI\_, create their metafunctions in a top-level
namespace called 'tti', and come in two forms:
# In the simplest form the 'name' of the inner element is used directly to generate the name
of the metafunction as well as serving as the 'name' to introspect. To generate the name of
- the metafunction the 'name' is appended to the name of the macro, with the TTI_ prefix removed,
+ the metafunction the 'name' is appended to the name of the macro, with the BOOST\_TTI\_ prefix removed,
a final underscore added, and the macro part of the name in lower case. As an example, for the
- macro TTI_HAS_TYPE(MyType) the name of the metafunction is 'tti::has_type_MyType' and it will
+ macro BOOST\_TTI\_HAS\_TYPE(MyType) the name of the metafunction is 'boost::tti::has_type_MyType' and it will
look for an inner type called 'MyType'.
# In the slightly more complicated form, which I call the complex form, the macro starts with
- TTI\_TRAIT\_ and a 'trait' name is passed as the first parameter, with the 'name' of the inner
+ BOOST\_TTI\_TRAIT\_ and a 'trait' name is passed as the first parameter, with the 'name' of the inner
element as the second parameter. The 'trait' name serves only to completely name the metafunction in
- the tti namespace. As an example, for the macro TTI_TRAIT_HAS_TYPE(MyTrait,MyType) the name of
- the metafunction is 'tti::MyTrait' and it will look for an inner type called 'MyType'. Every
+ the tti namespace. As an example, for the macro BOOST\_TTI\_TRAIT\_HAS\_TYPE(MyTrait,MyType) the name of
+ the metafunction is 'boost::tti::MyTrait' and it will look for an inner type called 'MyType'. Every
macro has a corresponding complex form.
[important When introspecting a particular inner element any given macro metafunction generated
Copied: sandbox/tti/libs/tti/doc/tti_history.qbk (from r68768, /sandbox/tti/libs/tti/doc/TTIHistory.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIHistory.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_history.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -2,8 +2,11 @@
[heading Version 1.3]
-* Changed the filenames to lower case and undescores.
* The names of the main header files are shortened to 'tti.hpp' and 'tti_vm.hpp'.
+* The library follows the Boost conventions.
+ * Changed the filenames to lower case and undescores.
+ * The top-level tti namespace has become the boost::tti namespace.
+ * The macros now start with BOOST\_TTI\_ rather than just TTI\_ as previously.
[heading Version 1.2]
@@ -15,20 +18,20 @@
* Library now also compiles with gcc 3.4.2 and gcc 3.4.5.
* Examples of use have been added to the documentation.
* In the documentation the previously mentioned 'nested type metafunctions' are now called "nullary type metafunctions'.
-* TTI_HAS_TYPE and tti::mf_has_type now have optional typedef checking.
+* BOOST\_TTI\_HAS\_TYPE and boost::tti::mf\_has\_type now have optional typedef checking.
* New macro metafunction functionality which allows composite typed to be treated as individual types has been implemented. These include:
- * TTI_HAS_MEMBER_DATA
- * TTI_HAS_MEMBER_FUNCTION
- * TTI_HAS_STATIC_MEMBER_FUNCTION
-* New nullary type metafunction tti::mf_has_static_member_function uses the new underlying TTI_HAS_STATIC_MEMBER_FUNCTION macro metafunction.
- Its signature uses an optional MPL forward sequence for the parameter types and an optional Boost function_types tag type.
-* New nullary type metafunctions tti::valid_member_type and tti::mf_valid_member_type for checking if the 'type' returned from invoking the TTI_MEMBER_TYPE or tti::mf_member_type metafunctions is valid.
+ * BOOST\_TTI\_HAS\_MEMBER\_DATA
+ * BOOST\_TTI\_HAS\_MEMBER\_FUNCTION
+ * BOOST\_TTI\_HAS\_STATIC\_MEMBER\_FUNCTION
+* New nullary type metafunction boost::tti::mf\_has\_static\_member\_function uses the new underlying BOOST\_TTI\_HAS\_STATIC\_MEMBER\_FUNCTION macro metafunction.
+ Its signature uses an optional MPL forward sequence for the parameter types and an optional Boost function\_types tag type.
+* New nullary type metafunctions boost::tti::valid\_member\_type and boost::tti::mf\_valid\_member\_type for checking if the 'type' returned from invoking the BOOST\_TTI\_MEMBER\_TYPE or boost::tti::mf\_member\_type metafunctions is valid.
* Breaking changes
- * TTI_HAS_TYPE_CHECK_TYPEDEF and tti::mf_has_type_check_typedef have been removed, and the functionality in them folded into TTI_HAS_TYPE and tti::mf_has_type.
- * TTI_MEMBER_TYPE and tti::mf_member_type no longer also return a 'valid' boolean constant. Use tti::valid_member_type or tti::mf_valid_member_type metafunctions instead ( see above ).
- * tti::mf_has_static_function has been removed and its functionality moved to tti::mf_has_static_member_function ( see above ).
- * tti::mf_member_data uses the new underlying TTI_HAS_MEMBER_DATA macro metafunction.
- * The signature for tti::mf_has_member_function has changed to use an optional MPL forward sequence for the parameter types and an optional Boost function_types tag type.
+ * BOOST\_TTI\_HAS\_TYPE\_CHECK\_TYPEDEF and boost::tti::mf\_has\_type\_check\_typedef have been removed, and the functionality in them folded into BOOST\_TTI\_HAS\_TYPE and boost::tti::mf\_has\_type.
+ * BOOST\_TTI\_MEMBER\_TYPE and boost::tti::mf\_member\_type no longer also return a 'valid' boolean constant. Use boost::tti::valid\_member\_type or boost::tti::mf\_valid\_member\_type metafunctions instead ( see above ).
+ * boost::tti::mf\_has\_static\_function has been removed and its functionality moved to boost::tti::mf\_has\_static\_member\_function ( see above ).
+ * boost::tti::mf\_member\_data uses the new underlying BOOST\_TTI\_HAS\_MEMBER\_DATA macro metafunction.
+ * The signature for boost::tti::mf\_has\_member\_function has changed to use an optional MPL forward sequence for the parameter types and an optional Boost function\_types tag type.
* All nullary type metafunctions take their corresponding macro metafunction parameter as a class in the form of a Boost MPL lambda expression instead of as a template template parameter as previously.
Using a placeholder expression is the easiest way to pass the corresponding macro metafunction to its nullary type metafunction.
Copied: sandbox/tti/libs/tti/doc/tti_introduction.qbk (from r68768, /sandbox/tti/libs/tti/doc/TTIIntroduction.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIIntroduction.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_introduction.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -61,7 +61,7 @@
[headerref boost/tti/tti_vm.hpp 'tti_vm.hpp'].
Furthermore there is a third header file which both of the header
-files above include, called 'mf_template_params.hpp' but
+files above include, called 'mf\_template\_params.hpp' but
this should never be included itself but only through either
of the main header files.
@@ -69,9 +69,9 @@
Boost Type Traits, and Boost Function Types.
If the secondary header is used the library is also dependent
-on the variadic_macro_data library currently in the sandbox.
+on the variadic\_macro\_data library currently in the sandbox.
If the secondary header is not used there is no need to download
-the variadic_macro_data library and use it in any way.
+the variadic\_macro\_data library and use it in any way.
Since the dependencies of the library are all header only
libraries, there is no need to build anything in order to use
Copied: sandbox/tti/libs/tti/doc/tti_meta_classes.qbk (from r68757, /sandbox/tti/libs/tti/doc/TTIMetaClasses.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIMetaClasses.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_meta_classes.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -26,7 +26,7 @@
just as there is for the macro metafunctions. For each macro metafunction,
the name for the corresponding metafunction class macro is the macro
metafunction name with the sequence 'MTFC\_' ( for "MeTaFunction Class" )
-following the TTI\_ ( or TTI\_VM\_ ) portion of the macro metafunction name.
+following the BOOST\_TTI\_ ( or BOOST\_TTI\_VM\_ ) portion of the macro metafunction name.
The subsequent metafunction class name, using the simple form, is the same name as
the corresponding macro metafunction name but with 'mtfc\_' prepended to the name.
@@ -45,94 +45,94 @@
[Metafunction Class Name]
]
[
- [[macroref TTI_HAS_TYPE]]
- [[macroref TTI_MTFC_HAS_TYPE]]
- [tti::mtfc\_has\_type\_'name']
+ [[macroref BOOST_TTI_HAS_TYPE]]
+ [[macroref BOOST_TTI_MTFC_HAS_TYPE]]
+ [boost::tti::mtfc\_has\_type\_'name']
]
[
- [[macroref TTI_TRAIT_HAS_TYPE]]
- [[macroref TTI_MTFC_TRAIT_HAS_TYPE]]
- [tti::'trait']
+ [[macroref BOOST_TTI_TRAIT_HAS_TYPE]]
+ [[macroref BOOST_TTI_MTFC_TRAIT_HAS_TYPE]]
+ [boost::tti::'trait']
]
[
- [[macroref TTI_HAS_TEMPLATE]]
- [[macroref TTI_MTFC_HAS_TEMPLATE]]
- [tti::mtfc\_has\_template\_'name']
+ [[macroref BOOST_TTI_HAS_TEMPLATE]]
+ [[macroref BOOST_TTI_MTFC_HAS_TEMPLATE]]
+ [boost::tti::mtfc\_has\_template\_'name']
]
[
- [[macroref TTI_TRAIT_HAS_TEMPLATE]]
- [[macroref TTI_MTFC_TRAIT_HAS_TEMPLATE]]
- [tti::'trait']
+ [[macroref BOOST_TTI_TRAIT_HAS_TEMPLATE]]
+ [[macroref BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE]]
+ [boost::tti::'trait']
]
[
- [[macroref TTI_HAS_TEMPLATE_CHECK_PARAMS]]
- [[macroref TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS]]
- [tti::mtfc\_has\_template\_check\_params\_'name']
+ [[macroref BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS]]
+ [[macroref BOOST_TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS]]
+ [boost::tti::mtfc\_has\_template\_check\_params\_'name']
]
[
- [[macroref TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
- [[macroref TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
- [tti::'trait']
+ [[macroref BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
+ [[macroref BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
+ [boost::tti::'trait']
]
[
- [[macroref TTI_VM_HAS_TEMPLATE_CHECK_PARAMS]]
- [[macroref TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS]]
- [tti::mtfc\_has\_template\_check\_params\_'name']
+ [[macroref BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS]]
+ [[macroref BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS]]
+ [boost::tti::mtfc\_has\_template\_check\_params\_'name']
]
[
- [[macroref TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
- [[macroref TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
- [tti::'trait']
+ [[macroref BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
+ [[macroref BOOST_TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS]]
+ [boost::tti::'trait']
]
[
- [[macroref TTI_HAS_MEMBER]]
- [[macroref TTI_MTFC_HAS_MEMBER]]
- [tti::mtfc\_has\_member\_'name']
+ [[macroref BOOST_TTI_HAS_MEMBER]]
+ [[macroref BOOST_TTI_MTFC_HAS_MEMBER]]
+ [boost::tti::mtfc\_has\_member\_'name']
]
[
- [[macroref TTI_TRAIT_HAS_MEMBER]]
- [[macroref TTI_MTFC_TRAIT_HAS_MEMBER]]
- [tti::'trait']
+ [[macroref BOOST_TTI_TRAIT_HAS_MEMBER]]
+ [[macroref BOOST_TTI_MTFC_TRAIT_HAS_MEMBER]]
+ [boost::tti::'trait']
]
[
- [[macroref TTI_HAS_MEMBER_DATA]]
- [[macroref TTI_MTFC_HAS_MEMBER_DATA]]
- [tti::mtfc\_has\_member\_data\_'name']
+ [[macroref BOOST_TTI_HAS_MEMBER_DATA]]
+ [[macroref BOOST_TTI_MTFC_HAS_MEMBER_DATA]]
+ [boost::tti::mtfc\_has\_member\_data\_'name']
]
[
- [[macroref TTI_TRAIT_HAS_MEMBER_DATA]]
- [[macroref TTI_MTFC_TRAIT_HAS_MEMBER_DATA]]
- [tti::'trait']
+ [[macroref BOOST_TTI_TRAIT_HAS_MEMBER_DATA]]
+ [[macroref BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_DATA]]
+ [boost::tti::'trait']
]
[
- [[macroref TTI_HAS_MEMBER_FUNCTION]]
- [[macroref TTI_MTFC_HAS_MEMBER_FUNCTION]]
- [tti::mtfc\_has\_member\_function\_'name']
+ [[macroref BOOST_TTI_HAS_MEMBER_FUNCTION]]
+ [[macroref BOOST_TTI_MTFC_HAS_MEMBER_FUNCTION]]
+ [boost::tti::mtfc\_has\_member\_function\_'name']
]
[
- [[macroref TTI_TRAIT_HAS_MEMBER_FUNCTION]]
- [[macroref TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION]]
- [tti::'trait']
+ [[macroref BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION]]
+ [[macroref BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION]]
+ [boost::tti::'trait']
]
[
- [[macroref TTI_HAS_STATIC_MEMBER]]
- [[macroref TTI_MTFC_HAS_STATIC_MEMBER]]
- [tti::has\_static\_member\_'name']
+ [[macroref BOOST_TTI_HAS_STATIC_MEMBER]]
+ [[macroref BOOST_TTI_MTFC_HAS_STATIC_MEMBER]]
+ [boost::tti::has\_static\_member\_'name']
]
[
- [[macroref TTI_TRAIT_HAS_STATIC_MEMBER]]
- [[macroref TTI_MTFC_TRAIT_HAS_STATIC_MEMBER]]
- [tti::'trait']
+ [[macroref BOOST_TTI_TRAIT_HAS_STATIC_MEMBER]]
+ [[macroref BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER]]
+ [boost::tti::'trait']
]
[
- [[macroref TTI_HAS_STATIC_MEMBER_FUNCTION]]
- [[macroref TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION]]
- [tti::has\_static\_member\_function\_'name']
+ [[macroref BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION]]
+ [[macroref BOOST_TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION]]
+ [boost::tti::has\_static\_member\_function\_'name']
]
[
- [[macroref TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION]]
- [[macroref TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION]]
- [tti::'trait']
+ [[macroref BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION]]
+ [[macroref BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION]]
+ [boost::tti::'trait']
]
]
Copied: sandbox/tti/libs/tti/doc/tti_metafunctions.qbk (from r68768, /sandbox/tti/libs/tti/doc/TTIMetafunctions.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIMetafunctions.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_metafunctions.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,8 +8,8 @@
individually rather than in a composite manner. The individual types are passed to the nullary
type metafunctions as nullary metafunctions, hence the name of this group of metafunctions.
They more easily allow a syntax where nested types can be specified without needing to manually
-reach into the 'type' member of TTI\_MEMBER\_TYPE or the 'type' member of its nullary type
-metafunction equivalent called tti::mf\_member\_type.
+reach into the 'type' member of BOOST\_TTI\_MEMBER\_TYPE or the 'type' member of its nullary type
+metafunction equivalent called boost::tti::mf\_member\_type.
In a very real way the nullary type metafunctions exist just to provide syntactic improvements
over the macro metafunctions and are not needed to use the library, since all of the library
@@ -32,7 +32,7 @@
'types' is passed as a nullary metafunction whose typedef 'type' is the actual type.
The only exception to this use of nullary type metafunctions when specifying 'types' is when a Boost
-function_types tag type, which is optional, is specified as an addition to the function signature.
+function\_types tag type, which is optional, is specified as an addition to the function signature.
Also when dealing with a function signature and parameter types being passed, while the
parameter 'types' themselves are in the form of nullary metafunctions, the MPL forward sequence
which contains the parameter 'types' is a plain type and should not be wrapped as a nullary metafunction.
@@ -40,8 +40,8 @@
For a type which is in scope, we can always use
boost::mpl::identity to create our nullary metafunction, and there can never be a compiler error for
such known types as long as declarations for them exist or it is a built-in C++ type.
-For nested types, which may or may not exist, we can pass the result of TTI\_MEMBER\_TYPE
-or its equivalent nullary type metafunction tti::mf\_member\_type ( explained later ).
+For nested types, which may or may not exist, we can pass the result of BOOST\_TTI\_MEMBER\_TYPE
+or its equivalent nullary type metafunction boost::tti::mf\_member\_type ( explained later ).
To use these metafunctions you need to include the main header file 'tti.hpp',
unless otherwise noted.
@@ -72,19 +72,19 @@
[
[Type]
[
- [classref tti::mf_has_type]
+ [classref boost::tti::mf_has_type]
]
[
class HasType = macro metafunction as lambda expression
class T = enclosing type nullary metafunction
]
- [TTI\_HAS\_TYPE]
+ [BOOST\_TTI\_HAS\_TYPE]
]
[
[Type with check]
[
- [classref tti::mf_has_type]
+ [classref boost::tti::mf_has_type]
]
[
class HasType = macro metafunction as lambda expression
@@ -93,24 +93,24 @@
class U = type to check against nullary metafunction
]
- [TTI\_HAS\_TYPE]
+ [BOOST\_TTI\_HAS\_TYPE]
]
[
[Class Template]
[
- [classref tti::mf_has_template]
+ [classref boost::tti::mf_has_template]
]
[
class HasTemplate = macro metafunction as lambda expression
class T = enclosing type nullary metafunction
]
- [TTI\_HAS\_TEMPLATE]
+ [BOOST\_TTI\_HAS\_TEMPLATE]
]
[
[Class Template with params]
[
- [classref tti::mf_has_template_check_params]
+ [classref boost::tti::mf_has_template_check_params]
]
[
class HasTemplateCheckParams = macro metafunction as lambda expression
@@ -118,15 +118,15 @@
class T = enclosing type nullary metafunction
]
[
- TTI\_HAS\_TEMPLATE\_CHECK\_PARAMS
+ BOOST\_TTI\_HAS\_TEMPLATE\_CHECK\_PARAMS
- TTI\_VM\_HAS\_TEMPLATE\_CHECK\_PARAMS
+ BOOST\_TTI\_VM\_HAS\_TEMPLATE\_CHECK\_PARAMS
]
]
[
[Member data]
[
- [classref tti::mf_has_member_data]
+ [classref boost::tti::mf_has_member_data]
]
[
class HasMemberData = macro metafunction as lambda expression
@@ -135,12 +135,12 @@
class R = type of member data nullary Metafunction
]
- [TTI\_HAS\_MEMBER\_DATA]
+ [BOOST\_TTI\_HAS\_MEMBER\_DATA]
]
[
[Member function]
[
- [classref tti::mf_has_member_function]
+ [classref boost::tti::mf_has_member_function]
]
[
class HasMemberFunction = macro metafunction as lambda expression
@@ -153,14 +153,14 @@
The forward sequence as a type is not presented as a nullary metafunction.
If there are no parameters, this may be omitted.
- class TAG = (optional) a Boost function_types tag type.
+ class TAG = (optional) a Boost function\_types tag type.
]
- [TTI\_HAS\_MEMBER\_FUNCTION]
+ [BOOST\_TTI\_HAS\_MEMBER\_FUNCTION]
]
[
[Static data]
[
- [classref tti::mf_has_static_data]
+ [classref boost::tti::mf_has_static_data]
]
[
class HasStaticMember = macro metafunction as lambda expression
@@ -169,12 +169,12 @@
class R = type of static data nullary metafunction
]
- [TTI\_HAS\_STATIC\_MEMBER]
+ [BOOST\_TTI\_HAS\_STATIC\_MEMBER]
]
[
[Static function]
[
- [classref tti::mf_has_static_member_function]
+ [classref boost::tti::mf_has_static_member_function]
]
[
class HasStaticMemberFunction = macro metafunction as lambda expression
@@ -187,9 +187,9 @@
The forward sequence as a type is not presented as a nullary metafunction.
If there are no parameters, this may be omitted.
- class TAG = (optional) a Boost function_types tag type.
+ class TAG = (optional) a Boost function\_types tag type.
]
- [TTI\_HAS\_STATIC\_MEMBER\_FUNCTION]
+ [BOOST\_TTI\_HAS\_STATIC\_MEMBER\_FUNCTION]
]
]
@@ -200,9 +200,9 @@
some of the macro metafunctions use. This allows us to specify nested types
in those signatures without using the T::InnerType notation.
-[heading Nullary type metafunction member_type equivalent]
+[heading Nullary type metafunction member\_type equivalent]
-Just as there is the macro TTI\_MEMBER\_TYPE for creating
+Just as there is the macro BOOST\_TTI\_MEMBER\_TYPE for creating
a macro metafunction which returns a nested type if it exists, else an unspecified
type, there is also the equivalent nullary type metafunction.
@@ -216,26 +216,26 @@
[
[Type]
[
- [classref tti::mf_member_type]
+ [classref boost::tti::mf_member_type]
]
[
class MemberType = macro metafunction as lambda expression
class T = enclosing type nullary metafunction
]
- [TTI\_MEMBER\_TYPE]
+ [BOOST\_TTI\_MEMBER\_TYPE]
]
]
-The difference between the macro metafunction TTI\_MEMBER\_TYPE and
-tti::mf\_member\_type is simply that, like the other nullary type metafunctions,
+The difference between the macro metafunction BOOST\_TTI\_MEMBER\_TYPE and
+boost::tti::mf\_member\_type is simply that, like the other nullary type metafunctions,
the latter takes its enclosing type as a nullary metafunction. Both produce the
exact same result.
The use of this metafunction allows us to created deeply nested types,
which may or may not exist, as nullary metafunctions in much the same way
-that TTI\_MEMBER\_TYPE can. The difference is
-the simpler syntax when using tti::mf\_member\_type.
+that BOOST\_TTI\_MEMBER\_TYPE can. The difference is
+the simpler syntax when using boost::tti::mf\_member\_type.
As an example, given the theoretical relationship of types we used before:
@@ -255,27 +255,27 @@
};
};
-We can use tti::mf_member_type as follows. First we create our corresponding macro metafunctions:
+We can use boost::tti::mf\_member\_type as follows. First we create our corresponding macro metafunctions:
- TTI_MEMBER_TYPE(FindType)
- TTI_MEMBER_TYPE(AType)
- TTI_MEMBER_TYPE(BType)
- TTI_MEMBER_TYPE(CType)
+ BOOST_TTI_MEMBER_TYPE(FindType)
+ BOOST_TTI_MEMBER_TYPE(AType)
+ BOOST_TTI_MEMBER_TYPE(BType)
+ BOOST_TTI_MEMBER_TYPE(CType)
Next we can create a typedef to reflect a nested type called FindType, as a nullary metafunction,
-which has the relationship as specified above by using tti::mf\_member\_type.
+which has the relationship as specified above by using boost::tti::mf\_member\_type.
typedef
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_FindType<_>,
- tti::mf_member_type
+ boost::tti::member_type_FindType<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::mf_member_type
+ boost::tti::member_type_CType<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_BType<_>,
- tti::member_type_AType
+ boost::tti::member_type_BType<_>,
+ boost::tti::member_type_AType
<
T
>
@@ -287,7 +287,7 @@
The key information above is that the enclosing type, as in all of the nullary type
metafunctions, is a nullary metafunction itself,
which means that the enclosing type can be specified as the result
-of using TTI\_MEMBER\_TYPE as well as the
+of using BOOST\_TTI\_MEMBER\_TYPE as well as the
result of using mf\_member\_type itself.
Both techniques are shown in the example
@@ -296,7 +296,7 @@
nested types are needed as 'types'.
Also similar to the macro metafunctions, we have an easy way of testing whether or not
-our tti::mf_member_type nested type actually exists.
+our boost::tti::mf\_member\_type nested type actually exists.
[table:existtbmetanested TTI Nested Type Nullary Type Metafunction Existence
[
@@ -307,7 +307,7 @@
[
[Type]
[
- [classref tti::mf_valid_member_type]
+ [classref boost::tti::mf_valid_member_type]
]
[
class T = a type as a nullary metafunction
@@ -318,7 +318,7 @@
]
]
-Again note the difference here from the equivalent macro metafunction tti::valid\_member\_type.
+Again note the difference here from the equivalent macro metafunction boost::tti::valid\_member\_type.
In the example above the type T is passed as a nullary metafunction holding the actual type,
where for the macro metafunction equivalent the type T is passed as the actual type being tested.
Copied: sandbox/tti/libs/tti/doc/tti_nested_type.qbk (from r68757, /sandbox/tti/libs/tti/doc/TTINestedType.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTINestedType.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_nested_type.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -27,15 +27,15 @@
One solution to this is afforded by the library itself. Given an enclosing type 'T'
which we know must exist, either because it is a top-level type we know about or
it is passed to us in some template as a 'class T' or 'typename T', and given an inner type
-named 'InnerType' whose existence we would like ascertain, we can use a TTI_HAS_TYPE(InnerType) macro and it's related
-tti::has_type_InnerType metafunction to determine if the nested type 'InnerType' exists. This solution is perfectly valid
+named 'InnerType' whose existence we would like ascertain, we can use a BOOST\_TTI\_HAS\_TYPE(InnerType) macro and it's related
+boost::tti::has\_type\_InnerType metafunction to determine if the nested type 'InnerType' exists. This solution is perfectly valid
and, with Boost MPL's selection metafunctions, we can do compile-time selection to generate the
correct template code.
However this does not scale that well syntactically if we need to drill down further from a
top-level enclosing type to a deeply nested type, or even to look for some deeply nested type's
-inner elements. We are going to be generating a great deal of boost::mpl::if_ and/or
-boost::mpl::eval_if type selection statements to get to some final condition where we know we
+inner elements. We are going to be generating a great deal of boost::mpl::if\_ and/or
+boost::mpl::eval\_if type selection statements to get to some final condition where we know we
can generate the compile-time code which we want.
[heading The solution]
@@ -44,14 +44,14 @@
nested types without producing a compiler error if the nested type does not exist, but still
are able to do the introspecting for inner elements that our TTI macro metafunctions do.
-We have already seen one of those constructs, the macro TTI\_MEMBER\_TYPE,
+We have already seen one of those constructs, the macro BOOST\_TTI\_MEMBER\_TYPE,
which generates a metafunction based on the name
of an inner type. But instead of telling us whether that inner type exists it instead returns
a typedef 'type' which is that inner type if it exists, else it is an unspecified type if it
does not. In this way we have created a metafunction, very similar in functionality to
boost::mpl::identity, but which still returns some unspecified marker 'type' if our nested type is invalid.
-We can use the functionality of TTI\_MEMBER\_TYPE to construct nested types
+We can use the functionality of BOOST\_TTI\_MEMBER\_TYPE to construct nested types
for our other macro metafunctions, without having to use the T::InnerType syntax and produce a compiler
error if no such type actually exists within our scope. We can even do this in deeply nested contexts
by stringing together, so to speak, a series of these macro metafunction results.
@@ -78,22 +78,22 @@
In our TTI code we first create a series of member type macros for each of our nested
types:
- TTI_MEMBER_TYPE(FindType)
- TTI_MEMBER_TYPE(AType)
- TTI_MEMBER_TYPE(BType)
- TTI_MEMBER_TYPE(CType)
+ BOOST_TTI_MEMBER_TYPE(FindType)
+ BOOST_TTI_MEMBER_TYPE(AType)
+ BOOST_TTI_MEMBER_TYPE(BType)
+ BOOST_TTI_MEMBER_TYPE(CType)
Next we can create a typedef to reflect a nested type called FindType which has the relationship
as specified above by instantiating our macro metafunctions.
typedef typename
- tti::member_type_FindType
+ boost::tti::member_type_FindType
<
- typename tti::member_type_CType
+ typename boost::tti::member_type_CType
<
- typename tti::member_type_BType
+ typename boost::tti::member_type_BType
<
- typename tti::member_type_AType
+ typename boost::tti::member_type_AType
<
T
>::type
@@ -107,11 +107,11 @@
As one example, let's ask whether FindType has a static member data called MyData of type 'int'. We add:
- TTI_HAS_STATIC_MEMBER(MyData)
+ BOOST_TTI_HAS_STATIC_MEMBER(MyData)
Next we create our metafunction:
- tti::has_static_member_MyData
+ boost::tti::has_static_member_MyData
<
MyFindType,
int
@@ -124,18 +124,18 @@
We can also directly find out whether the deeply nested type 'FindType'
actually exists in a similar manner. Our metafunction would be:
- TTI_HAS_TYPE(FindType)
+ BOOST_TTI_HAS_TYPE(FindType)
- tti::has_type_FindType
+ boost::tti::has_type_FindType
<
typename
- tti::member_type_CType
+ boost::tti::member_type_CType
<
typename
- tti::member_type_BType
+ boost::tti::member_type_BType
<
typename
- tti::member_type_AType
+ boost::tti::member_type_AType
<
T
>::type
@@ -146,36 +146,36 @@
Because this duplicates much of our code for the 'MyFindType' typedef to
create our nested type, we can instead, and much more easily, pass our type 'MyFindType', since we already
have it in the form of a type,
-to another metafunction called 'tti::valid_member_type', which returns a boolean constant
+to another metafunction called 'boost::tti::valid_member_type', which returns a boolean constant
which is 'true' if our nested exists or 'false' if it does not.
Using this functionality with our 'MyFindType' type above
we could create the nullary metafunction:
- tti::valid_member_type
+ boost::tti::valid_member_type
<
MyFindType
>
-directly instead of replicating the same functionality with our 'tti::has_type_FindType' metafunction.
+directly instead of replicating the same functionality with our 'boost::tti::has_type_FindType' metafunction.
-The using of TTI\_MEMBER\_TYPE to create a nested type which may or may not exist, and which can
+The using of BOOST\_TTI\_MEMBER\_TYPE to create a nested type which may or may not exist, and which can
subsequently be used with our macro metafunctions whenever a nested type is required, without producing
a compiler error when the type does not actually exist, is the main reason we have separate
but similar functionality among our macro metafunctions to determine whether a member data, a member function, or a static member
function exists within an enclosing type.
-In the more general case, when using TTI\_HAS\_MEMBER and TTI\_HAS\_STATIC\_MEMBER, the signature for the member
+In the more general case, when using BOOST\_TTI\_HAS\_MEMBER and BOOST\_TTI\_HAS\_STATIC\_MEMBER, the signature for the member
data, member function, and the function portion of a static member function is a composite type. This makes
for a syntactical notation which is easy to specify, but because of that composite type notation we
-can not use the nested type functionality in TTI\_MEMBER\_TYPE very easily. But
-when we use the TTI\_HAS\_MEMBER\_DATA, TTI\_HAS\_MEMBER\_FUNCTION, and TTI\_HAS\_STATIC\_MEMBER\_FUNCTION
+can not use the nested type functionality in BOOST\_TTI\_MEMBER\_TYPE very easily. But
+when we use the BOOST\_TTI\_HAS\_MEMBER\_DATA, BOOST\_TTI\_HAS\_MEMBER\_FUNCTION, and BOOST\_TTI\_HAS\_STATIC\_MEMBER\_FUNCTION
the composite types in our signatures are broken down into their individual types so that using
-TTI\_MEMBER\_TYPE, if necessary, for one of the individual types is easy.
+BOOST\_TTI\_MEMBER\_TYPE, if necessary, for one of the individual types is easy.
[heading A more elegant solution]
-Although using TTI\_MEMBER\_TYPE represents a good solution to creating a nested type
+Although using BOOST\_TTI\_MEMBER\_TYPE represents a good solution to creating a nested type
without the possible compile-time error of the T::InnerType syntax, reaching in to
specify all those ::type expressions, along with their repeated 'typename',
does get syntactically tedious.
@@ -185,7 +185,7 @@
This parallel set of metafunctions, using nullary metafunctions to specify individual types,
rather than the actual types themselves,
are called 'nullary type metafunctions'. In this group there is also a nullary metafunction
-paralleling our TTI\_MEMBER\_TYPE macro metafunction, and therefore a further construct
+paralleling our BOOST\_TTI\_MEMBER\_TYPE macro metafunction, and therefore a further construct
making the specifying of nested types easy and error-free to use.
This group of nullary type metafunctions will be fully explained later.
Copied: sandbox/tti/libs/tti/doc/tti_tests.qbk (from r68448, /sandbox/tti/libs/tti/doc/TTITests.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTITests.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_tests.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,11 +6,11 @@
Executing the jamfile without a target will run tests
for both basic TTI and for the variadic macro
portion of TTI. To successfully do that you need to
-get the variadic_macro_data library from the sandbox.
+get the variadic\_macro\_data library from the sandbox.
You can run tests for only the basic TTI, which is the
vast majority of TTI functionality, by specifying only
the 'tti' target when executing the jamfile, and therefore
-you would not need the variadic_macro_data library. If you
+you would not need the variadic\_macro\_data library. If you
just want to run the tests for the variadic macro portion
of TTI, specify the target as 'ttiVM'.
Copied: sandbox/tti/libs/tti/doc/tti_using_mm.qbk (from r68768, /sandbox/tti/libs/tti/doc/TTIUsingMM.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIUsingMM.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_using_mm.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -71,18 +71,18 @@
Does T have a nested type called 'AnIntType' ?
- TTI_HAS_TYPE(AnIntType)
+ BOOST_TTI_HAS_TYPE(AnIntType)
- tti::has_type_AnIntType
+ boost::tti::has_type_AnIntType
<
T
>
Does T have a nested type called 'BType' ?
- TTI_HAS_TYPE(BType)
+ BOOST_TTI_HAS_TYPE(BType)
- tti::has_type_BType
+ boost::tti::has_type_BType
<
T
>
@@ -91,7 +91,7 @@
Does T have a nested typedef called 'AnIntType' whose type is an 'int' ?
- tti::has_type_AnIntType
+ boost::tti::has_type_AnIntType
<
T,
int
@@ -102,9 +102,9 @@
Does T have a nested class template called 'AMemberTemplate' whose template
parameters are all types ('class' or 'typename') ?
- TTI_HAS_TEMPLATE(AMemberTemplate)
+ BOOST_TTI_HAS_TEMPLATE(AMemberTemplate)
- tti::has_template_AMemberTemplate
+ boost::tti::has_template_AMemberTemplate
<
T
>
@@ -114,9 +114,9 @@
Does T have a nested class template called 'MoreParameters' whose template
parameters are specified exactly ?
- TTI_HAS_TEMPLATE_CHECK_PARAMS(MoreParameters,(class)(class)(int)(short)(class)(template <class)(int> class InnerTemplate)(class))
+ BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(MoreParameters,(class)(class)(int)(short)(class)(template <class)(int> class InnerTemplate)(class))
- tti::has_template_check_params_MoreParameters
+ boost::tti::has_template_check_params_MoreParameters
<
T
>
@@ -129,9 +129,9 @@
Does T have a nested class template called 'ManyParameters' whose template
parameters are specified exactly ?
- TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,long)
+ BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,long)
- tti::has_template_check_params_ManyParameters
+ boost::tti::has_template_check_params_ManyParameters
<
T
>
@@ -140,9 +140,9 @@
Does T have a member data called 'IntBT' whose type is 'AType::BType' ?
- TTI_HAS_MEMBER(IntBT)
+ BOOST_TTI_HAS_MEMBER(IntBT)
- tti::has_member_IntBT
+ boost::tti::has_member_IntBT
<
AType::BType T::*
>
@@ -151,9 +151,9 @@
Does T have a member data called 'IntBT' whose type is 'AType::BType' ?
- TTI_HAS_MEMBER_DATA(IntBT)
+ BOOST_TTI_HAS_MEMBER_DATA(IntBT)
- tti::has_member_data_IntBT
+ boost::tti::has_member_data_IntBT
<
T,
AType::BType
@@ -164,9 +164,9 @@
Does T have a member function called 'IntFunction' whose type is
'int (short)' ?
- TTI_HAS_MEMBER(IntFunction)
+ BOOST_TTI_HAS_MEMBER(IntFunction)
- tti::has_member_IntFunction
+ boost::tti::has_member_IntFunction
<
int (T::*)(short)
>
@@ -176,9 +176,9 @@
Does T have a member function called 'IntFunction' whose type is
'int (short)' ?
- TTI_HAS_MEMBER_FUNCTION(IntFunction)
+ BOOST_TTI_HAS_MEMBER_FUNCTION(IntFunction)
- tti::has_member_function_IntFunction
+ boost::tti::has_member_function_IntFunction
<
T,
int,
@@ -189,9 +189,9 @@
Does T have a static member data called 'DSMember' whose type is 'short' ?
- TTI_HAS_STATIC_MEMBER(DSMember)
+ BOOST_TTI_HAS_STATIC_MEMBER(DSMember)
- tti::has_static_member_DSMember
+ boost::tti::has_static_member_DSMember
<
T,
short
@@ -202,9 +202,9 @@
Does T have a static member function called 'SIntFunction' whose type
is 'int (long,double)' ?
- TTI_HAS_STATIC_MEMBER(SIntFunction)
+ BOOST_TTI_HAS_STATIC_MEMBER(SIntFunction)
- tti::has_static_member_SIntFunction
+ boost::tti::has_static_member_SIntFunction
<
T,
int (long,double)
@@ -215,9 +215,9 @@
Does T have a static member function called 'SIntFunction' whose type
is 'int (long,double)' ?
- TTI_HAS_STATIC_MEMBER(SIntFunction)
+ BOOST_TTI_HAS_STATIC_MEMBER(SIntFunction)
- tti::has_static_member_SIntFunction
+ boost::tti::has_static_member_SIntFunction
<
T,
int,
@@ -229,14 +229,14 @@
Create a nested type T::BType::CType without creating a compiler error
if T does not have the nested type BType::CType ?
- TTI_MEMBER_TYPE(BType)
- TTI_MEMBER_TYPE(CType)
+ BOOST_TTI_MEMBER_TYPE(BType)
+ BOOST_TTI_MEMBER_TYPE(CType)
typename
- tti::member_type_CType
+ boost::tti::member_type_CType
<
typename
- tti::member_type_BType
+ boost::tti::member_type_BType
<
T
>::type
@@ -247,21 +247,21 @@
Does a nested type T::BType::CType, created without creating a compiler error
if T does not have the nested type BType::CType, actually exist ?
- TTI_MEMBER_TYPE(BType)
- TTI_MEMBER_TYPE(CType)
+ BOOST_TTI_MEMBER_TYPE(BType)
+ BOOST_TTI_MEMBER_TYPE(CType)
typedef typename
- tti::member_type_CType
+ boost::tti::member_type_CType
<
typename
- tti::member_type_BType
+ boost::tti::member_type_BType
<
T
>::type
>::type
AType;
- tti::valid_member_type
+ boost::tti::valid_member_type
<
AType
>
Copied: sandbox/tti/libs/tti/doc/tti_using_ntm.qbk (from r68768, /sandbox/tti/libs/tti/doc/TTIUsingNTM.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TTIUsingNTM.qbk (original)
+++ sandbox/tti/libs/tti/doc/tti_using_ntm.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -96,32 +96,32 @@
We start off by creating typedef's, as nullary metafunctions, for our
theoretical inner types in relation to T . None of these typedefs
will produce a compiler error even if our structure does not correspond
-to T's reality. This also illustrates using 'tti::mf_member_type'.
+to T's reality. This also illustrates using 'boost::tti::mf_member_type'.
- TTI_MEMBER_TYPE(BType)
- TTI_MTFC_MEMBER_TYPE(CType)
- TTI_MEMBER_TYPE(DType)
+ BOOST_TTI_MEMBER_TYPE(BType)
+ BOOST_TTI_MTFC_MEMBER_TYPE(CType)
+ BOOST_TTI_MEMBER_TYPE(DType)
typedef
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_BType<_>,
+ boost::tti::member_type_BType<_>,
boost::mpl::identity<T>
>
BTypeNM;
typedef
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
+ boost::tti::mtfc_member_type_CType,
BTypeNM
>
CTypeNM;
typedef
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_DType<_>,
+ boost::tti::member_type_DType<_>,
CTypeNM
>
DTypeNM;
@@ -132,18 +132,18 @@
Does T have a nested type called 'DType' within 'BType::CType' ?
- TTI_HAS_TYPE(DType)
+ BOOST_TTI_HAS_TYPE(DType)
- tti::mf_has_type
+ boost::tti::mf_has_type
<
- tti::has_type_DType<_>,
+ boost::tti::has_type_DType<_>,
CTypeNM
>
-We could just have easily used the tti::mf_valid_member_type
+We could just have easily used the boost::tti::mf\_valid\_member\_type
metafunction to the same effect:
- tti::mf_valid_member_type
+ boost::tti::mf_valid_member_type
<
DTypeNM
>
@@ -153,11 +153,11 @@
Does T have a nested typedef called 'ADoubleType'
within 'BType::CType::DType' whose type is a 'double' ?
- TTI_MTFC_HAS_TYPE(ADoubleType)
+ BOOST_TTI_MTFC_HAS_TYPE(ADoubleType)
- tti::mf_has_type
+ boost::tti::mf_has_type
<
- tti::mtfc_has_type_ADoubleType,
+ boost::tti::mtfc_has_type_ADoubleType,
DTypeNM,
boost::mpl::identity<double>
>
@@ -167,11 +167,11 @@
Does T have a nested class template called 'AMemberTemplate'
within 'BType::CType' whose template parameters are all types ('class' or 'typename') ?
- TTI_MTFC_HAS_TEMPLATE(AMemberTemplate)
+ BOOST_TTI_MTFC_HAS_TEMPLATE(AMemberTemplate)
- tti::mf_has_template
+ boost::tti::mf_has_template
<
- tti::mtfc_has_template_AMemberTemplate,
+ boost::tti::mtfc_has_template_AMemberTemplate,
CTypeNM
>
@@ -180,11 +180,11 @@
Does T have a nested class template called 'ManyParameters'
within 'BType' whose template parameters are specified exactly ?
- TTI_HAS_TEMPLATE_CHECK_PARAMS(ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(long))
+ BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(long))
- tti::mf_has_template_check_params
+ boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_ManyParameters<_>,
+ boost::tti::has_template_check_params_ManyParameters<_>,
BTypeNM
>
@@ -196,11 +196,11 @@
[note Include the 'tti_vm.hpp' header file
when using this macro.]
- TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(MoreParameters,class,class,int,short,class,template <class,int> class InnerTemplate,class)
+ BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(MoreParameters,class,class,int,short,class,template <class,int> class InnerTemplate,class)
- tti::mf_has_template_check_params
+ boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_MoreParameters,
+ boost::tti::mtfc_has_template_check_params_MoreParameters,
CTypeNM
>
@@ -208,11 +208,11 @@
Does T have a member data called 'IntBT' whose type is 'BType' ?
- TTI_MTFC_HAS_MEMBER_DATA(IntBT)
+ BOOST_TTI_MTFC_HAS_MEMBER_DATA(IntBT)
- tti::mf_has_member_data
+ boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_IntBT,
+ boost::tti::mtfc_has_member_data_IntBT,
boost::mpl::identity<T>,
BTypeNM
>
@@ -222,11 +222,11 @@
Does T have a member function called 'IntFunction'
within 'BType::CType::DType' whose type is 'int (short) const' ?
- TTI_HAS_MEMBER_FUNCTION(IntFunction)
+ BOOST_TTI_HAS_MEMBER_FUNCTION(IntFunction)
- tti::mf_has_member_function
+ boost::tti::mf_has_member_function
<
- tti::has_member_function_IntFunction<_,_,_,_>,
+ boost::tti::has_member_function_IntFunction<_,_,_,_>,
DTypeNM,
boost::mpl::identity<int>,
boost::mpl::vector<boost::mpl::identity<short> >,
@@ -238,11 +238,11 @@
Does T have a static member data called 'DSMember'
within 'BType::CType::DType' whose type is 'short' ?
- TTI_MTFC_HAS_STATIC_MEMBER(DSMember)
+ BOOST_TTI_MTFC_HAS_STATIC_MEMBER(DSMember)
- tti::mf_has_static_data
+ boost::tti::mf_has_static_data
<
- tti::mtfc_has_static_member_DSMember,
+ boost::tti::mtfc_has_static_member_DSMember,
DTypeNM,
boost::mpl::identity<short>
>
@@ -252,11 +252,11 @@
Does T have a static member function called 'SIntFunction'
within 'BType::CType::DType' whose type is 'int (long,double)' ?
- TTI_HAS_STATIC_MEMBER_FUNCTION(SIntFunction)
+ BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION(SIntFunction)
- tti::mf_has_static_member_function
+ boost::tti::mf_has_static_member_function
<
- tti::has_static_member_function_SIntFunction<_,_,_>,
+ boost::tti::has_static_member_function_SIntFunction<_,_,_>,
DTypeNM,
boost::mpl::identity<int>,
boost::mpl::vector<boost::mpl::identity<long>,boost::mpl::identity<double> >
Copied: sandbox/tti/libs/tti/doc/type_traits_introspection.qbk (from r68768, /sandbox/tti/libs/tti/doc/TypeTraitsIntrospection.qbk)
==============================================================================
--- /sandbox/tti/libs/tti/doc/TypeTraitsIntrospection.qbk (original)
+++ sandbox/tti/libs/tti/doc/type_traits_introspection.qbk 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -10,19 +10,19 @@
[source-mode c++]
]
-[include TTIIntroduction.qbk]
-[include TTIWhy.qbk]
-[include TTITerminology.qbk]
-[include TTIFunctionality.qbk]
-[include TTIDetail.qbk]
-[include TTINestedType.qbk]
-[include TTIUsingMM.qbk]
-[include TTIMetaClasses.qbk]
-[include TTIMetafunctions.qbk]
-[include TTIUsingNTM.qbk]
-[include TTIReference.qbk]
-[include TTITests.qbk]
-[include TTIHistory.qbk]
-[include TTIToDo.qbk]
-[include TTIAcknowledgements.qbk]
-[include TTIIndex.qbk]
+[include tti_introduction.qbk]
+[include tti_why.qbk]
+[include tti_terminology.qbk]
+[include tti_functionality.qbk]
+[include tti_detail.qbk]
+[include tti_nested_type.qbk]
+[include tti_using_mm.qbk]
+[include tti_meta_classes.qbk]
+[include tti_metafunctions.qbk]
+[include tti_using_ntm.qbk]
+[include tti_reference.qbk]
+[include tti_tests.qbk]
+[include tti_history.qbk]
+[include tti_to_do.qbk]
+[include tti_acknowledgements.qbk]
+[include tti_index.qbk]
Modified: sandbox/tti/libs/tti/test/test_has_member.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,23 +4,23 @@
int main()
{
- BOOST_TEST(tti::has_member_AnInt<int AType::*>::value);
- BOOST_TEST(tti::has_member_AnInt<long AnotherType::*>::value);
- BOOST_TEST(tti::has_member_VoidFunction<void (AType::*)()>::value);
- BOOST_TEST(tti::FunctionReturningInt<int (AType::*)()>::value);
- BOOST_TEST(tti::FunctionReturningInt<double (AnotherType::*)(int)>::value);
- BOOST_TEST(tti::has_member_aFunction<AType (AnotherType::*)(int)>::value);
- BOOST_TEST(tti::AnotherIntFunction<int (AnotherType::*)(AType)>::value);
- BOOST_TEST(tti::has_member_sFunction<AType::AnIntType (AnotherType::*)(int,long,double)>::value);
- BOOST_TEST(tti::has_member_aMember<bool AnotherType::*>::value);
- BOOST_TEST(!tti::has_member_aMember<int AnotherType::*>::value);
- BOOST_TEST(tti::CMember<bool AnotherType::*>::value);
- BOOST_TEST(!tti::has_member_someDataMember<short AType::*>::value);
- BOOST_TEST(!tti::has_member_someFunctionMember<AType (AnotherType::*)(long,int)>::value);
- BOOST_TEST(tti::has_member_IntBT<AType::BType AType::*>::value);
- BOOST_TEST(tti::NestedData<AType::BType::CType AType::*>::value);
- BOOST_TEST(tti::AOther<AType AnotherType::*>::value);
- BOOST_TEST(tti::has_member_ONestStr<AType::AStructType AnotherType::*>::value);
+ BOOST_TEST(boost::tti::has_member_AnInt<int AType::*>::value);
+ BOOST_TEST(boost::tti::has_member_AnInt<long AnotherType::*>::value);
+ BOOST_TEST(boost::tti::has_member_VoidFunction<void (AType::*)()>::value);
+ BOOST_TEST(boost::tti::FunctionReturningInt<int (AType::*)()>::value);
+ BOOST_TEST(boost::tti::FunctionReturningInt<double (AnotherType::*)(int)>::value);
+ BOOST_TEST(boost::tti::has_member_aFunction<AType (AnotherType::*)(int)>::value);
+ BOOST_TEST(boost::tti::AnotherIntFunction<int (AnotherType::*)(AType)>::value);
+ BOOST_TEST(boost::tti::has_member_sFunction<AType::AnIntType (AnotherType::*)(int,long,double)>::value);
+ BOOST_TEST(boost::tti::has_member_aMember<bool AnotherType::*>::value);
+ BOOST_TEST(!boost::tti::has_member_aMember<int AnotherType::*>::value);
+ BOOST_TEST(boost::tti::CMember<bool AnotherType::*>::value);
+ BOOST_TEST(!boost::tti::has_member_someDataMember<short AType::*>::value);
+ BOOST_TEST(!boost::tti::has_member_someFunctionMember<AType (AnotherType::*)(long,int)>::value);
+ BOOST_TEST(boost::tti::has_member_IntBT<AType::BType AType::*>::value);
+ BOOST_TEST(boost::tti::NestedData<AType::BType::CType AType::*>::value);
+ BOOST_TEST(boost::tti::AOther<AType AnotherType::*>::value);
+ BOOST_TEST(boost::tti::has_member_ONestStr<AType::AStructType AnotherType::*>::value);
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_member.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,19 +4,19 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_MEMBER(AnInt)
-TTI_HAS_MEMBER(VoidFunction)
-TTI_TRAIT_HAS_MEMBER(FunctionReturningInt,IntFunction)
-TTI_HAS_MEMBER(aFunction)
-TTI_TRAIT_HAS_MEMBER(AnotherIntFunction,anotherFunction)
-TTI_HAS_MEMBER(sFunction)
-TTI_HAS_MEMBER(aMember)
-TTI_TRAIT_HAS_MEMBER(CMember,cMem)
-TTI_HAS_MEMBER(someDataMember)
-TTI_HAS_MEMBER(someFunctionMember)
-TTI_HAS_MEMBER(IntBT)
-TTI_TRAIT_HAS_MEMBER(NestedData,NestedCT)
-TTI_TRAIT_HAS_MEMBER(AOther,OtherAT)
-TTI_HAS_MEMBER(ONestStr)
+BOOST_TTI_HAS_MEMBER(AnInt)
+BOOST_TTI_HAS_MEMBER(VoidFunction)
+BOOST_TTI_TRAIT_HAS_MEMBER(FunctionReturningInt,IntFunction)
+BOOST_TTI_HAS_MEMBER(aFunction)
+BOOST_TTI_TRAIT_HAS_MEMBER(AnotherIntFunction,anotherFunction)
+BOOST_TTI_HAS_MEMBER(sFunction)
+BOOST_TTI_HAS_MEMBER(aMember)
+BOOST_TTI_TRAIT_HAS_MEMBER(CMember,cMem)
+BOOST_TTI_HAS_MEMBER(someDataMember)
+BOOST_TTI_HAS_MEMBER(someFunctionMember)
+BOOST_TTI_HAS_MEMBER(IntBT)
+BOOST_TTI_TRAIT_HAS_MEMBER(NestedData,NestedCT)
+BOOST_TTI_TRAIT_HAS_MEMBER(AOther,OtherAT)
+BOOST_TTI_HAS_MEMBER(ONestStr)
#endif // TEST_HAS_MEMBER_HPP
Modified: sandbox/tti/libs/tti/test/test_has_member_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,26 +6,26 @@
// You can always instantiate without compiler errors
- tti::has_member_aMember<long AType::*> aVar;
- tti::has_member_someDataMember<double AnotherType::*> aVar2;
- tti::has_member_someFunctionMember<double (AnotherType::*)(short,short,long,int)> aVar3;
+ boost::tti::has_member_aMember<long AType::*> aVar;
+ boost::tti::has_member_someDataMember<double AnotherType::*> aVar2;
+ boost::tti::has_member_someFunctionMember<double (AnotherType::*)(short,short,long,int)> aVar3;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_member_AnInt<int AType::*>));
- BOOST_MPL_ASSERT((tti::has_member_AnInt<long AnotherType::*>));
- BOOST_MPL_ASSERT((tti::has_member_VoidFunction<void (AType::*)()>));
- BOOST_MPL_ASSERT((tti::FunctionReturningInt<int (AType::*)()>));
- BOOST_MPL_ASSERT((tti::FunctionReturningInt<double (AnotherType::*)(int)>));
- BOOST_MPL_ASSERT((tti::has_member_aFunction<AType (AnotherType::*)(int)>));
- BOOST_MPL_ASSERT((tti::AnotherIntFunction<int (AnotherType::*)(AType)>));
- BOOST_MPL_ASSERT((tti::has_member_sFunction<AType::AnIntType (AnotherType::*)(int,long,double)>));
- BOOST_MPL_ASSERT((tti::has_member_aMember<bool AnotherType::*>));
- BOOST_MPL_ASSERT((tti::CMember<bool AnotherType::*>));
- BOOST_MPL_ASSERT((tti::has_member_IntBT<AType::BType AType::*>));
- BOOST_MPL_ASSERT((tti::NestedData<AType::BType::CType AType::*>));
- BOOST_MPL_ASSERT((tti::AOther<AType AnotherType::*>));
- BOOST_MPL_ASSERT((tti::has_member_ONestStr<AType::AStructType AnotherType::*>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_AnInt<int AType::*>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_AnInt<long AnotherType::*>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_VoidFunction<void (AType::*)()>));
+ BOOST_MPL_ASSERT((boost::tti::FunctionReturningInt<int (AType::*)()>));
+ BOOST_MPL_ASSERT((boost::tti::FunctionReturningInt<double (AnotherType::*)(int)>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_aFunction<AType (AnotherType::*)(int)>));
+ BOOST_MPL_ASSERT((boost::tti::AnotherIntFunction<int (AnotherType::*)(AType)>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_sFunction<AType::AnIntType (AnotherType::*)(int,long,double)>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_aMember<bool AnotherType::*>));
+ BOOST_MPL_ASSERT((boost::tti::CMember<bool AnotherType::*>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_IntBT<AType::BType AType::*>));
+ BOOST_MPL_ASSERT((boost::tti::NestedData<AType::BType::CType AType::*>));
+ BOOST_MPL_ASSERT((boost::tti::AOther<AType AnotherType::*>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_ONestStr<AType::AStructType AnotherType::*>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_data.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_data.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_data.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,16 +4,16 @@
int main()
{
- BOOST_TEST((tti::has_member_data_AnInt<AType,int>::value));
- BOOST_TEST((tti::has_member_data_AnInt<AnotherType,long>::value));
- BOOST_TEST((tti::has_member_data_aMember<AnotherType,bool>::value));
- BOOST_TEST((!tti::has_member_data_aMember<AnotherType,int>::value));
- BOOST_TEST((tti::CMember<AnotherType,bool>::value));
- BOOST_TEST((!tti::has_member_data_someDataMember<AType,short>::value));
- BOOST_TEST((tti::has_member_data_IntBT<AType,AType::BType>::value));
- BOOST_TEST((tti::NestedData<AType,AType::BType::CType>::value));
- BOOST_TEST((tti::AOther<AnotherType,AType>::value));
- BOOST_TEST((tti::has_member_data_ONestStr<AnotherType,AType::AStructType>::value));
+ BOOST_TEST((boost::tti::has_member_data_AnInt<AType,int>::value));
+ BOOST_TEST((boost::tti::has_member_data_AnInt<AnotherType,long>::value));
+ BOOST_TEST((boost::tti::has_member_data_aMember<AnotherType,bool>::value));
+ BOOST_TEST((!boost::tti::has_member_data_aMember<AnotherType,int>::value));
+ BOOST_TEST((boost::tti::CMember<AnotherType,bool>::value));
+ BOOST_TEST((!boost::tti::has_member_data_someDataMember<AType,short>::value));
+ BOOST_TEST((boost::tti::has_member_data_IntBT<AType,AType::BType>::value));
+ BOOST_TEST((boost::tti::NestedData<AType,AType::BType::CType>::value));
+ BOOST_TEST((boost::tti::AOther<AnotherType,AType>::value));
+ BOOST_TEST((boost::tti::has_member_data_ONestStr<AnotherType,AType::AStructType>::value));
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_member_data.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_data.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_data.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,13 +4,13 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_MEMBER_DATA(AnInt)
-TTI_HAS_MEMBER_DATA(aMember)
-TTI_TRAIT_HAS_MEMBER_DATA(CMember,cMem)
-TTI_HAS_MEMBER_DATA(someDataMember)
-TTI_HAS_MEMBER_DATA(IntBT)
-TTI_TRAIT_HAS_MEMBER_DATA(NestedData,NestedCT)
-TTI_TRAIT_HAS_MEMBER_DATA(AOther,OtherAT)
-TTI_HAS_MEMBER_DATA(ONestStr)
+BOOST_TTI_HAS_MEMBER_DATA(AnInt)
+BOOST_TTI_HAS_MEMBER_DATA(aMember)
+BOOST_TTI_TRAIT_HAS_MEMBER_DATA(CMember,cMem)
+BOOST_TTI_HAS_MEMBER_DATA(someDataMember)
+BOOST_TTI_HAS_MEMBER_DATA(IntBT)
+BOOST_TTI_TRAIT_HAS_MEMBER_DATA(NestedData,NestedCT)
+BOOST_TTI_TRAIT_HAS_MEMBER_DATA(AOther,OtherAT)
+BOOST_TTI_HAS_MEMBER_DATA(ONestStr)
#endif // TEST_HAS_MEMBER_DATA_HPP
Modified: sandbox/tti/libs/tti/test/test_has_member_data_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_data_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_data_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,19 +6,19 @@
// You can always instantiate without compiler errors
- tti::has_member_data_aMember<AType,long> aVar;
- tti::has_member_data_someDataMember<AnotherType,double> aVar2;
+ boost::tti::has_member_data_aMember<AType,long> aVar;
+ boost::tti::has_member_data_someDataMember<AnotherType,double> aVar2;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_member_data_AnInt<AType,int>));
- BOOST_MPL_ASSERT((tti::has_member_data_AnInt<AnotherType,long>));
- BOOST_MPL_ASSERT((tti::has_member_data_aMember<AnotherType,bool>));
- BOOST_MPL_ASSERT((tti::CMember<AnotherType,bool>));
- BOOST_MPL_ASSERT((tti::has_member_data_IntBT<AType,AType::BType>));
- BOOST_MPL_ASSERT((tti::NestedData<AType,AType::BType::CType>));
- BOOST_MPL_ASSERT((tti::AOther<AnotherType,AType>));
- BOOST_MPL_ASSERT((tti::has_member_data_ONestStr<AnotherType,AType::AStructType>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_data_AnInt<AType,int>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_data_AnInt<AnotherType,long>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_data_aMember<AnotherType,bool>));
+ BOOST_MPL_ASSERT((boost::tti::CMember<AnotherType,bool>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_data_IntBT<AType,AType::BType>));
+ BOOST_MPL_ASSERT((boost::tti::NestedData<AType,AType::BType::CType>));
+ BOOST_MPL_ASSERT((boost::tti::AOther<AnotherType,AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_member_data_ONestStr<AnotherType,AType::AStructType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_data_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_data_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_data_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// someDataMember does not exist at all
- BOOST_MPL_ASSERT(( tti::has_member_data_someDataMember<AType,short> ));
+ BOOST_MPL_ASSERT(( boost::tti::has_member_data_someDataMember<AType,short> ));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_data_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_data_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_data_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong data signature for aMember
- BOOST_MPL_ASSERT(( tti::has_member_data_aMember<AnotherType,int> ));
+ BOOST_MPL_ASSERT(( boost::tti::has_member_data_aMember<AnotherType,int> ));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_data_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_data_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_data_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Data signature has type which does not exist
- tti::has_member_data_aMember<AnotherType,AType::NTHType> aVar;
+ boost::tti::has_member_data_aMember<AnotherType,AType::NTHType> aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// someDataMember does not exist at all
- BOOST_MPL_ASSERT(( tti::has_member_someDataMember<short AType::*> ));
+ BOOST_MPL_ASSERT(( boost::tti::has_member_someDataMember<short AType::*> ));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong data signature for aMember
- BOOST_MPL_ASSERT(( tti::has_member_aMember<int AnotherType::*> ));
+ BOOST_MPL_ASSERT(( boost::tti::has_member_aMember<int AnotherType::*> ));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong function signature for sFunction
- BOOST_MPL_ASSERT(( tti::has_member_sFunction<AType::AnIntType (AnotherType::*)(short,long,double)> ));
+ BOOST_MPL_ASSERT(( boost::tti::has_member_sFunction<AType::AnIntType (AnotherType::*)(short,long,double)> ));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_fail4.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_fail4.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_fail4.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Data signature has type which does not exist
- tti::has_member_aMember<AType::NTHType AnotherType::*> aVar;
+ boost::tti::has_member_aMember<AType::NTHType AnotherType::*> aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_fail5.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_fail5.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_fail5.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Function signature has type which does not exist
- tti::has_member_sFunction<AType::AnIntType (NVType::*)(short,long,double)> aVar;
+ boost::tti::has_member_sFunction<AType::AnIntType (NVType::*)(short,long,double)> aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_function.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_function.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_function.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,13 +4,13 @@
int main()
{
- BOOST_TEST((tti::has_member_function_VoidFunction<AType,void>::value));
- BOOST_TEST((tti::FunctionReturningInt<AType,int>::value));
- BOOST_TEST((tti::FunctionReturningInt<AnotherType,double,boost::mpl::vector<int> >::value));
- BOOST_TEST((tti::has_member_function_aFunction<AnotherType,AType,boost::mpl::vector<int> >::value));
- BOOST_TEST((tti::AnotherIntFunction<AnotherType,int,boost::mpl::vector<AType> >::value));
- BOOST_TEST((tti::has_member_function_sFunction<AnotherType,AType::AnIntType,boost::mpl::vector<int,long,double> >::value));
- BOOST_TEST((!tti::has_member_function_someFunctionMember<AnotherType,AType,boost::mpl::vector<long,int> >::value));
+ BOOST_TEST((boost::tti::has_member_function_VoidFunction<AType,void>::value));
+ BOOST_TEST((boost::tti::FunctionReturningInt<AType,int>::value));
+ BOOST_TEST((boost::tti::FunctionReturningInt<AnotherType,double,boost::mpl::vector<int> >::value));
+ BOOST_TEST((boost::tti::has_member_function_aFunction<AnotherType,AType,boost::mpl::vector<int> >::value));
+ BOOST_TEST((boost::tti::AnotherIntFunction<AnotherType,int,boost::mpl::vector<AType> >::value));
+ BOOST_TEST((boost::tti::has_member_function_sFunction<AnotherType,AType::AnIntType,boost::mpl::vector<int,long,double> >::value));
+ BOOST_TEST((!boost::tti::has_member_function_someFunctionMember<AnotherType,AType,boost::mpl::vector<long,int> >::value));
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_member_function.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_function.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_function.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,11 +4,11 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_MEMBER_FUNCTION(VoidFunction)
-TTI_TRAIT_HAS_MEMBER_FUNCTION(FunctionReturningInt,IntFunction)
-TTI_HAS_MEMBER_FUNCTION(aFunction)
-TTI_TRAIT_HAS_MEMBER_FUNCTION(AnotherIntFunction,anotherFunction)
-TTI_HAS_MEMBER_FUNCTION(sFunction)
-TTI_HAS_MEMBER_FUNCTION(someFunctionMember)
+BOOST_TTI_HAS_MEMBER_FUNCTION(VoidFunction)
+BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION(FunctionReturningInt,IntFunction)
+BOOST_TTI_HAS_MEMBER_FUNCTION(aFunction)
+BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION(AnotherIntFunction,anotherFunction)
+BOOST_TTI_HAS_MEMBER_FUNCTION(sFunction)
+BOOST_TTI_HAS_MEMBER_FUNCTION(someFunctionMember)
#endif // TEST_HAS_MEMBER_FUNCTION_HPP
Modified: sandbox/tti/libs/tti/test/test_has_member_function_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_function_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_function_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,16 +6,16 @@
// You can always instantiate without compiler errors
- tti::has_member_function_someFunctionMember<AnotherType,double,boost::mpl::vector<short,short,long,int> > aVar3;
+ boost::tti::has_member_function_someFunctionMember<AnotherType,double,boost::mpl::vector<short,short,long,int> > aVar3;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_member_function_VoidFunction<AType,void>));
- BOOST_MPL_ASSERT((tti::FunctionReturningInt<AType,int>));
- BOOST_MPL_ASSERT((tti::FunctionReturningInt<AnotherType,double,boost::mpl::vector<int> >));
- BOOST_MPL_ASSERT((tti::has_member_function_aFunction<AnotherType,AType,boost::mpl::vector<int> >));
- BOOST_MPL_ASSERT((tti::AnotherIntFunction<AnotherType,int,boost::mpl::vector<AType> >));
- BOOST_MPL_ASSERT((tti::has_member_function_sFunction<AnotherType,AType::AnIntType,boost::mpl::vector<int,long,double> >));
+ BOOST_MPL_ASSERT((boost::tti::has_member_function_VoidFunction<AType,void>));
+ BOOST_MPL_ASSERT((boost::tti::FunctionReturningInt<AType,int>));
+ BOOST_MPL_ASSERT((boost::tti::FunctionReturningInt<AnotherType,double,boost::mpl::vector<int> >));
+ BOOST_MPL_ASSERT((boost::tti::has_member_function_aFunction<AnotherType,AType,boost::mpl::vector<int> >));
+ BOOST_MPL_ASSERT((boost::tti::AnotherIntFunction<AnotherType,int,boost::mpl::vector<AType> >));
+ BOOST_MPL_ASSERT((boost::tti::has_member_function_sFunction<AnotherType,AType::AnIntType,boost::mpl::vector<int,long,double> >));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_function_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_function_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_function_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong function signature for sFunction
- BOOST_MPL_ASSERT((tti::has_member_function_sFunction<AnotherType,AType::AnIntType,boost::mpl::vector<short,long,double> >));
+ BOOST_MPL_ASSERT((boost::tti::has_member_function_sFunction<AnotherType,AType::AnIntType,boost::mpl::vector<short,long,double> >));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_member_function_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_member_function_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_member_function_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Function signature has type which does not exist
- tti::has_member_function_sFunction<NVType,AType::AnIntType,boost::mpl::vector<short,long,double> > aVar;
+ boost::tti::has_member_function_sFunction<NVType,AType::AnIntType,boost::mpl::vector<short,long,double> > aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,13 +4,13 @@
int main()
{
- BOOST_TEST((tti::has_static_member_DSMember<AType,short>::value));
- BOOST_TEST((tti::HaveTheSIntFunction<AType,int (long,double)>::value));
- BOOST_TEST((!tti::TheTIntFunction<AType,AType (long,double)>::value));
- BOOST_TEST((tti::TheTIntFunction<AnotherType,AType (long,double)>::value));
- BOOST_TEST((tti::has_static_member_TSFunction<AnotherType,AType::AStructType (AType::AnIntType,double)>::value));
- BOOST_TEST((!tti::has_static_member_SomeStaticData<AnotherType,float>::value));
- BOOST_TEST((!tti::Pickedname<AnotherType,void ()>::value));
+ BOOST_TEST((boost::tti::has_static_member_DSMember<AType,short>::value));
+ BOOST_TEST((boost::tti::HaveTheSIntFunction<AType,int (long,double)>::value));
+ BOOST_TEST((!boost::tti::TheTIntFunction<AType,AType (long,double)>::value));
+ BOOST_TEST((boost::tti::TheTIntFunction<AnotherType,AType (long,double)>::value));
+ BOOST_TEST((boost::tti::has_static_member_TSFunction<AnotherType,AType::AStructType (AType::AnIntType,double)>::value));
+ BOOST_TEST((!boost::tti::has_static_member_SomeStaticData<AnotherType,float>::value));
+ BOOST_TEST((!boost::tti::Pickedname<AnotherType,void ()>::value));
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_static_member.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,11 +4,11 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_STATIC_MEMBER(DSMember)
-TTI_TRAIT_HAS_STATIC_MEMBER(HaveTheSIntFunction,SIntFunction)
-TTI_TRAIT_HAS_STATIC_MEMBER(TheTIntFunction,TIntFunction)
-TTI_HAS_STATIC_MEMBER(TSFunction)
-TTI_HAS_STATIC_MEMBER(SomeStaticData)
-TTI_TRAIT_HAS_STATIC_MEMBER(Pickedname,SomeStaticFunction)
+BOOST_TTI_HAS_STATIC_MEMBER(DSMember)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER(HaveTheSIntFunction,SIntFunction)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER(TheTIntFunction,TIntFunction)
+BOOST_TTI_HAS_STATIC_MEMBER(TSFunction)
+BOOST_TTI_HAS_STATIC_MEMBER(SomeStaticData)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER(Pickedname,SomeStaticFunction)
#endif // TEST_HAS_STATIC_MEMBER_HPP
Modified: sandbox/tti/libs/tti/test/test_has_static_member_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,16 +6,16 @@
// You can always instantiate without compiler errors
- tti::TheTIntFunction<AType,void (long,double)> aVar;
- tti::has_static_member_SomeStaticData<AnotherType,long> aVar2;
- tti::Pickedname<AnotherType,AType (long,long)> aVar3;
+ boost::tti::TheTIntFunction<AType,void (long,double)> aVar;
+ boost::tti::has_static_member_SomeStaticData<AnotherType,long> aVar2;
+ boost::tti::Pickedname<AnotherType,AType (long,long)> aVar3;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_static_member_DSMember<AType,short>));
- BOOST_MPL_ASSERT((tti::HaveTheSIntFunction<AType,int (long,double)>));
- BOOST_MPL_ASSERT((tti::TheTIntFunction<AnotherType,AType (long,double)>));
- BOOST_MPL_ASSERT((tti::has_static_member_TSFunction<AnotherType,AType::AStructType (AType::AnIntType,double)>));
+ BOOST_MPL_ASSERT((boost::tti::has_static_member_DSMember<AType,short>));
+ BOOST_MPL_ASSERT((boost::tti::HaveTheSIntFunction<AType,int (long,double)>));
+ BOOST_MPL_ASSERT((boost::tti::TheTIntFunction<AnotherType,AType (long,double)>));
+ BOOST_MPL_ASSERT((boost::tti::has_static_member_TSFunction<AnotherType,AType::AStructType (AType::AnIntType,double)>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// SomeStaticData does not exist at all
- BOOST_MPL_ASSERT((tti::has_static_member_SomeStaticData<AnotherType,float>));
+ BOOST_MPL_ASSERT((boost::tti::has_static_member_SomeStaticData<AnotherType,float>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong enclosing type for DSMember
- BOOST_MPL_ASSERT((tti::has_static_member_DSMember<AnotherType,short>));
+ BOOST_MPL_ASSERT((boost::tti::has_static_member_DSMember<AnotherType,short>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong function signature for SIntFunction
- BOOST_MPL_ASSERT((tti::HaveTheSIntFunction<AType,int (float,double)>));
+ BOOST_MPL_ASSERT((boost::tti::HaveTheSIntFunction<AType,int (float,double)>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member_fail4.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_fail4.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_fail4.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Data signature has type which does not exist
- tti::has_static_member_DSMember<NoType,short> aVar;
+ boost::tti::has_static_member_DSMember<NoType,short> aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member_fail5.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_fail5.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_fail5.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Function signature has type which does not exist
- tti::has_static_member_TSFunction<AnotherType,AType::AClassType (AType::AnIntType,double)> aVar;
+ boost::tti::has_static_member_TSFunction<AnotherType,AType::AClassType (AType::AnIntType,double)> aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member_function.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_function.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_function.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,11 +4,11 @@
int main()
{
- BOOST_TEST((tti::HaveTheSIntFunction<AType,int,boost::mpl::vector<long,double> >::value));
- BOOST_TEST((!tti::TheTIntFunction<AType,AType,boost::mpl::vector<long,double> >::value));
- BOOST_TEST((tti::TheTIntFunction<AnotherType,AType,boost::mpl::vector<long,double> >::value));
- BOOST_TEST((tti::has_static_member_function_TSFunction<AnotherType,AType::AStructType,boost::mpl::vector<AType::AnIntType,double> >::value));
- BOOST_TEST((!tti::Pickedname<AnotherType,void>::value));
+ BOOST_TEST((boost::tti::HaveTheSIntFunction<AType,int,boost::mpl::vector<long,double> >::value));
+ BOOST_TEST((!boost::tti::TheTIntFunction<AType,AType,boost::mpl::vector<long,double> >::value));
+ BOOST_TEST((boost::tti::TheTIntFunction<AnotherType,AType,boost::mpl::vector<long,double> >::value));
+ BOOST_TEST((boost::tti::has_static_member_function_TSFunction<AnotherType,AType::AStructType,boost::mpl::vector<AType::AnIntType,double> >::value));
+ BOOST_TEST((!boost::tti::Pickedname<AnotherType,void>::value));
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_static_member_function.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_function.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_function.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,9 +4,9 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(HaveTheSIntFunction,SIntFunction)
-TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(TheTIntFunction,TIntFunction)
-TTI_HAS_STATIC_MEMBER_FUNCTION(TSFunction)
-TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(Pickedname,SomeStaticFunction)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(HaveTheSIntFunction,SIntFunction)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(TheTIntFunction,TIntFunction)
+BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION(TSFunction)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(Pickedname,SomeStaticFunction)
#endif // TEST_HAS_STATIC_MEMBER_FUNCTION_HPP
Modified: sandbox/tti/libs/tti/test/test_has_static_member_function_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_function_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_function_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,14 +6,14 @@
// You can always instantiate without compiler errors
- tti::TheTIntFunction<AType,void,boost::mpl::vector<long,double> > aVar;
- tti::Pickedname<AnotherType,AType,boost::mpl::vector<long,long> > aVar3;
+ boost::tti::TheTIntFunction<AType,void,boost::mpl::vector<long,double> > aVar;
+ boost::tti::Pickedname<AnotherType,AType,boost::mpl::vector<long,long> > aVar3;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::HaveTheSIntFunction<AType,int,boost::mpl::vector<long,double> >));
- BOOST_MPL_ASSERT((tti::TheTIntFunction<AnotherType,AType,boost::mpl::vector<long,double> >));
- BOOST_MPL_ASSERT((tti::has_static_member_function_TSFunction<AnotherType,AType::AStructType,boost::mpl::vector<AType::AnIntType,double> >));
+ BOOST_MPL_ASSERT((boost::tti::HaveTheSIntFunction<AType,int,boost::mpl::vector<long,double> >));
+ BOOST_MPL_ASSERT((boost::tti::TheTIntFunction<AnotherType,AType,boost::mpl::vector<long,double> >));
+ BOOST_MPL_ASSERT((boost::tti::has_static_member_function_TSFunction<AnotherType,AType::AStructType,boost::mpl::vector<AType::AnIntType,double> >));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member_function_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_function_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_function_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong function signature for SIntFunction
- BOOST_MPL_ASSERT((tti::HaveTheSIntFunction<AType,int,boost::mpl::vector<float,double> >));
+ BOOST_MPL_ASSERT((boost::tti::HaveTheSIntFunction<AType,int,boost::mpl::vector<float,double> >));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_static_member_function_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_static_member_function_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_static_member_function_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Function signature has type which does not exist
- tti::has_static_member_TSFunction<AnotherType,AType::AClassType,boost::mpl::vector<AType::AnIntType,double> > aVar;
+ boost::tti::has_static_member_TSFunction<AnotherType,AType::AClassType,boost::mpl::vector<AType::AnIntType,double> > aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,13 +4,13 @@
int main()
{
- BOOST_TEST(tti::has_template_ATPMemberTemplate<AType>::value);
- BOOST_TEST(tti::HaveCL<AType>::value);
- BOOST_TEST(!tti::has_template_AMemberTemplate<AType>::value);
- BOOST_TEST(!tti::HaveAnotherMT<AType>::value);
- BOOST_TEST(!tti::has_template_SomeMemberTemplate<AnotherType>::value);
- BOOST_TEST(!tti::ATemplateWithParms<AnotherType>::value);
- BOOST_TEST(tti::has_template_SimpleTMP<AnotherType>::value);
+ BOOST_TEST(boost::tti::has_template_ATPMemberTemplate<AType>::value);
+ BOOST_TEST(boost::tti::HaveCL<AType>::value);
+ BOOST_TEST(!boost::tti::has_template_AMemberTemplate<AType>::value);
+ BOOST_TEST(!boost::tti::HaveAnotherMT<AType>::value);
+ BOOST_TEST(!boost::tti::has_template_SomeMemberTemplate<AnotherType>::value);
+ BOOST_TEST(!boost::tti::ATemplateWithParms<AnotherType>::value);
+ BOOST_TEST(boost::tti::has_template_SimpleTMP<AnotherType>::value);
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_template.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,13 +4,13 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_TEMPLATE(ATPMemberTemplate)
-TTI_TRAIT_HAS_TEMPLATE(HaveCL,CLMemberTemplate)
-TTI_HAS_TEMPLATE(AMemberTemplate)
-TTI_TRAIT_HAS_TEMPLATE(HaveAnotherMT,AnotherMemberTemplate)
-TTI_HAS_TEMPLATE(SomeMemberTemplate)
-TTI_TRAIT_HAS_TEMPLATE(ATemplateWithParms,ManyParameters)
-TTI_HAS_TEMPLATE(SimpleTMP)
-TTI_HAS_TEMPLATE(TemplateNotExist)
+BOOST_TTI_HAS_TEMPLATE(ATPMemberTemplate)
+BOOST_TTI_TRAIT_HAS_TEMPLATE(HaveCL,CLMemberTemplate)
+BOOST_TTI_HAS_TEMPLATE(AMemberTemplate)
+BOOST_TTI_TRAIT_HAS_TEMPLATE(HaveAnotherMT,AnotherMemberTemplate)
+BOOST_TTI_HAS_TEMPLATE(SomeMemberTemplate)
+BOOST_TTI_TRAIT_HAS_TEMPLATE(ATemplateWithParms,ManyParameters)
+BOOST_TTI_HAS_TEMPLATE(SimpleTMP)
+BOOST_TTI_HAS_TEMPLATE(TemplateNotExist)
#endif // TEST_HAS_TEMPLATE_HPP
Modified: sandbox/tti/libs/tti/test/test_has_template_check_params.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_check_params.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_check_params.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,14 +4,14 @@
int main()
{
- BOOST_TEST(tti::has_template_check_params_ATPMemberTemplate<AType>::value);
- BOOST_TEST(tti::HaveCL<AType>::value);
- BOOST_TEST(tti::has_template_check_params_AMemberTemplate<AType>::value);
- BOOST_TEST(tti::HaveAnotherMT<AType>::value);
- BOOST_TEST(tti::has_template_check_params_SomeMemberTemplate<AnotherType>::value);
- BOOST_TEST(tti::ATemplateWithParms<AnotherType>::value);
- BOOST_TEST(tti::has_template_check_params_SimpleTMP<AnotherType>::value);
- BOOST_TEST(!tti::has_template_check_params_TemplateNotExist<AnotherType>::value);
+ BOOST_TEST(boost::tti::has_template_check_params_ATPMemberTemplate<AType>::value);
+ BOOST_TEST(boost::tti::HaveCL<AType>::value);
+ BOOST_TEST(boost::tti::has_template_check_params_AMemberTemplate<AType>::value);
+ BOOST_TEST(boost::tti::HaveAnotherMT<AType>::value);
+ BOOST_TEST(boost::tti::has_template_check_params_SomeMemberTemplate<AnotherType>::value);
+ BOOST_TEST(boost::tti::ATemplateWithParms<AnotherType>::value);
+ BOOST_TEST(boost::tti::has_template_check_params_SimpleTMP<AnotherType>::value);
+ BOOST_TEST(!boost::tti::has_template_check_params_TemplateNotExist<AnotherType>::value);
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_template_check_params.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_check_params.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_check_params.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,15 +4,15 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_TEMPLATE_CHECK_PARAMS(ATPMemberTemplate,(class))
-TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HaveCL,CLMemberTemplate,(class)(class))
-TTI_HAS_TEMPLATE_CHECK_PARAMS(AMemberTemplate,(int))
-TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HaveAnotherMT,AnotherMemberTemplate,(int)(int))
-TTI_HAS_TEMPLATE_CHECK_PARAMS(SomeMemberTemplate,(class)(class)(class)(class)(class)(class))
-TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(ATemplateWithParms,ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(long))
-TTI_HAS_TEMPLATE_CHECK_PARAMS(SimpleTMP,(class)(class)(class)(class))
-TTI_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,(int)(class)(template <class> class ATemplate))
-TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParametersForMP,ManyParameters,(class)(class)(int)(class)(template <class)(class> class InnerTemplate)(class)(long))
-TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParameters2ForMP,ManyParameters,(class)(long)(int)(class)(template <class> class InnerTemplate)(class)(long))
+BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(ATPMemberTemplate,(class))
+BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HaveCL,CLMemberTemplate,(class)(class))
+BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(AMemberTemplate,(int))
+BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HaveAnotherMT,AnotherMemberTemplate,(int)(int))
+BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(SomeMemberTemplate,(class)(class)(class)(class)(class)(class))
+BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(ATemplateWithParms,ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(long))
+BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(SimpleTMP,(class)(class)(class)(class))
+BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,(int)(class)(template <class> class ATemplate))
+BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParametersForMP,ManyParameters,(class)(class)(int)(class)(template <class)(class> class InnerTemplate)(class)(long))
+BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParameters2ForMP,ManyParameters,(class)(long)(int)(class)(template <class> class InnerTemplate)(class)(long))
#endif // TEST_HAS_TEMPLATE_CHECK_PARAMS_HPP
Modified: sandbox/tti/libs/tti/test/test_has_template_check_params_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_check_params_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_check_params_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,17 +6,17 @@
// You can always instantiate without compiler errors
- tti::has_template_check_params_TemplateNotExist<AnotherType> aVar1;
+ boost::tti::has_template_check_params_TemplateNotExist<AnotherType> aVar1;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_template_check_params_ATPMemberTemplate<AType>));
- BOOST_MPL_ASSERT((tti::HaveCL<AType>));
- BOOST_MPL_ASSERT((tti::has_template_check_params_AMemberTemplate<AType>));
- BOOST_MPL_ASSERT((tti::HaveAnotherMT<AType>));
- BOOST_MPL_ASSERT((tti::has_template_check_params_SomeMemberTemplate<AnotherType>));
- BOOST_MPL_ASSERT((tti::ATemplateWithParms<AnotherType>));
- BOOST_MPL_ASSERT((tti::has_template_check_params_SimpleTMP<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_ATPMemberTemplate<AType>));
+ BOOST_MPL_ASSERT((boost::tti::HaveCL<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_AMemberTemplate<AType>));
+ BOOST_MPL_ASSERT((boost::tti::HaveAnotherMT<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_SomeMemberTemplate<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::ATemplateWithParms<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_SimpleTMP<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_check_params_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_check_params_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_check_params_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// TemplateNotExist does not exist at all
- BOOST_MPL_ASSERT((tti::has_template_check_params_TemplateNotExist<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_TemplateNotExist<AType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_check_params_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_check_params_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_check_params_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::HaveCL<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::HaveCL<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_check_params_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_check_params_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_check_params_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong template parameters
- BOOST_MPL_ASSERT((tti::WrongParametersForMP<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::WrongParametersForMP<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_check_params_fail4.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_check_params_fail4.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_check_params_fail4.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong template parameters
- BOOST_MPL_ASSERT((tti::WrongParameters2ForMP<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::WrongParameters2ForMP<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,16 +6,16 @@
// You can always instantiate without compiler errors
- tti::has_template_AMemberTemplate<AnotherType> aVar;
- tti::HaveAnotherMT<AnotherType> aVar2;
- tti::has_template_SomeMemberTemplate<AType> aVar3;
- tti::has_template_TemplateNotExist<AType> aVar4;
+ boost::tti::has_template_AMemberTemplate<AnotherType> aVar;
+ boost::tti::HaveAnotherMT<AnotherType> aVar2;
+ boost::tti::has_template_SomeMemberTemplate<AType> aVar3;
+ boost::tti::has_template_TemplateNotExist<AType> aVar4;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_template_ATPMemberTemplate<AType>));
- BOOST_MPL_ASSERT((tti::HaveCL<AType>));
- BOOST_MPL_ASSERT((tti::has_template_SimpleTMP<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_ATPMemberTemplate<AType>));
+ BOOST_MPL_ASSERT((boost::tti::HaveCL<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_SimpleTMP<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// TemplateNotExist does not exist at all
- BOOST_MPL_ASSERT((tti::has_template_TemplateNotExist<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_TemplateNotExist<AType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::has_template_ATPMemberTemplate<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_ATPMemberTemplate<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Too many 'typename' parameters
- BOOST_MPL_ASSERT((tti::has_template_SomeMemberTemplate<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_SomeMemberTemplate<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_template_fail4.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_template_fail4.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_template_fail4.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Not all 'typename' parameters
- BOOST_MPL_ASSERT((tti::HaveAnotherMT<AType>));
+ BOOST_MPL_ASSERT((boost::tti::HaveAnotherMT<AType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,15 +4,15 @@
int main()
{
- BOOST_TEST(tti::has_type_AnIntType<AType>::value);
- BOOST_TEST(tti::has_type_AnIntTypeReference<AType>::value);
- BOOST_TEST(tti::NameStruct<AType>::value);
- BOOST_TEST(tti::has_type_BType<AType>::value);
- BOOST_TEST(tti::TheInteger<AType::BType>::value);
- BOOST_TEST(tti::has_type_CType<AType::BType>::value);
- BOOST_TEST(tti::has_type_AnotherIntegerType<AType::BType::CType>::value);
- BOOST_TEST(tti::SomethingElse<AnotherType>::value);
- BOOST_TEST(!tti::has_type_NoOtherType<AnotherType>::value);
+ BOOST_TEST(boost::tti::has_type_AnIntType<AType>::value);
+ BOOST_TEST(boost::tti::has_type_AnIntTypeReference<AType>::value);
+ BOOST_TEST(boost::tti::NameStruct<AType>::value);
+ BOOST_TEST(boost::tti::has_type_BType<AType>::value);
+ BOOST_TEST(boost::tti::TheInteger<AType::BType>::value);
+ BOOST_TEST(boost::tti::has_type_CType<AType::BType>::value);
+ BOOST_TEST(boost::tti::has_type_AnotherIntegerType<AType::BType::CType>::value);
+ BOOST_TEST(boost::tti::SomethingElse<AnotherType>::value);
+ BOOST_TEST(!boost::tti::has_type_NoOtherType<AnotherType>::value);
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_type.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,14 +4,14 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_TYPE(AnIntType)
-TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
-TTI_HAS_TYPE(AnIntTypeReference)
-TTI_HAS_TYPE(BType)
-TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
-TTI_HAS_TYPE(CType)
-TTI_HAS_TYPE(AnotherIntegerType)
-TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
-TTI_HAS_TYPE(NoOtherType)
+BOOST_TTI_HAS_TYPE(AnIntType)
+BOOST_TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
+BOOST_TTI_HAS_TYPE(AnIntTypeReference)
+BOOST_TTI_HAS_TYPE(BType)
+BOOST_TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
+BOOST_TTI_HAS_TYPE(CType)
+BOOST_TTI_HAS_TYPE(AnotherIntegerType)
+BOOST_TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
+BOOST_TTI_HAS_TYPE(NoOtherType)
#endif // TEST_HAS_TYPE_HPP
Modified: sandbox/tti/libs/tti/test/test_has_type_check_typedef.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_check_typedef.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_check_typedef.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,15 +4,15 @@
int main()
{
- BOOST_TEST((tti::has_type_AnIntType<AType,int>::value));
- BOOST_TEST((tti::NameStruct<AType,AType::AStructType>::value));
- BOOST_TEST((tti::has_type_AnIntTypeReference<AType,int &>::value));
- BOOST_TEST((tti::has_type_BType<AType,AType::BType>::value));
- BOOST_TEST((tti::TheInteger<AType::BType,int>::value));
- BOOST_TEST((tti::has_type_CType<AType::BType,AType::BType::CType>::value));
- BOOST_TEST((tti::has_type_AnotherIntegerType<AType::BType::CType,int>::value));
- BOOST_TEST((tti::SomethingElse<AnotherType,AType::AnIntType>::value));
- BOOST_TEST((!tti::has_type_NoOtherType<AnotherType,double>::value));
+ BOOST_TEST((boost::tti::has_type_AnIntType<AType,int>::value));
+ BOOST_TEST((boost::tti::NameStruct<AType,AType::AStructType>::value));
+ BOOST_TEST((boost::tti::has_type_AnIntTypeReference<AType,int &>::value));
+ BOOST_TEST((boost::tti::has_type_BType<AType,AType::BType>::value));
+ BOOST_TEST((boost::tti::TheInteger<AType::BType,int>::value));
+ BOOST_TEST((boost::tti::has_type_CType<AType::BType,AType::BType::CType>::value));
+ BOOST_TEST((boost::tti::has_type_AnotherIntegerType<AType::BType::CType,int>::value));
+ BOOST_TEST((boost::tti::SomethingElse<AnotherType,AType::AnIntType>::value));
+ BOOST_TEST((!boost::tti::has_type_NoOtherType<AnotherType,double>::value));
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_has_type_check_typedef.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_check_typedef.hpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_check_typedef.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,14 +4,14 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_TYPE(AnIntType)
-TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
-TTI_HAS_TYPE(AnIntTypeReference)
-TTI_HAS_TYPE(BType)
-TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
-TTI_HAS_TYPE(CType)
-TTI_HAS_TYPE(AnotherIntegerType)
-TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
-TTI_HAS_TYPE(NoOtherType)
+BOOST_TTI_HAS_TYPE(AnIntType)
+BOOST_TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
+BOOST_TTI_HAS_TYPE(AnIntTypeReference)
+BOOST_TTI_HAS_TYPE(BType)
+BOOST_TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
+BOOST_TTI_HAS_TYPE(CType)
+BOOST_TTI_HAS_TYPE(AnotherIntegerType)
+BOOST_TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
+BOOST_TTI_HAS_TYPE(NoOtherType)
#endif // TEST_HAS_TYPE_CHECK_TYPEDEF_HPP
Modified: sandbox/tti/libs/tti/test/test_has_type_check_typedef_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_check_typedef_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_check_typedef_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,19 +6,19 @@
// You can always instantiate without compiler errors
- tti::TheInteger<AType::BType,short> aVar;
- tti::has_type_NoOtherType<AnotherType,double> aVar2;
+ boost::tti::TheInteger<AType::BType,short> aVar;
+ boost::tti::has_type_NoOtherType<AnotherType,double> aVar2;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_type_AnIntType<AType,int>));
- BOOST_MPL_ASSERT((tti::NameStruct<AType,AType::AStructType>));
- BOOST_MPL_ASSERT((tti::has_type_AnIntTypeReference<AType,int &>));
- BOOST_MPL_ASSERT((tti::has_type_BType<AType,AType::BType>));
- BOOST_MPL_ASSERT((tti::TheInteger<AType::BType,int>));
- BOOST_MPL_ASSERT((tti::has_type_CType<AType::BType,AType::BType::CType>));
- BOOST_MPL_ASSERT((tti::has_type_AnotherIntegerType<AType::BType::CType,int>));
- BOOST_MPL_ASSERT((tti::SomethingElse<AnotherType,AType::AnIntType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_AnIntType<AType,int>));
+ BOOST_MPL_ASSERT((boost::tti::NameStruct<AType,AType::AStructType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_AnIntTypeReference<AType,int &>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_BType<AType,AType::BType>));
+ BOOST_MPL_ASSERT((boost::tti::TheInteger<AType::BType,int>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_CType<AType::BType,AType::BType::CType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_AnotherIntegerType<AType::BType::CType,int>));
+ BOOST_MPL_ASSERT((boost::tti::SomethingElse<AnotherType,AType::AnIntType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// NoOtherType does not exist at all
- BOOST_MPL_ASSERT((tti::has_type_NoOtherType<AType,int>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_NoOtherType<AType,int>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::has_type_BType<AnotherType,short>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_BType<AnotherType,short>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Enclosing type does not exist
- tti::TheInteger<AType::EType,double> aVar;
+ boost::tti::TheInteger<AType::EType,double> aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail4.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail4.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail4.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Typedef type does not exist ( BType is a nested type )
- tti::has_type_BType<AType,BType> aVar;
+ boost::tti::has_type_BType<AType,BType> aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail5.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail5.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_check_typedef_fail5.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong typedef type
- BOOST_MPL_ASSERT((tti::has_type_AnotherIntegerType<AType::BType::CType,long>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_AnotherIntegerType<AType::BType::CType,long>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,19 +6,19 @@
// You can always instantiate without compiler errors
- tti::has_type_AnIntType<AnotherType> aVar1;
- tti::has_type_NoOtherType<AType> aVar2;
+ boost::tti::has_type_AnIntType<AnotherType> aVar1;
+ boost::tti::has_type_NoOtherType<AType> aVar2;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_type_AnIntType<AType>));
- BOOST_MPL_ASSERT((tti::has_type_AnIntTypeReference<AType>));
- BOOST_MPL_ASSERT((tti::NameStruct<AType>));
- BOOST_MPL_ASSERT((tti::has_type_BType<AType>));
- BOOST_MPL_ASSERT((tti::TheInteger<AType::BType>));
- BOOST_MPL_ASSERT((tti::has_type_CType<AType::BType>));
- BOOST_MPL_ASSERT((tti::has_type_AnotherIntegerType<AType::BType::CType>));
- BOOST_MPL_ASSERT((tti::SomethingElse<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_AnIntType<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_AnIntTypeReference<AType>));
+ BOOST_MPL_ASSERT((boost::tti::NameStruct<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_BType<AType>));
+ BOOST_MPL_ASSERT((boost::tti::TheInteger<AType::BType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_CType<AType::BType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_AnotherIntegerType<AType::BType::CType>));
+ BOOST_MPL_ASSERT((boost::tti::SomethingElse<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// NoOtherType does not exist at all
- BOOST_MPL_ASSERT((tti::has_type_NoOtherType<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_NoOtherType<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,7 +6,7 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::has_type_BType<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_type_BType<AnotherType>));
return 0;
Modified: sandbox/tti/libs/tti/test/test_has_type_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_has_type_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_has_type_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -5,7 +5,7 @@
// Enclosing type does not exist
- tti::TheInteger<AType::EType> aVar;
+ boost::tti::TheInteger<AType::EType> aVar;
return 0;
Modified: sandbox/tti/libs/tti/test/test_member_type.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_member_type.cpp (original)
+++ sandbox/tti/libs/tti/test/test_member_type.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,14 +4,14 @@
int main()
{
- BOOST_TEST(tti::mf_valid_member_type<tti::member_type_AnIntType<AType> >::value);
- BOOST_TEST(tti::mf_valid_member_type<tti::NameStruct<AType> >::value);
- BOOST_TEST(tti::mf_valid_member_type<tti::member_type_AnIntTypeReference<AType> >::value);
- BOOST_TEST(tti::mf_valid_member_type<tti::member_type_BType<AType> >::value);
- BOOST_TEST(tti::mf_valid_member_type<tti::TheInteger<AType::BType> >::value);
- BOOST_TEST(tti::mf_valid_member_type<tti::member_type_CType<AType::BType> >::value);
- BOOST_TEST(tti::mf_valid_member_type<tti::member_type_AnotherIntegerType<AType::BType::CType> >::value);
- BOOST_TEST(tti::mf_valid_member_type<tti::SomethingElse<AnotherType> >::value);
+ BOOST_TEST(boost::tti::mf_valid_member_type<boost::tti::member_type_AnIntType<AType> >::value);
+ BOOST_TEST(boost::tti::mf_valid_member_type<boost::tti::NameStruct<AType> >::value);
+ BOOST_TEST(boost::tti::mf_valid_member_type<boost::tti::member_type_AnIntTypeReference<AType> >::value);
+ BOOST_TEST(boost::tti::mf_valid_member_type<boost::tti::member_type_BType<AType> >::value);
+ BOOST_TEST(boost::tti::mf_valid_member_type<boost::tti::TheInteger<AType::BType> >::value);
+ BOOST_TEST(boost::tti::mf_valid_member_type<boost::tti::member_type_CType<AType::BType> >::value);
+ BOOST_TEST(boost::tti::mf_valid_member_type<boost::tti::member_type_AnotherIntegerType<AType::BType::CType> >::value);
+ BOOST_TEST(boost::tti::mf_valid_member_type<boost::tti::SomethingElse<AnotherType> >::value);
return boost::report_errors();
Modified: sandbox/tti/libs/tti/test/test_member_type.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_member_type.hpp (original)
+++ sandbox/tti/libs/tti/test/test_member_type.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,13 +4,13 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_MEMBER_TYPE(AnIntType)
-TTI_TRAIT_MEMBER_TYPE(NameStruct,AStructType)
-TTI_MEMBER_TYPE(AnIntTypeReference)
-TTI_MEMBER_TYPE(BType)
-TTI_TRAIT_MEMBER_TYPE(TheInteger,AnIntegerType)
-TTI_MEMBER_TYPE(CType)
-TTI_MEMBER_TYPE(AnotherIntegerType)
-TTI_TRAIT_MEMBER_TYPE(SomethingElse,someOtherType)
+BOOST_TTI_MEMBER_TYPE(AnIntType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(NameStruct,AStructType)
+BOOST_TTI_MEMBER_TYPE(AnIntTypeReference)
+BOOST_TTI_MEMBER_TYPE(BType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(TheInteger,AnIntegerType)
+BOOST_TTI_MEMBER_TYPE(CType)
+BOOST_TTI_MEMBER_TYPE(AnotherIntegerType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(SomethingElse,someOtherType)
#endif // TEST_MEMBER_TYPE_HPP
Modified: sandbox/tti/libs/tti/test/test_member_type_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_member_type_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_member_type_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,14 +4,14 @@
int main()
{
- BOOST_MPL_ASSERT((tti::mf_valid_member_type<tti::member_type_AnIntType<AType> >));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type<tti::NameStruct<AType> >));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type<tti::member_type_AnIntTypeReference<AType> >));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type<tti::member_type_BType<AType> >));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type<tti::TheInteger<AType::BType> >));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type<tti::member_type_CType<AType::BType> >));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type<tti::member_type_AnotherIntegerType<AType::BType::CType> >));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type<tti::SomethingElse<AnotherType> >));
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type<boost::tti::member_type_AnIntType<AType> >));
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type<boost::tti::NameStruct<AType> >));
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type<boost::tti::member_type_AnIntTypeReference<AType> >));
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type<boost::tti::member_type_BType<AType> >));
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type<boost::tti::TheInteger<AType::BType> >));
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type<boost::tti::member_type_CType<AType::BType> >));
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type<boost::tti::member_type_AnotherIntegerType<AType::BType::CType> >));
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type<boost::tti::SomethingElse<AnotherType> >));
return 0;
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_data.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_data.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_data.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,154 +6,154 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::has_member_data_AnInt<_,_>,
+ boost::tti::has_member_data_AnInt<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::has_member_data_AnInt<_,_>,
+ boost::tti::has_member_data_AnInt<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<long>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::has_member_data_aMember<_,_>,
+ boost::tti::has_member_data_aMember<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::CMember<_,_>,
+ boost::tti::CMember<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::has_member_data_IntBT<_,_>,
+ boost::tti::has_member_data_IntBT<_,_>,
boost::mpl::identity<AType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::NestedData<_,_>,
+ boost::tti::NestedData<_,_>,
boost::mpl::identity<AType>,
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::AOther<_,_>,
+ boost::tti::AOther<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::has_member_data_ONestStr<_,_>,
+ boost::tti::has_member_data_ONestStr<_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_AnInt,
+ boost::tti::mtfc_has_member_data_AnInt,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_AnInt,
+ boost::tti::mtfc_has_member_data_AnInt,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<long>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_aMember,
+ boost::tti::mtfc_has_member_data_aMember,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::MFCMember,
+ boost::tti::MFCMember,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_IntBT,
+ boost::tti::mtfc_has_member_data_IntBT,
boost::mpl::identity<AType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::MFNestedData,
+ boost::tti::MFNestedData,
boost::mpl::identity<AType>,
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::MFAOther,
+ boost::tti::MFAOther,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_member_data
+ BOOST_TEST((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_ONestStr,
+ boost::tti::mtfc_has_member_data_ONestStr,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>
+ boost::tti::member_type_AStructType<AType>
>
::value
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_data.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_data.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_data.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,28 +4,28 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_MEMBER_DATA(AnInt)
-TTI_HAS_MEMBER_DATA(aMember)
-TTI_TRAIT_HAS_MEMBER_DATA(CMember,cMem)
-TTI_HAS_MEMBER_DATA(someDataMember)
-TTI_HAS_MEMBER_DATA(IntBT)
-TTI_TRAIT_HAS_MEMBER_DATA(NestedData,NestedCT)
-TTI_TRAIT_HAS_MEMBER_DATA(AOther,OtherAT)
-TTI_HAS_MEMBER_DATA(ONestStr)
+BOOST_TTI_HAS_MEMBER_DATA(AnInt)
+BOOST_TTI_HAS_MEMBER_DATA(aMember)
+BOOST_TTI_TRAIT_HAS_MEMBER_DATA(CMember,cMem)
+BOOST_TTI_HAS_MEMBER_DATA(someDataMember)
+BOOST_TTI_HAS_MEMBER_DATA(IntBT)
+BOOST_TTI_TRAIT_HAS_MEMBER_DATA(NestedData,NestedCT)
+BOOST_TTI_TRAIT_HAS_MEMBER_DATA(AOther,OtherAT)
+BOOST_TTI_HAS_MEMBER_DATA(ONestStr)
-TTI_MTFC_HAS_MEMBER_DATA(AnInt)
-TTI_MTFC_HAS_MEMBER_DATA(aMember)
-TTI_MTFC_TRAIT_HAS_MEMBER_DATA(MFCMember,cMem)
-TTI_MTFC_HAS_MEMBER_DATA(someDataMember)
-TTI_MTFC_HAS_MEMBER_DATA(IntBT)
-TTI_MTFC_TRAIT_HAS_MEMBER_DATA(MFNestedData,NestedCT)
-TTI_MTFC_TRAIT_HAS_MEMBER_DATA(MFAOther,OtherAT)
-TTI_MTFC_HAS_MEMBER_DATA(ONestStr)
+BOOST_TTI_MTFC_HAS_MEMBER_DATA(AnInt)
+BOOST_TTI_MTFC_HAS_MEMBER_DATA(aMember)
+BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_DATA(MFCMember,cMem)
+BOOST_TTI_MTFC_HAS_MEMBER_DATA(someDataMember)
+BOOST_TTI_MTFC_HAS_MEMBER_DATA(IntBT)
+BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_DATA(MFNestedData,NestedCT)
+BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_DATA(MFAOther,OtherAT)
+BOOST_TTI_MTFC_HAS_MEMBER_DATA(ONestStr)
-TTI_MEMBER_TYPE(BType)
-TTI_MEMBER_TYPE(CType)
-TTI_MEMBER_TYPE(AStructType)
+BOOST_TTI_MEMBER_TYPE(BType)
+BOOST_TTI_MEMBER_TYPE(CType)
+BOOST_TTI_MEMBER_TYPE(AStructType)
-TTI_MTFC_MEMBER_TYPE(CType)
+BOOST_TTI_MTFC_MEMBER_TYPE(CType)
#endif // TEST_MF_HAS_MEMBER_DATA_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_data_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_data_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_data_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,139 +6,139 @@
using namespace boost::mpl::placeholders;
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::has_member_data_AnInt<_,_>,
+ boost::tti::has_member_data_AnInt<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::has_member_data_AnInt<_,_>,
+ boost::tti::has_member_data_AnInt<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<long>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::has_member_data_aMember<_,_>,
+ boost::tti::has_member_data_aMember<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::CMember<_,_>,
+ boost::tti::CMember<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::has_member_data_IntBT<_,_>,
+ boost::tti::has_member_data_IntBT<_,_>,
boost::mpl::identity<AType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::NestedData<_,_>,
+ boost::tti::NestedData<_,_>,
boost::mpl::identity<AType>,
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::AOther<_,_>,
+ boost::tti::AOther<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::has_member_data_ONestStr<_,_>,
+ boost::tti::has_member_data_ONestStr<_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_AnInt,
+ boost::tti::mtfc_has_member_data_AnInt,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_AnInt,
+ boost::tti::mtfc_has_member_data_AnInt,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<long>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_aMember,
+ boost::tti::mtfc_has_member_data_aMember,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::MFCMember,
+ boost::tti::MFCMember,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_IntBT,
+ boost::tti::mtfc_has_member_data_IntBT,
boost::mpl::identity<AType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::MFNestedData,
+ boost::tti::MFNestedData,
boost::mpl::identity<AType>,
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::MFAOther,
+ boost::tti::MFAOther,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::mtfc_has_member_data_ONestStr,
+ boost::tti::mtfc_has_member_data_ONestStr,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>
+ boost::tti::member_type_AStructType<AType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_data_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_data_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_data_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// someDataMember does not exist at all
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::has_member_data_someDataMember<_,_>,
+ boost::tti::has_member_data_someDataMember<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<short>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_data_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_data_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_data_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Wrong data signature for AnInt
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::has_member_data_AnInt<_,_>,
+ boost::tti::has_member_data_AnInt<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_data_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_data_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_data_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::mf_has_member_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_data
<
- tti::has_member_data_aMember<_,_>,
+ boost::tti::has_member_data_aMember<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<bool>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_function.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_function.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_function.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,27 +6,27 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::has_member_function_VoidFunction<_,_>,
+ boost::tti::has_member_function_VoidFunction<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<void>
>
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::FunctionReturningInt<_,_>,
+ boost::tti::FunctionReturningInt<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::FunctionReturningInt<_,_,_>,
+ boost::tti::FunctionReturningInt<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>,
boost::mpl::vector<boost::mpl::identity<int> >
@@ -34,9 +34,9 @@
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::has_member_function_aFunction<_,_,_>,
+ boost::tti::has_member_function_aFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector<boost::mpl::identity<int> >
@@ -44,9 +44,9 @@
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::AnotherIntFunction<_,_,_>,
+ boost::tti::AnotherIntFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<int>,
boost::mpl::vector<boost::mpl::identity<AType> >
@@ -54,11 +54,11 @@
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::has_member_function_sFunction<_,_,_>,
+ boost::tti::has_member_function_sFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AType>,
+ boost::tti::member_type_AnIntType<AType>,
boost::mpl::vector
<
boost::mpl::identity<int>,
@@ -69,27 +69,27 @@
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::mtfc_has_member_function_VoidFunction,
+ boost::tti::mtfc_has_member_function_VoidFunction,
boost::mpl::identity<AType>,
boost::mpl::identity<void>
>
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::MFFunctionReturningInt,
+ boost::tti::MFFunctionReturningInt,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::MFFunctionReturningInt,
+ boost::tti::MFFunctionReturningInt,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>,
boost::mpl::vector<boost::mpl::identity<int> >
@@ -97,9 +97,9 @@
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::mtfc_has_member_function_aFunction,
+ boost::tti::mtfc_has_member_function_aFunction,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector<boost::mpl::identity<int> >
@@ -107,9 +107,9 @@
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::MFAnotherIntFunction,
+ boost::tti::MFAnotherIntFunction,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<int>,
boost::mpl::vector<boost::mpl::identity<AType> >
@@ -117,11 +117,11 @@
::value
));
- BOOST_TEST((tti::mf_has_member_function
+ BOOST_TEST((boost::tti::mf_has_member_function
<
- tti::mtfc_has_member_function_sFunction,
+ boost::tti::mtfc_has_member_function_sFunction,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AType>,
+ boost::tti::member_type_AnIntType<AType>,
boost::mpl::vector
<
boost::mpl::identity<int>,
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_function.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_function.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_function.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,20 +4,20 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_MEMBER_FUNCTION(VoidFunction)
-TTI_TRAIT_HAS_MEMBER_FUNCTION(FunctionReturningInt,IntFunction)
-TTI_HAS_MEMBER_FUNCTION(aFunction)
-TTI_TRAIT_HAS_MEMBER_FUNCTION(AnotherIntFunction,anotherFunction)
-TTI_HAS_MEMBER_FUNCTION(sFunction)
-TTI_HAS_MEMBER_FUNCTION(someFunctionMember)
+BOOST_TTI_HAS_MEMBER_FUNCTION(VoidFunction)
+BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION(FunctionReturningInt,IntFunction)
+BOOST_TTI_HAS_MEMBER_FUNCTION(aFunction)
+BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION(AnotherIntFunction,anotherFunction)
+BOOST_TTI_HAS_MEMBER_FUNCTION(sFunction)
+BOOST_TTI_HAS_MEMBER_FUNCTION(someFunctionMember)
-TTI_MTFC_HAS_MEMBER_FUNCTION(VoidFunction)
-TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION(MFFunctionReturningInt,IntFunction)
-TTI_MTFC_HAS_MEMBER_FUNCTION(aFunction)
-TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION(MFAnotherIntFunction,anotherFunction)
-TTI_MTFC_HAS_MEMBER_FUNCTION(sFunction)
-TTI_MTFC_HAS_MEMBER_FUNCTION(someFunctionMember)
+BOOST_TTI_MTFC_HAS_MEMBER_FUNCTION(VoidFunction)
+BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION(MFFunctionReturningInt,IntFunction)
+BOOST_TTI_MTFC_HAS_MEMBER_FUNCTION(aFunction)
+BOOST_TTI_MTFC_TRAIT_HAS_MEMBER_FUNCTION(MFAnotherIntFunction,anotherFunction)
+BOOST_TTI_MTFC_HAS_MEMBER_FUNCTION(sFunction)
+BOOST_TTI_MTFC_HAS_MEMBER_FUNCTION(someFunctionMember)
-TTI_MEMBER_TYPE(AnIntType)
+BOOST_TTI_MEMBER_TYPE(AnIntType)
#endif // TEST_MF_HAS_MEMBER_FUNCTION_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_function_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_function_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_function_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,18 +8,18 @@
// You can always instantiate without compiler errors
- tti::mf_has_member_function
+ boost::tti::mf_has_member_function
<
- tti::FunctionReturningInt<_,_>,
+ boost::tti::FunctionReturningInt<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<short>
> aVar;
- tti::mf_has_member_function
+ boost::tti::mf_has_member_function
<
- tti::has_member_function_sFunction<_,_,_>,
+ boost::tti::has_member_function_sFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AnotherType>,
+ boost::tti::member_type_AnIntType<AnotherType>,
boost::mpl::vector
<
boost::mpl::identity<int>,
@@ -28,9 +28,9 @@
>
> aVar2;
- tti::mf_has_member_function
+ boost::tti::mf_has_member_function
<
- tti::has_member_function_someFunctionMember<_,_,_>,
+ boost::tti::has_member_function_someFunctionMember<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<short>,
boost::mpl::vector
@@ -43,54 +43,54 @@
// Compile time asserts
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::has_member_function_VoidFunction<_,_>,
+ boost::tti::has_member_function_VoidFunction<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<void>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::FunctionReturningInt<_,_>,
+ boost::tti::FunctionReturningInt<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::FunctionReturningInt<_,_,_>,
+ boost::tti::FunctionReturningInt<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>,
boost::mpl::vector<boost::mpl::identity<int> >
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::has_member_function_aFunction<_,_,_>,
+ boost::tti::has_member_function_aFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector<boost::mpl::identity<int> >
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::AnotherIntFunction<_,_,_>,
+ boost::tti::AnotherIntFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<int>,
boost::mpl::vector<boost::mpl::identity<AType> >
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::has_member_function_sFunction<_,_,_>,
+ boost::tti::has_member_function_sFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AType>,
+ boost::tti::member_type_AnIntType<AType>,
boost::mpl::vector
<
boost::mpl::identity<int>,
@@ -100,54 +100,54 @@
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::mtfc_has_member_function_VoidFunction,
+ boost::tti::mtfc_has_member_function_VoidFunction,
boost::mpl::identity<AType>,
boost::mpl::identity<void>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::MFFunctionReturningInt,
+ boost::tti::MFFunctionReturningInt,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::MFFunctionReturningInt,
+ boost::tti::MFFunctionReturningInt,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>,
boost::mpl::vector<boost::mpl::identity<int> >
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::mtfc_has_member_function_aFunction,
+ boost::tti::mtfc_has_member_function_aFunction,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector<boost::mpl::identity<int> >
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::MFAnotherIntFunction,
+ boost::tti::MFAnotherIntFunction,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<int>,
boost::mpl::vector<boost::mpl::identity<AType> >
>
));
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::mtfc_has_member_function_sFunction,
+ boost::tti::mtfc_has_member_function_sFunction,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AType>,
+ boost::tti::member_type_AnIntType<AType>,
boost::mpl::vector
<
boost::mpl::identity<int>,
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_function_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_function_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_function_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// someFunctionMember does not exist at all
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::has_member_function_someFunctionMember<_,_,_>,
+ boost::tti::has_member_function_someFunctionMember<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<short>,
boost::mpl::vector
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_function_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_function_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_function_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Wrong function signature
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::FunctionReturningInt<_,_>,
+ boost::tti::FunctionReturningInt<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<short>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_member_function_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_member_function_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_member_function_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,11 +8,11 @@
// Wrong enclosing type for nested type
- BOOST_MPL_ASSERT((tti::mf_has_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_member_function
<
- tti::has_member_function_sFunction<_,_,_>,
+ boost::tti::has_member_function_sFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AnotherType>,
+ boost::tti::member_type_AnIntType<AnotherType>,
boost::mpl::vector
<
boost::mpl::identity<int>,
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_data.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_data.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_data.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,18 +6,18 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_static_data
+ BOOST_TEST((boost::tti::mf_has_static_data
<
- tti::has_static_member_DSMember<_,_>,
+ boost::tti::has_static_member_DSMember<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<short>
>
::value
));
- BOOST_TEST((tti::mf_has_static_data
+ BOOST_TEST((boost::tti::mf_has_static_data
<
- tti::mtfc_has_static_member_DSMember,
+ boost::tti::mtfc_has_static_member_DSMember,
boost::mpl::identity<AType>,
boost::mpl::identity<short>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_data.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_data.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_data.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,10 +4,10 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_STATIC_MEMBER(DSMember)
-TTI_HAS_STATIC_MEMBER(SomeStaticData)
+BOOST_TTI_HAS_STATIC_MEMBER(DSMember)
+BOOST_TTI_HAS_STATIC_MEMBER(SomeStaticData)
-TTI_MTFC_HAS_STATIC_MEMBER(DSMember)
-TTI_MTFC_HAS_STATIC_MEMBER(SomeStaticData)
+BOOST_TTI_MTFC_HAS_STATIC_MEMBER(DSMember)
+BOOST_TTI_MTFC_HAS_STATIC_MEMBER(SomeStaticData)
#endif // TEST_MF_HAS_STATIC_DATA_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_data_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_data_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_data_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,26 +8,26 @@
// You can always instantiate without compiler errors
- tti::mf_has_static_data
+ boost::tti::mf_has_static_data
<
- tti::has_static_member_SomeStaticData<_,_>,
+ boost::tti::has_static_member_SomeStaticData<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>
> aVar;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::mf_has_static_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_data
<
- tti::has_static_member_DSMember<_,_>,
+ boost::tti::has_static_member_DSMember<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<short>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_static_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_data
<
- tti::mtfc_has_static_member_DSMember,
+ boost::tti::mtfc_has_static_member_DSMember,
boost::mpl::identity<AType>,
boost::mpl::identity<short>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_data_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_data_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_data_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// SomeStaticData does not exist at all
- BOOST_MPL_ASSERT((tti::mf_has_static_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_data
<
- tti::has_static_member_SomeStaticData<_,_>,
+ boost::tti::has_static_member_SomeStaticData<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<int>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_data_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_data_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_data_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::mf_has_static_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_data
<
- tti::has_static_member_DSMember<_,_>,
+ boost::tti::has_static_member_DSMember<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<short>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_data_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_data_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_data_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Wrong member type
- BOOST_MPL_ASSERT((tti::mf_has_static_data
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_data
<
- tti::has_static_member_DSMember<_,_>,
+ boost::tti::has_static_member_DSMember<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_function.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_function.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_function.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,9 +6,9 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_static_member_function
+ BOOST_TEST((boost::tti::mf_has_static_member_function
<
- tti::HaveTheSIntFunction<_,_,_>,
+ boost::tti::HaveTheSIntFunction<_,_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>,
boost::mpl::vector
@@ -20,9 +20,9 @@
::value
));
- BOOST_TEST((tti::mf_has_static_member_function
+ BOOST_TEST((boost::tti::mf_has_static_member_function
<
- tti::TheTIntFunction<_,_,_>,
+ boost::tti::TheTIntFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector
@@ -34,14 +34,14 @@
::value
));
- BOOST_TEST((tti::mf_has_static_member_function
+ BOOST_TEST((boost::tti::mf_has_static_member_function
<
- tti::has_static_member_function_TSFunction<_,_,_>,
+ boost::tti::has_static_member_function_TSFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>,
+ boost::tti::member_type_AStructType<AType>,
boost::mpl::vector
<
- tti::NameIntType<AType>,
+ boost::tti::NameIntType<AType>,
boost::mpl::identity<double>
>
>
@@ -52,9 +52,9 @@
- BOOST_TEST((tti::mf_has_static_member_function
+ BOOST_TEST((boost::tti::mf_has_static_member_function
<
- tti::MFHaveTheSIntFunction,
+ boost::tti::MFHaveTheSIntFunction,
boost::mpl::identity<AType>,
boost::mpl::identity<int>,
boost::mpl::vector
@@ -66,9 +66,9 @@
::value
));
- BOOST_TEST((tti::mf_has_static_member_function
+ BOOST_TEST((boost::tti::mf_has_static_member_function
<
- tti::MFCTheTIntFunction,
+ boost::tti::MFCTheTIntFunction,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector
@@ -80,14 +80,14 @@
::value
));
- BOOST_TEST((tti::mf_has_static_member_function
+ BOOST_TEST((boost::tti::mf_has_static_member_function
<
- tti::mtfc_has_static_member_function_TSFunction,
+ boost::tti::mtfc_has_static_member_function_TSFunction,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>,
+ boost::tti::member_type_AStructType<AType>,
boost::mpl::vector
<
- tti::NameIntType<AType>,
+ boost::tti::NameIntType<AType>,
boost::mpl::identity<double>
>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_function.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_function.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_function.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,17 +4,17 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(HaveTheSIntFunction,SIntFunction)
-TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(TheTIntFunction,TIntFunction)
-TTI_HAS_STATIC_MEMBER_FUNCTION(TSFunction)
-TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(Pickedname,SomeStaticFunction)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(HaveTheSIntFunction,SIntFunction)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(TheTIntFunction,TIntFunction)
+BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION(TSFunction)
+BOOST_TTI_TRAIT_HAS_STATIC_MEMBER_FUNCTION(Pickedname,SomeStaticFunction)
-TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION(MFHaveTheSIntFunction,SIntFunction)
-TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION(MFCTheTIntFunction,TIntFunction)
-TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION(TSFunction)
-TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION(MTFCPickedname,SomeStaticFunction)
+BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION(MFHaveTheSIntFunction,SIntFunction)
+BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION(MFCTheTIntFunction,TIntFunction)
+BOOST_TTI_MTFC_HAS_STATIC_MEMBER_FUNCTION(TSFunction)
+BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER_FUNCTION(MTFCPickedname,SomeStaticFunction)
-TTI_MEMBER_TYPE(AStructType)
-TTI_TRAIT_MEMBER_TYPE(NameIntType,AnIntType)
+BOOST_TTI_MEMBER_TYPE(AStructType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(NameIntType,AnIntType)
#endif // TEST_MF_HAS_STATIC_FUNCTION_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_function_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_function_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_function_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// You can always instantiate without compiler errors
- tti::mf_has_static_member_function
+ boost::tti::mf_has_static_member_function
<
- tti::HaveTheSIntFunction<_,_,_>,
+ boost::tti::HaveTheSIntFunction<_,_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>,
boost::mpl::vector
@@ -20,9 +20,9 @@
>
> aVar;
- tti::mf_has_static_member_function
+ boost::tti::mf_has_static_member_function
<
- tti::MTFCPickedname,
+ boost::tti::MTFCPickedname,
boost::mpl::identity<AType>,
boost::mpl::identity<double>,
boost::mpl::vector<boost::mpl::identity<float> >
@@ -30,9 +30,9 @@
// Compile time asserts
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::HaveTheSIntFunction<_,_,_>,
+ boost::tti::HaveTheSIntFunction<_,_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>,
boost::mpl::vector
@@ -43,9 +43,9 @@
>
));
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::TheTIntFunction<_,_,_>,
+ boost::tti::TheTIntFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector
@@ -56,22 +56,22 @@
>
));
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::has_static_member_function_TSFunction<_,_,_>,
+ boost::tti::has_static_member_function_TSFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>,
+ boost::tti::member_type_AStructType<AType>,
boost::mpl::vector
<
- tti::NameIntType<AType>,
+ boost::tti::NameIntType<AType>,
boost::mpl::identity<double>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::MFHaveTheSIntFunction,
+ boost::tti::MFHaveTheSIntFunction,
boost::mpl::identity<AType>,
boost::mpl::identity<int>,
boost::mpl::vector
@@ -82,9 +82,9 @@
>
));
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::MFCTheTIntFunction,
+ boost::tti::MFCTheTIntFunction,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector
@@ -95,14 +95,14 @@
>
));
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::mtfc_has_static_member_function_TSFunction,
+ boost::tti::mtfc_has_static_member_function_TSFunction,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>,
+ boost::tti::member_type_AStructType<AType>,
boost::mpl::vector
<
- tti::NameIntType<AType>,
+ boost::tti::NameIntType<AType>,
boost::mpl::identity<double>
>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_function_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_function_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_function_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// SomeStaticFunction does not exist at all
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::Pickedname<_,_,_>,
+ boost::tti::Pickedname<_,_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<short>,
boost::mpl::vector
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_function_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_function_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_function_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::HaveTheSIntFunction<_,_,_>,
+ boost::tti::HaveTheSIntFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<int>,
boost::mpl::vector
Modified: sandbox/tti/libs/tti/test/test_mf_has_static_function_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_static_function_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_static_function_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,14 +8,14 @@
// Wrong function parameter type
- BOOST_MPL_ASSERT((tti::mf_has_static_member_function
+ BOOST_MPL_ASSERT((boost::tti::mf_has_static_member_function
<
- tti::has_static_member_function_TSFunction<_,_,_>,
+ boost::tti::has_static_member_function_TSFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AStructType<AType>,
+ boost::tti::member_type_AStructType<AType>,
boost::mpl::vector
<
- tti::NameIntType<AnotherType>,
+ boost::tti::NameIntType<AnotherType>,
boost::mpl::identity<double>
>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_template.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,81 +6,81 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_template
+ BOOST_TEST((boost::tti::mf_has_template
<
- tti::HaveMStr<_>,
- tti::member_type_AStructType<AType>
+ boost::tti::HaveMStr<_>,
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((!tti::mf_has_template
+ BOOST_TEST((!boost::tti::mf_has_template
<
- tti::has_template_TemplateNotExist<_>,
- tti::MT_BType<AType>
+ boost::tti::has_template_TemplateNotExist<_>,
+ boost::tti::MT_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template
+ BOOST_TEST((boost::tti::mf_has_template
<
- tti::has_template_ATPMemberTemplate<_>,
+ boost::tti::has_template_ATPMemberTemplate<_>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template
+ BOOST_TEST((boost::tti::mf_has_template
<
- tti::HaveCL<_>,
+ boost::tti::HaveCL<_>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template
+ BOOST_TEST((boost::tti::mf_has_template
<
- tti::has_template_SimpleTMP<_>,
+ boost::tti::has_template_SimpleTMP<_>,
boost::mpl::identity<AnotherType>
>
::value
));
- BOOST_TEST((tti::mf_has_template
+ BOOST_TEST((boost::tti::mf_has_template
<
- tti::MetaHaveMStr,
- tti::member_type_AStructType<AType>
+ boost::tti::MetaHaveMStr,
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((!tti::mf_has_template
+ BOOST_TEST((!boost::tti::mf_has_template
<
- tti::mtfc_has_template_TemplateNotExist,
- tti::MT_BType<AType>
+ boost::tti::mtfc_has_template_TemplateNotExist,
+ boost::tti::MT_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template
+ BOOST_TEST((boost::tti::mf_has_template
<
- tti::mtfc_has_template_ATPMemberTemplate,
+ boost::tti::mtfc_has_template_ATPMemberTemplate,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template
+ BOOST_TEST((boost::tti::mf_has_template
<
- tti::MFClassHaveCL,
+ boost::tti::MFClassHaveCL,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template
+ BOOST_TEST((boost::tti::mf_has_template
<
- tti::mtfc_has_template_SimpleTMP,
+ boost::tti::mtfc_has_template_SimpleTMP,
boost::mpl::identity<AnotherType>
>
::value
Modified: sandbox/tti/libs/tti/test/test_mf_has_template.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,23 +4,23 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_TRAIT_HAS_TEMPLATE(HaveMStr,MStrMemberTemplate)
-TTI_HAS_TEMPLATE(TemplateNotExist)
-TTI_HAS_TEMPLATE(ATPMemberTemplate)
-TTI_TRAIT_HAS_TEMPLATE(HaveCL,CLMemberTemplate)
-TTI_HAS_TEMPLATE(SimpleTMP)
-TTI_TRAIT_HAS_TEMPLATE(AMT,AnotherMemberTemplate)
-TTI_HAS_TEMPLATE(SomeMemberTemplate)
+BOOST_TTI_TRAIT_HAS_TEMPLATE(HaveMStr,MStrMemberTemplate)
+BOOST_TTI_HAS_TEMPLATE(TemplateNotExist)
+BOOST_TTI_HAS_TEMPLATE(ATPMemberTemplate)
+BOOST_TTI_TRAIT_HAS_TEMPLATE(HaveCL,CLMemberTemplate)
+BOOST_TTI_HAS_TEMPLATE(SimpleTMP)
+BOOST_TTI_TRAIT_HAS_TEMPLATE(AMT,AnotherMemberTemplate)
+BOOST_TTI_HAS_TEMPLATE(SomeMemberTemplate)
-TTI_MTFC_TRAIT_HAS_TEMPLATE(MetaHaveMStr,MStrMemberTemplate)
-TTI_MTFC_HAS_TEMPLATE(TemplateNotExist)
-TTI_MTFC_HAS_TEMPLATE(ATPMemberTemplate)
-TTI_MTFC_TRAIT_HAS_TEMPLATE(MFClassHaveCL,CLMemberTemplate)
-TTI_MTFC_HAS_TEMPLATE(SimpleTMP)
-TTI_MTFC_TRAIT_HAS_TEMPLATE(MFClassAMT,AnotherMemberTemplate)
-TTI_MTFC_HAS_TEMPLATE(SomeMemberTemplate)
+BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE(MetaHaveMStr,MStrMemberTemplate)
+BOOST_TTI_MTFC_HAS_TEMPLATE(TemplateNotExist)
+BOOST_TTI_MTFC_HAS_TEMPLATE(ATPMemberTemplate)
+BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE(MFClassHaveCL,CLMemberTemplate)
+BOOST_TTI_MTFC_HAS_TEMPLATE(SimpleTMP)
+BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE(MFClassAMT,AnotherMemberTemplate)
+BOOST_TTI_MTFC_HAS_TEMPLATE(SomeMemberTemplate)
-TTI_MEMBER_TYPE(AStructType)
-TTI_TRAIT_MEMBER_TYPE(MT_BType,BType)
+BOOST_TTI_MEMBER_TYPE(AStructType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(MT_BType,BType)
#endif // TEST_MF_HAS_TEMPLATE_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_check_params.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_check_params.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_check_params.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,97 +6,97 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::HT_Str<_>,
- tti::member_type_AStructType<AType>
+ boost::tti::HT_Str<_>,
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_AnotherMemberTemplate<_>,
+ boost::tti::has_template_check_params_AnotherMemberTemplate<_>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((!tti::mf_has_template_check_params
+ BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- tti::WrongParametersForMP<_>,
+ boost::tti::WrongParametersForMP<_>,
boost::mpl::identity<AnotherType>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_CTManyParameters<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_CTManyParameters<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
::value
));
- BOOST_TEST((!tti::mf_has_template_check_params
+ BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_TemplateNotExist<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_TemplateNotExist<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::MF_HT_Str,
- tti::member_type_AStructType<AType>
+ boost::tti::MF_HT_Str,
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_AnotherMemberTemplate,
+ boost::tti::mtfc_has_template_check_params_AnotherMemberTemplate,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((!tti::mf_has_template_check_params
+ BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- tti::MetaCWrongParametersForMP,
+ boost::tti::MetaCWrongParametersForMP,
boost::mpl::identity<AnotherType>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_CTManyParameters,
- tti::mf_member_type
+ boost::tti::mtfc_has_template_check_params_CTManyParameters,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
::value
));
- BOOST_TEST((!tti::mf_has_template_check_params
+ BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_TemplateNotExist,
- tti::mf_member_type
+ boost::tti::mtfc_has_template_check_params_TemplateNotExist,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
::value
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_check_params.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_check_params.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_check_params.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,22 +4,22 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HT_Str,MStrMemberTemplate,(class))
-TTI_HAS_TEMPLATE_CHECK_PARAMS(AnotherMemberTemplate,(int)(int))
-TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParametersForMP,ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(short))
-TTI_HAS_TEMPLATE_CHECK_PARAMS(CTManyParameters,(class)(class)(int)(short)(class)(template <class)(int> class InnerTemplate)(class))
-TTI_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,(int)(class))
+BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HT_Str,MStrMemberTemplate,(class))
+BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(AnotherMemberTemplate,(int)(int))
+BOOST_TTI_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParametersForMP,ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(short))
+BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(CTManyParameters,(class)(class)(int)(short)(class)(template <class)(int> class InnerTemplate)(class))
+BOOST_TTI_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,(int)(class))
-TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(MF_HT_Str,MStrMemberTemplate,(class))
-TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS(AnotherMemberTemplate,(int)(int))
-TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(MetaCWrongParametersForMP,ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(short))
-TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS(CTManyParameters,(class)(class)(int)(short)(class)(template <class)(int> class InnerTemplate)(class))
-TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,(int)(class))
+BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(MF_HT_Str,MStrMemberTemplate,(class))
+BOOST_TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS(AnotherMemberTemplate,(int)(int))
+BOOST_TTI_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(MetaCWrongParametersForMP,ManyParameters,(class)(class)(int)(class)(template <class> class InnerTemplate)(class)(short))
+BOOST_TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS(CTManyParameters,(class)(class)(int)(short)(class)(template <class)(int> class InnerTemplate)(class))
+BOOST_TTI_MTFC_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,(int)(class))
-TTI_MEMBER_TYPE(AStructType)
-TTI_TRAIT_MEMBER_TYPE(MT_BType,BType)
-TTI_MEMBER_TYPE(CType)
+BOOST_TTI_MEMBER_TYPE(AStructType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(MT_BType,BType)
+BOOST_TTI_MEMBER_TYPE(CType)
-TTI_MTFC_MEMBER_TYPE(CType)
+BOOST_TTI_MTFC_MEMBER_TYPE(CType)
#endif // TEST_MF_HAS_TEMPLATE_CHECK_PARAMS_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_check_params_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_check_params_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_check_params_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,64 +8,64 @@
// You can always instantiate without compiler errors
- tti::mf_has_template_check_params
+ boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_TemplateNotExist<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_TemplateNotExist<_>,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::MT_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::MT_BType<AType>
>
> aVar;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::HT_Str<_>,
- tti::member_type_AStructType<AType>
+ boost::tti::HT_Str<_>,
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_AnotherMemberTemplate<_>,
+ boost::tti::has_template_check_params_AnotherMemberTemplate<_>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_CTManyParameters<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_CTManyParameters<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::MF_HT_Str,
- tti::member_type_AStructType<AType>
+ boost::tti::MF_HT_Str,
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_AnotherMemberTemplate,
+ boost::tti::mtfc_has_template_check_params_AnotherMemberTemplate,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_CTManyParameters,
- tti::mf_member_type
+ boost::tti::mtfc_has_template_check_params_CTManyParameters,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::MT_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::MT_BType<AType>
>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,13 +8,13 @@
// Template does not exist
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_TemplateNotExist<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_TemplateNotExist<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,12 +8,12 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_CTManyParameters<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_CTManyParameters<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
+ boost::tti::member_type_CType<_>,
boost::mpl::identity<AType>
>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_check_params_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Wrong template types
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::WrongParametersForMP<_>,
+ boost::tti::WrongParametersForMP<_>,
boost::mpl::identity<AnotherType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,72 +8,72 @@
// You can always instantiate without compiler errors
- tti::mf_has_template
+ boost::tti::mf_has_template
<
- tti::has_template_TemplateNotExist<_>,
- tti::MT_BType<AType>
+ boost::tti::has_template_TemplateNotExist<_>,
+ boost::tti::MT_BType<AType>
> aVar;
- tti::mf_has_template
+ boost::tti::mf_has_template
<
- tti::mtfc_has_template_ATPMemberTemplate,
+ boost::tti::mtfc_has_template_ATPMemberTemplate,
boost::mpl::identity<AnotherType>
> aVar2;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::HaveMStr<_>,
- tti::member_type_AStructType<AType>
+ boost::tti::HaveMStr<_>,
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::has_template_ATPMemberTemplate<_>,
+ boost::tti::has_template_ATPMemberTemplate<_>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::HaveCL<_>,
+ boost::tti::HaveCL<_>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::has_template_SimpleTMP<_>,
+ boost::tti::has_template_SimpleTMP<_>,
boost::mpl::identity<AnotherType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::MetaHaveMStr,
- tti::member_type_AStructType<AType>
+ boost::tti::MetaHaveMStr,
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::mtfc_has_template_ATPMemberTemplate,
+ boost::tti::mtfc_has_template_ATPMemberTemplate,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::MFClassHaveCL,
+ boost::tti::MFClassHaveCL,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::mtfc_has_template_SimpleTMP,
+ boost::tti::mtfc_has_template_SimpleTMP,
boost::mpl::identity<AnotherType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,10 +8,10 @@
// TemplateNotExist does not exist at all
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::has_template_TemplateNotExist<_>,
- tti::MT_BType<AType>
+ boost::tti::has_template_TemplateNotExist<_>,
+ boost::tti::MT_BType<AType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,10 +8,10 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::HaveMStr<_>,
- tti::member_type_AStructType<AnotherType>
+ boost::tti::HaveMStr<_>,
+ boost::tti::member_type_AStructType<AnotherType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Too many 'typename' parameters
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::has_template_SomeMemberTemplate<_>,
+ boost::tti::has_template_SomeMemberTemplate<_>,
boost::mpl::identity<AnotherType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_template_fail4.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_template_fail4.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_template_fail4.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Not all 'typename' parameters
- BOOST_MPL_ASSERT((tti::mf_has_template
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template
<
- tti::AMT<_>,
+ boost::tti::AMT<_>,
boost::mpl::identity<AType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_type.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,137 +6,137 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_AnIntType<_>,
+ boost::tti::has_type_AnIntType<_>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::NameStruct<_>,
+ boost::tti::NameStruct<_>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_AnIntTypeReference<_>,
+ boost::tti::has_type_AnIntTypeReference<_>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_BType<_>,
+ boost::tti::has_type_BType<_>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::TheInteger<_>,
- tti::member_type_BType<AType>
+ boost::tti::TheInteger<_>,
+ boost::tti::member_type_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::has_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_AnotherIntegerType<_>,
- tti::mf_member_type
+ boost::tti::has_type_AnotherIntegerType<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::SomethingElse<_>,
+ boost::tti::SomethingElse<_>,
boost::mpl::identity<AnotherType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntType,
+ boost::tti::mtfc_has_type_AnIntType,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::MetaFNameStruct,
+ boost::tti::MetaFNameStruct,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntTypeReference,
+ boost::tti::mtfc_has_type_AnIntTypeReference,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_BType,
+ boost::tti::mtfc_has_type_BType,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::MClassTheInteger,
- tti::member_type_BType<AType>
+ boost::tti::MClassTheInteger,
+ boost::tti::member_type_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_has_type_CType,
+ boost::tti::member_type_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnotherIntegerType,
- tti::mf_member_type
+ boost::tti::mtfc_has_type_AnotherIntegerType,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::MTFCSomethingElse,
+ boost::tti::MTFCSomethingElse,
boost::mpl::identity<AnotherType>
>
::value
Modified: sandbox/tti/libs/tti/test/test_mf_has_type.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,31 +4,31 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_TYPE(AnIntType)
-TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
-TTI_HAS_TYPE(AnIntTypeReference)
-TTI_HAS_TYPE(BType)
-TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
-TTI_HAS_TYPE(CType)
-TTI_HAS_TYPE(AnotherIntegerType)
-
-TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
-TTI_HAS_TYPE(NoOtherType)
-
-TTI_MTFC_HAS_TYPE(AnIntType)
-TTI_MTFC_TRAIT_HAS_TYPE(MetaFNameStruct,AStructType)
-TTI_MTFC_HAS_TYPE(AnIntTypeReference)
-TTI_MTFC_HAS_TYPE(BType)
-TTI_MTFC_TRAIT_HAS_TYPE(MClassTheInteger,AnIntegerType)
-TTI_MTFC_HAS_TYPE(CType)
-TTI_MTFC_HAS_TYPE(AnotherIntegerType)
+BOOST_TTI_HAS_TYPE(AnIntType)
+BOOST_TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
+BOOST_TTI_HAS_TYPE(AnIntTypeReference)
+BOOST_TTI_HAS_TYPE(BType)
+BOOST_TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
+BOOST_TTI_HAS_TYPE(CType)
+BOOST_TTI_HAS_TYPE(AnotherIntegerType)
+
+BOOST_TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
+BOOST_TTI_HAS_TYPE(NoOtherType)
+
+BOOST_TTI_MTFC_HAS_TYPE(AnIntType)
+BOOST_TTI_MTFC_TRAIT_HAS_TYPE(MetaFNameStruct,AStructType)
+BOOST_TTI_MTFC_HAS_TYPE(AnIntTypeReference)
+BOOST_TTI_MTFC_HAS_TYPE(BType)
+BOOST_TTI_MTFC_TRAIT_HAS_TYPE(MClassTheInteger,AnIntegerType)
+BOOST_TTI_MTFC_HAS_TYPE(CType)
+BOOST_TTI_MTFC_HAS_TYPE(AnotherIntegerType)
-TTI_MTFC_TRAIT_HAS_TYPE(MTFCSomethingElse,someOtherType)
-TTI_MTFC_HAS_TYPE(NoOtherType)
+BOOST_TTI_MTFC_TRAIT_HAS_TYPE(MTFCSomethingElse,someOtherType)
+BOOST_TTI_MTFC_HAS_TYPE(NoOtherType)
-TTI_MEMBER_TYPE(BType)
-TTI_MEMBER_TYPE(CType)
+BOOST_TTI_MEMBER_TYPE(BType)
+BOOST_TTI_MEMBER_TYPE(CType)
-TTI_MTFC_MEMBER_TYPE(CType)
+BOOST_TTI_MTFC_MEMBER_TYPE(CType)
#endif // TEST_MF_HAS_TYPE_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,178 +6,178 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_AnIntType<_,_>,
+ boost::tti::has_type_AnIntType<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::NameStruct<_,_>,
+ boost::tti::NameStruct<_,_>,
boost::mpl::identity<AType>,
- tti::member_type_AStructType<AType>
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_AnIntTypeReference<_,_>,
+ boost::tti::has_type_AnIntTypeReference<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int &>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_BType<_,_>,
+ boost::tti::has_type_BType<_,_>,
boost::mpl::identity<AType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::TheInteger<_,_>,
- tti::member_type_BType<AType>,
+ boost::tti::TheInteger<_,_>,
+ boost::tti::member_type_BType<AType>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_CType<_,_>,
- tti::member_type_BType<AType>,
- tti::mf_member_type
+ boost::tti::has_type_CType<_,_>,
+ boost::tti::member_type_BType<AType>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::has_type_AnotherIntegerType<_,_>,
- tti::mf_member_type
+ boost::tti::has_type_AnotherIntegerType<_,_>,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::SomethingElse<_,_>,
+ boost::tti::SomethingElse<_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AType>
+ boost::tti::member_type_AnIntType<AType>
>
::value
));
- BOOST_TEST((!tti::mf_has_type
+ BOOST_TEST((!boost::tti::mf_has_type
<
- tti::has_type_NoOtherType<_,_>,
+ boost::tti::has_type_NoOtherType<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntType,
+ boost::tti::mtfc_has_type_AnIntType,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::MFunctionNameStruct,
+ boost::tti::MFunctionNameStruct,
boost::mpl::identity<AType>,
- tti::member_type_AStructType<AType>
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntTypeReference,
+ boost::tti::mtfc_has_type_AnIntTypeReference,
boost::mpl::identity<AType>,
boost::mpl::identity<int &>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_BType,
+ boost::tti::mtfc_has_type_BType,
boost::mpl::identity<AType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::MFCTheInteger,
- tti::member_type_BType<AType>,
+ boost::tti::MFCTheInteger,
+ boost::tti::member_type_BType<AType>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_CType,
- tti::member_type_BType<AType>,
- tti::mf_member_type
+ boost::tti::mtfc_has_type_CType,
+ boost::tti::member_type_BType<AType>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnotherIntegerType,
- tti::mf_member_type
+ boost::tti::mtfc_has_type_AnotherIntegerType,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>,
boost::mpl::identity<int>
>
::value
));
- BOOST_TEST((tti::mf_has_type
+ BOOST_TEST((boost::tti::mf_has_type
<
- tti::FClassSomethingElse,
+ boost::tti::FClassSomethingElse,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AType>
+ boost::tti::member_type_AnIntType<AType>
>
::value
));
- BOOST_TEST((!tti::mf_has_type
+ BOOST_TEST((!boost::tti::mf_has_type
<
- tti::mtfc_has_type_NoOtherType,
+ boost::tti::mtfc_has_type_NoOtherType,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,31 +4,31 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_HAS_TYPE(AnIntType)
-TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
-TTI_HAS_TYPE(AnIntTypeReference)
-TTI_HAS_TYPE(BType)
-TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
-TTI_HAS_TYPE(CType)
-TTI_HAS_TYPE(AnotherIntegerType)
-TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
-TTI_HAS_TYPE(NoOtherType)
+BOOST_TTI_HAS_TYPE(AnIntType)
+BOOST_TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
+BOOST_TTI_HAS_TYPE(AnIntTypeReference)
+BOOST_TTI_HAS_TYPE(BType)
+BOOST_TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
+BOOST_TTI_HAS_TYPE(CType)
+BOOST_TTI_HAS_TYPE(AnotherIntegerType)
+BOOST_TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
+BOOST_TTI_HAS_TYPE(NoOtherType)
-TTI_MTFC_HAS_TYPE(AnIntType)
-TTI_MTFC_TRAIT_HAS_TYPE(MFunctionNameStruct,AStructType)
-TTI_MTFC_HAS_TYPE(AnIntTypeReference)
-TTI_MTFC_HAS_TYPE(BType)
-TTI_MTFC_TRAIT_HAS_TYPE(MFCTheInteger,AnIntegerType)
-TTI_MTFC_HAS_TYPE(CType)
-TTI_MTFC_HAS_TYPE(AnotherIntegerType)
-TTI_MTFC_TRAIT_HAS_TYPE(FClassSomethingElse,someOtherType)
-TTI_MTFC_HAS_TYPE(NoOtherType)
+BOOST_TTI_MTFC_HAS_TYPE(AnIntType)
+BOOST_TTI_MTFC_TRAIT_HAS_TYPE(MFunctionNameStruct,AStructType)
+BOOST_TTI_MTFC_HAS_TYPE(AnIntTypeReference)
+BOOST_TTI_MTFC_HAS_TYPE(BType)
+BOOST_TTI_MTFC_TRAIT_HAS_TYPE(MFCTheInteger,AnIntegerType)
+BOOST_TTI_MTFC_HAS_TYPE(CType)
+BOOST_TTI_MTFC_HAS_TYPE(AnotherIntegerType)
+BOOST_TTI_MTFC_TRAIT_HAS_TYPE(FClassSomethingElse,someOtherType)
+BOOST_TTI_MTFC_HAS_TYPE(NoOtherType)
-TTI_MEMBER_TYPE(AStructType)
-TTI_MEMBER_TYPE(BType)
-TTI_MEMBER_TYPE(CType)
-TTI_MEMBER_TYPE(AnIntType)
+BOOST_TTI_MEMBER_TYPE(AStructType)
+BOOST_TTI_MEMBER_TYPE(BType)
+BOOST_TTI_MEMBER_TYPE(CType)
+BOOST_TTI_MEMBER_TYPE(AnIntType)
-TTI_MTFC_MEMBER_TYPE(CType)
+BOOST_TTI_MTFC_MEMBER_TYPE(CType)
#endif // TEST_MF_HAS_TYPE_CHECK_TYPEDEF_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,163 +8,163 @@
// You can always instantiate without compiler errors
- tti::mf_has_type
+ boost::tti::mf_has_type
<
- tti::TheInteger<_,_>,
- tti::member_type_BType<AnotherType>,
+ boost::tti::TheInteger<_,_>,
+ boost::tti::member_type_BType<AnotherType>,
boost::mpl::identity<long>
> aVar;
- tti::mf_has_type
+ boost::tti::mf_has_type
<
- tti::mtfc_has_type_NoOtherType,
+ boost::tti::mtfc_has_type_NoOtherType,
boost::mpl::identity<AType>,
boost::mpl::identity<float>
> aVar2;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_AnIntType<_,_>,
+ boost::tti::has_type_AnIntType<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::NameStruct<_,_>,
+ boost::tti::NameStruct<_,_>,
boost::mpl::identity<AType>,
- tti::member_type_AStructType<AType>
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_AnIntTypeReference<_,_>,
+ boost::tti::has_type_AnIntTypeReference<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<int &>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_BType<_,_>,
+ boost::tti::has_type_BType<_,_>,
boost::mpl::identity<AType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::TheInteger<_,_>,
- tti::member_type_BType<AType>,
+ boost::tti::TheInteger<_,_>,
+ boost::tti::member_type_BType<AType>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_CType<_,_>,
- tti::member_type_BType<AType>,
- tti::mf_member_type
+ boost::tti::has_type_CType<_,_>,
+ boost::tti::member_type_BType<AType>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_AnotherIntegerType<_,_>,
- tti::mf_member_type
+ boost::tti::has_type_AnotherIntegerType<_,_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::SomethingElse<_,_>,
+ boost::tti::SomethingElse<_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AType>
+ boost::tti::member_type_AnIntType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntType,
+ boost::tti::mtfc_has_type_AnIntType,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::MFunctionNameStruct,
+ boost::tti::MFunctionNameStruct,
boost::mpl::identity<AType>,
- tti::member_type_AStructType<AType>
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntTypeReference,
+ boost::tti::mtfc_has_type_AnIntTypeReference,
boost::mpl::identity<AType>,
boost::mpl::identity<int &>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_BType,
+ boost::tti::mtfc_has_type_BType,
boost::mpl::identity<AType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::MFCTheInteger,
- tti::member_type_BType<AType>,
+ boost::tti::MFCTheInteger,
+ boost::tti::member_type_BType<AType>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_CType,
- tti::member_type_BType<AType>,
- tti::mf_member_type
+ boost::tti::mtfc_has_type_CType,
+ boost::tti::member_type_BType<AType>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnotherIntegerType,
- tti::mf_member_type
+ boost::tti::mtfc_has_type_AnotherIntegerType,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>,
boost::mpl::identity<int>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::FClassSomethingElse,
+ boost::tti::FClassSomethingElse,
boost::mpl::identity<AnotherType>,
- tti::member_type_AnIntType<AType>
+ boost::tti::member_type_AnIntType<AType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// NoOtherType does not exist at all
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_NoOtherType<_,_>,
+ boost::tti::has_type_NoOtherType<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<float>
>
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,11 +8,11 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_BType<_,_>,
+ boost::tti::has_type_BType<_,_>,
boost::mpl::identity<AnotherType>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_BType<AType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_check_typedef_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,10 +8,10 @@
// Wrong typedef type
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::TheInteger<_,_>,
- tti::member_type_BType<AType>,
+ boost::tti::TheInteger<_,_>,
+ boost::tti::member_type_BType<AType>,
boost::mpl::identity<long>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,136 +8,136 @@
// You can always instantiate without compiler errors
- tti::mf_has_type
+ boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntType,
+ boost::tti::mtfc_has_type_AnIntType,
boost::mpl::identity<AnotherType>
> aVar;
- tti::mf_has_type
+ boost::tti::mf_has_type
<
- tti::has_type_NoOtherType<_>,
+ boost::tti::has_type_NoOtherType<_>,
boost::mpl::identity<AnotherType>
> aVar2;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_AnIntType<_>,
+ boost::tti::has_type_AnIntType<_>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::NameStruct<_>,
+ boost::tti::NameStruct<_>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_AnIntTypeReference<_>,
+ boost::tti::has_type_AnIntTypeReference<_>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_BType<_>,
+ boost::tti::has_type_BType<_>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::TheInteger<_>,
- tti::member_type_BType<AType>
+ boost::tti::TheInteger<_>,
+ boost::tti::member_type_BType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::has_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_AnotherIntegerType<_>,
- tti::mf_member_type
+ boost::tti::has_type_AnotherIntegerType<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::SomethingElse<_>,
+ boost::tti::SomethingElse<_>,
boost::mpl::identity<AnotherType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntType,
+ boost::tti::mtfc_has_type_AnIntType,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::MetaFNameStruct,
+ boost::tti::MetaFNameStruct,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnIntTypeReference,
+ boost::tti::mtfc_has_type_AnIntTypeReference,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_BType,
+ boost::tti::mtfc_has_type_BType,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::MClassTheInteger,
- tti::member_type_BType<AType>
+ boost::tti::MClassTheInteger,
+ boost::tti::member_type_BType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_has_type_CType,
+ boost::tti::member_type_BType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::mtfc_has_type_AnotherIntegerType,
- tti::mf_member_type
+ boost::tti::mtfc_has_type_AnotherIntegerType,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::MTFCSomethingElse,
+ boost::tti::MTFCSomethingElse,
boost::mpl::identity<AnotherType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// NoOtherType does not exist at all
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_NoOtherType<_>,
+ boost::tti::has_type_NoOtherType<_>,
boost::mpl::identity<AType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_has_type_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_has_type_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_has_type_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,9 +8,9 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::mf_has_type
+ BOOST_MPL_ASSERT((boost::tti::mf_has_type
<
- tti::has_type_AnIntType<_>,
+ boost::tti::has_type_AnIntType<_>,
boost::mpl::identity<AnotherType>
>
));
Modified: sandbox/tti/libs/tti/test/test_mf_member_type.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_member_type.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_member_type.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,184 +6,184 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_AnIntType<_>,
+ boost::tti::member_type_AnIntType<_>,
boost::mpl::identity<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::NameStruct<_>,
+ boost::tti::NameStruct<_>,
boost::mpl::identity<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_AnIntTypeReference<_>,
+ boost::tti::member_type_AnIntTypeReference<_>,
boost::mpl::identity<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_BType<_>,
+ boost::tti::member_type_BType<_>,
boost::mpl::identity<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::TheInteger<_>,
- tti::member_type_BType<AType>
+ boost::tti::TheInteger<_>,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_AnotherIntegerType<_>,
- tti::mf_member_type
+ boost::tti::member_type_AnotherIntegerType<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::SomethingElse<_>,
+ boost::tti::SomethingElse<_>,
boost::mpl::identity<AnotherType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_AnIntType,
+ boost::tti::mtfc_member_type_AnIntType,
boost::mpl::identity<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::MFNameStruct,
+ boost::tti::MFNameStruct,
boost::mpl::identity<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_AnIntTypeReference,
+ boost::tti::mtfc_member_type_AnIntTypeReference,
boost::mpl::identity<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_BType,
+ boost::tti::mtfc_member_type_BType,
boost::mpl::identity<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::MFTheInteger,
- tti::member_type_BType<AType>
+ boost::tti::MFTheInteger,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_AnotherIntegerType,
- tti::mf_member_type
+ boost::tti::mtfc_member_type_AnotherIntegerType,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
>
::value
));
- BOOST_TEST((tti::mf_valid_member_type
+ BOOST_TEST((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::MetaClSomethingElse,
+ boost::tti::MetaClSomethingElse,
boost::mpl::identity<AnotherType>
>
>
Modified: sandbox/tti/libs/tti/test/test_mf_member_type.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_member_type.hpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_member_type.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -4,22 +4,22 @@
#include "test_structs.hpp"
#include <boost/tti/tti.hpp>
-TTI_MEMBER_TYPE(AnIntType)
-TTI_TRAIT_MEMBER_TYPE(NameStruct,AStructType)
-TTI_MEMBER_TYPE(AnIntTypeReference)
-TTI_MEMBER_TYPE(BType)
-TTI_TRAIT_MEMBER_TYPE(TheInteger,AnIntegerType)
-TTI_MEMBER_TYPE(CType)
-TTI_MEMBER_TYPE(AnotherIntegerType)
-TTI_TRAIT_MEMBER_TYPE(SomethingElse,someOtherType)
+BOOST_TTI_MEMBER_TYPE(AnIntType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(NameStruct,AStructType)
+BOOST_TTI_MEMBER_TYPE(AnIntTypeReference)
+BOOST_TTI_MEMBER_TYPE(BType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(TheInteger,AnIntegerType)
+BOOST_TTI_MEMBER_TYPE(CType)
+BOOST_TTI_MEMBER_TYPE(AnotherIntegerType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(SomethingElse,someOtherType)
-TTI_MTFC_MEMBER_TYPE(AnIntType)
-TTI_MTFC_TRAIT_MEMBER_TYPE(MFNameStruct,AStructType)
-TTI_MTFC_MEMBER_TYPE(AnIntTypeReference)
-TTI_MTFC_MEMBER_TYPE(BType)
-TTI_MTFC_TRAIT_MEMBER_TYPE(MFTheInteger,AnIntegerType)
-TTI_MTFC_MEMBER_TYPE(CType)
-TTI_MTFC_MEMBER_TYPE(AnotherIntegerType)
-TTI_MTFC_TRAIT_MEMBER_TYPE(MetaClSomethingElse,someOtherType)
+BOOST_TTI_MTFC_MEMBER_TYPE(AnIntType)
+BOOST_TTI_MTFC_TRAIT_MEMBER_TYPE(MFNameStruct,AStructType)
+BOOST_TTI_MTFC_MEMBER_TYPE(AnIntTypeReference)
+BOOST_TTI_MTFC_MEMBER_TYPE(BType)
+BOOST_TTI_MTFC_TRAIT_MEMBER_TYPE(MFTheInteger,AnIntegerType)
+BOOST_TTI_MTFC_MEMBER_TYPE(CType)
+BOOST_TTI_MTFC_MEMBER_TYPE(AnotherIntegerType)
+BOOST_TTI_MTFC_TRAIT_MEMBER_TYPE(MetaClSomethingElse,someOtherType)
#endif // TEST_MF_MEMBER_TYPE_HPP
Modified: sandbox/tti/libs/tti/test/test_mf_member_type_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_mf_member_type_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_mf_member_type_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,169 +6,169 @@
using namespace boost::mpl::placeholders;
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_AnIntType<_>,
+ boost::tti::member_type_AnIntType<_>,
boost::mpl::identity<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::NameStruct<_>,
+ boost::tti::NameStruct<_>,
boost::mpl::identity<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_AnIntTypeReference<_>,
+ boost::tti::member_type_AnIntTypeReference<_>,
boost::mpl::identity<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_BType<_>,
+ boost::tti::member_type_BType<_>,
boost::mpl::identity<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::TheInteger<_>,
- tti::member_type_BType<AType>
+ boost::tti::TheInteger<_>,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::member_type_AnotherIntegerType<_>,
- tti::mf_member_type
+ boost::tti::member_type_AnotherIntegerType<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::member_type_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::member_type_BType<AType>
>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::SomethingElse<_>,
+ boost::tti::SomethingElse<_>,
boost::mpl::identity<AnotherType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_AnIntType,
+ boost::tti::mtfc_member_type_AnIntType,
boost::mpl::identity<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::MFNameStruct,
+ boost::tti::MFNameStruct,
boost::mpl::identity<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_AnIntTypeReference,
+ boost::tti::mtfc_member_type_AnIntTypeReference,
boost::mpl::identity<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_BType,
+ boost::tti::mtfc_member_type_BType,
boost::mpl::identity<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::MFTheInteger,
- tti::member_type_BType<AType>
+ boost::tti::MFTheInteger,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_AnotherIntegerType,
- tti::mf_member_type
+ boost::tti::mtfc_member_type_AnotherIntegerType,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::member_type_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::member_type_BType<AType>
>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_valid_member_type
+ BOOST_MPL_ASSERT((boost::tti::mf_valid_member_type
<
- tti::mf_member_type
+ boost::tti::mf_member_type
<
- tti::MetaClSomethingElse,
+ boost::tti::MetaClSomethingElse,
boost::mpl::identity<AnotherType>
>
>
Modified: sandbox/tti/libs/tti/test/test_vm_has_template_check_params.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_has_template_check_params.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_has_template_check_params.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,14 +6,14 @@
#if !defined(BOOST_NO_VARIADIC_MACROS)
- BOOST_TEST(tti::has_template_check_params_ATPMemberTemplate<AType>::value);
- BOOST_TEST(tti::HaveCL<AType>::value);
- BOOST_TEST(tti::has_template_check_params_AMemberTemplate<AType>::value);
- BOOST_TEST(tti::HaveAnotherMT<AType>::value);
- BOOST_TEST(tti::has_template_check_params_SomeMemberTemplate<AnotherType>::value);
- BOOST_TEST(tti::ATemplateWithParms<AnotherType>::value);
- BOOST_TEST(tti::has_template_check_params_SimpleTMP<AnotherType>::value);
- BOOST_TEST(!tti::has_template_check_params_TemplateNotExist<AnotherType>::value);
+ BOOST_TEST(boost::tti::has_template_check_params_ATPMemberTemplate<AType>::value);
+ BOOST_TEST(boost::tti::HaveCL<AType>::value);
+ BOOST_TEST(boost::tti::has_template_check_params_AMemberTemplate<AType>::value);
+ BOOST_TEST(boost::tti::HaveAnotherMT<AType>::value);
+ BOOST_TEST(boost::tti::has_template_check_params_SomeMemberTemplate<AnotherType>::value);
+ BOOST_TEST(boost::tti::ATemplateWithParms<AnotherType>::value);
+ BOOST_TEST(boost::tti::has_template_check_params_SimpleTMP<AnotherType>::value);
+ BOOST_TEST(!boost::tti::has_template_check_params_TemplateNotExist<AnotherType>::value);
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
Modified: sandbox/tti/libs/tti/test/test_vm_has_template_check_params.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_has_template_check_params.hpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_has_template_check_params.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -6,16 +6,16 @@
#include "test_structs.hpp"
#include <boost/tti/tti_vm.hpp>
-TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(ATPMemberTemplate,class)
-TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HaveCL,CLMemberTemplate,class,class)
-TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(AMemberTemplate,int)
-TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HaveAnotherMT,AnotherMemberTemplate,int,int)
-TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(SomeMemberTemplate,class,class,class,class,class,class)
-TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(ATemplateWithParms,ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,long)
-TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(SimpleTMP,class,class,class,class)
-TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,int,class,template <class> class ATemplate)
-TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParametersForMP,ManyParameters,class,class,int,class,template <class,class> class InnerTemplate,class,long)
-TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParameters2ForMP,ManyParameters,class,long,int,class,template <class> class InnerTemplate,class,long)
+BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(ATPMemberTemplate,class)
+BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HaveCL,CLMemberTemplate,class,class)
+BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(AMemberTemplate,int)
+BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HaveAnotherMT,AnotherMemberTemplate,int,int)
+BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(SomeMemberTemplate,class,class,class,class,class,class)
+BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(ATemplateWithParms,ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,long)
+BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(SimpleTMP,class,class,class,class)
+BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,int,class,template <class> class ATemplate)
+BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParametersForMP,ManyParameters,class,class,int,class,template <class,class> class InnerTemplate,class,long)
+BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParameters2ForMP,ManyParameters,class,long,int,class,template <class> class InnerTemplate,class,long)
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
Modified: sandbox/tti/libs/tti/test/test_vm_has_template_check_params_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_has_template_check_params_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_has_template_check_params_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,17 +8,17 @@
// You can always instantiate without compiler errors
- tti::has_template_check_params_TemplateNotExist<AnotherType> aVar1;
+ boost::tti::has_template_check_params_TemplateNotExist<AnotherType> aVar1;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::has_template_check_params_ATPMemberTemplate<AType>));
- BOOST_MPL_ASSERT((tti::HaveCL<AType>));
- BOOST_MPL_ASSERT((tti::has_template_check_params_AMemberTemplate<AType>));
- BOOST_MPL_ASSERT((tti::HaveAnotherMT<AType>));
- BOOST_MPL_ASSERT((tti::has_template_check_params_SomeMemberTemplate<AnotherType>));
- BOOST_MPL_ASSERT((tti::ATemplateWithParms<AnotherType>));
- BOOST_MPL_ASSERT((tti::has_template_check_params_SimpleTMP<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_ATPMemberTemplate<AType>));
+ BOOST_MPL_ASSERT((boost::tti::HaveCL<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_AMemberTemplate<AType>));
+ BOOST_MPL_ASSERT((boost::tti::HaveAnotherMT<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_SomeMemberTemplate<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::ATemplateWithParms<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_SimpleTMP<AnotherType>));
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
Modified: sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,7 +8,7 @@
// TemplateNotExist does not exist at all
- BOOST_MPL_ASSERT((tti::has_template_check_params_TemplateNotExist<AType>));
+ BOOST_MPL_ASSERT((boost::tti::has_template_check_params_TemplateNotExist<AType>));
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
Modified: sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,7 +8,7 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::HaveCL<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::HaveCL<AnotherType>));
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
Modified: sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,7 +8,7 @@
// Wrong template parameters
- BOOST_MPL_ASSERT((tti::WrongParametersForMP<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::WrongParametersForMP<AnotherType>));
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
Modified: sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail4.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail4.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_has_template_check_params_fail4.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,7 +8,7 @@
// Wrong template parameters
- BOOST_MPL_ASSERT((tti::WrongParameters2ForMP<AnotherType>));
+ BOOST_MPL_ASSERT((boost::tti::WrongParameters2ForMP<AnotherType>));
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -8,97 +8,97 @@
using namespace boost::mpl::placeholders;
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::HT_Str<_>,
- tti::member_type_AStructType<AType>
+ boost::tti::HT_Str<_>,
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_AnotherMemberTemplate<_>,
+ boost::tti::has_template_check_params_AnotherMemberTemplate<_>,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((!tti::mf_has_template_check_params
+ BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- tti::WrongParametersForMP<_>,
+ boost::tti::WrongParametersForMP<_>,
boost::mpl::identity<AnotherType>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_CTManyParameters<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_CTManyParameters<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
::value
));
- BOOST_TEST((!tti::mf_has_template_check_params
+ BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_TemplateNotExist<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_TemplateNotExist<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::MF_HT_Str,
- tti::member_type_AStructType<AType>
+ boost::tti::MF_HT_Str,
+ boost::tti::member_type_AStructType<AType>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_AnotherMemberTemplate,
+ boost::tti::mtfc_has_template_check_params_AnotherMemberTemplate,
boost::mpl::identity<AType>
>
::value
));
- BOOST_TEST((!tti::mf_has_template_check_params
+ BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- tti::AllWrongParametersForMP,
+ boost::tti::AllWrongParametersForMP,
boost::mpl::identity<AnotherType>
>
::value
));
- BOOST_TEST((tti::mf_has_template_check_params
+ BOOST_TEST((boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_CTManyParameters,
- tti::mf_member_type
+ boost::tti::mtfc_has_template_check_params_CTManyParameters,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
::value
));
- BOOST_TEST((!tti::mf_has_template_check_params
+ BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_TemplateNotExist,
- tti::mf_member_type
+ boost::tti::mtfc_has_template_check_params_TemplateNotExist,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::MT_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::MT_BType<AType>
>
>
::value
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params.hpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params.hpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -7,23 +7,23 @@
#include <boost/tti/tti_vm.hpp>
#include <boost/tti/tti.hpp>
-TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HT_Str,MStrMemberTemplate,class)
-TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(AnotherMemberTemplate,int,int)
-TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParametersForMP,ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,short)
-TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(CTManyParameters,class,class,int,short,class,template <class,int> class InnerTemplate,class)
-TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,int,class)
-
-TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(MF_HT_Str,MStrMemberTemplate,class)
-TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(AnotherMemberTemplate,int,int)
-TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(AllWrongParametersForMP,ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,short)
-TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(CTManyParameters,class,class,int,short,class,template <class,int> class InnerTemplate,class)
-TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,int,class)
-
-TTI_MEMBER_TYPE(AStructType)
-TTI_TRAIT_MEMBER_TYPE(MT_BType,BType)
-TTI_MEMBER_TYPE(CType)
+BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(HT_Str,MStrMemberTemplate,class)
+BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(AnotherMemberTemplate,int,int)
+BOOST_TTI_VM_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(WrongParametersForMP,ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,short)
+BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(CTManyParameters,class,class,int,short,class,template <class,int> class InnerTemplate,class)
+BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,int,class)
+
+BOOST_TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(MF_HT_Str,MStrMemberTemplate,class)
+BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(AnotherMemberTemplate,int,int)
+BOOST_TTI_VM_MTFC_TRAIT_HAS_TEMPLATE_CHECK_PARAMS(AllWrongParametersForMP,ManyParameters,class,class,int,class,template <class> class InnerTemplate,class,short)
+BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(CTManyParameters,class,class,int,short,class,template <class,int> class InnerTemplate,class)
+BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS(TemplateNotExist,int,class)
+
+BOOST_TTI_MEMBER_TYPE(AStructType)
+BOOST_TTI_TRAIT_MEMBER_TYPE(MT_BType,BType)
+BOOST_TTI_MEMBER_TYPE(CType)
-TTI_MTFC_MEMBER_TYPE(CType)
+BOOST_TTI_MTFC_MEMBER_TYPE(CType)
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_compile.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -10,64 +10,64 @@
// You can always instantiate without compiler errors
- tti::mf_has_template_check_params
+ boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_TemplateNotExist,
- tti::mf_member_type
+ boost::tti::mtfc_has_template_check_params_TemplateNotExist,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
> aVar;
// Compile time asserts
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::HT_Str<_>,
- tti::member_type_AStructType<AType>
+ boost::tti::HT_Str<_>,
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_AnotherMemberTemplate<_>,
+ boost::tti::has_template_check_params_AnotherMemberTemplate<_>,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_CTManyParameters<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_CTManyParameters<_>,
+ boost::tti::mf_member_type
<
- tti::mtfc_member_type_CType,
- tti::MT_BType<AType>
+ boost::tti::mtfc_member_type_CType,
+ boost::tti::MT_BType<AType>
>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::MF_HT_Str,
- tti::member_type_AStructType<AType>
+ boost::tti::MF_HT_Str,
+ boost::tti::member_type_AStructType<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_AnotherMemberTemplate,
+ boost::tti::mtfc_has_template_check_params_AnotherMemberTemplate,
boost::mpl::identity<AType>
>
));
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::mtfc_has_template_check_params_CTManyParameters,
- tti::mf_member_type
+ boost::tti::mtfc_has_template_check_params_CTManyParameters,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
));
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -10,13 +10,13 @@
// Template does not exist
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_TemplateNotExist<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_TemplateNotExist<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
- tti::MT_BType<AType>
+ boost::tti::member_type_CType<_>,
+ boost::tti::MT_BType<AType>
>
>
));
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail2.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -10,12 +10,12 @@
// Wrong enclosing type
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::has_template_check_params_CTManyParameters<_>,
- tti::mf_member_type
+ boost::tti::has_template_check_params_CTManyParameters<_>,
+ boost::tti::mf_member_type
<
- tti::member_type_CType<_>,
+ boost::tti::member_type_CType<_>,
boost::mpl::identity<AType>
>
>
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_check_params_fail3.cpp 2011-02-11 21:26:27 EST (Fri, 11 Feb 2011)
@@ -10,9 +10,9 @@
// Wrong template types
- BOOST_MPL_ASSERT((tti::mf_has_template_check_params
+ BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- tti::WrongParametersForMP<_>,
+ boost::tti::WrongParametersForMP<_>,
boost::mpl::identity<AnotherType>
>
));
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